func ParseManifest(log log.T,
	fileName string,
	context *updateutil.InstanceContext,
	packageName string) (parsedManifest *Manifest, err error) {
	//Load specified file from file system
	var result = []byte{}
	if result, err = ioutil.ReadFile(fileName); err != nil {
		return
	}
	// parse manifest file
	if err = json.Unmarshal([]byte(result), &parsedManifest); err != nil {
		return
	}

	err = validateManifest(log, parsedManifest, context, packageName)
	return
}
// ParseManifest parses the public manifest file to provide agent update information.
ParseManifest parses the public manifest file to provide agent update information.
// ParseManifest parses the public manifest file to provide agent update information .
func ParseManifest(log log.T,
	fileName string,
	context *updateutil.InstanceContext,
	packageName string) (parsedManifest *Manifest, err error) {
	var result = []byte{}
	if result, err = ioutil.ReadFile(fileName); err != nil {
		return
	}
	if err = json.Unmarshal([]byte(result), &parsedManifest); err != nil {
		return
	}
	err = validateManifest(log, parsedManifest, context, packageName)
	return
}
func ParseManifest ( log log . T , fileName string , context * updateutil . InstanceContext , packageName string ) ( parsedManifest * Manifest , err error ) { var result = [ ] byte { } if result , err = ioutil . ReadFile ( fileName ) ; err != nil { return } if err = json . Unmarshal ( [ ] byte ( result ) , & parsedManifest ) ; err != nil { return } err = validateManifest ( log , parsedManifest , context , packageName ) return }
ParseManifest parses the public manifest file to provide agent update information.
ParseManifest parses the public manifest file to provide agent update information .
//Load specified file from file system // parse manifest file