func ParseAccounts(data []byte) (map[string]AccountDetails, error) {
	var result accountsCollection
	if err := yaml.Unmarshal(data, &result); err != nil {
		return nil, errors.Annotate(err, "cannot unmarshal accounts")
	}
	return result.ControllerAccounts, nil
}
// ParseAccounts parses the given YAML bytes into accounts metadata.
ParseAccounts parses the given YAML bytes into accounts metadata.
// ParseAccounts parses the given YAML bytes into accounts metadata .
func ParseAccounts(data []byte) (map[string]AccountDetails, error) {
	var result accountsCollection
	if err := yaml.Unmarshal(data, &result); err != nil {
		return nil, errors.Annotate(err, "cannot unmarshal accounts")
	}
	return result.ControllerAccounts, nil
}
func ParseAccounts ( data [ ] byte ) ( map [ string ] AccountDetails , error ) { var result accountsCollection if err := yaml . Unmarshal ( data , & result ) ; err != nil { return nil , errors . Annotate ( err , " " ) } return result . ControllerAccounts , nil }
ParseAccounts parses the given YAML bytes into accounts metadata.
ParseAccounts parses the given YAML bytes into accounts metadata .