//FolderRead reads the subpaths and secrets of the provided path
FolderRead reads the subpaths and secrets of the provided path
// FolderRead reads the subpaths and secrets of the provided path
func (client *Client) FolderRead(path string) ([]interface{}, error) {
	finalPath := client.engine + "/metadata/" + path
	secret, err := client.vc.Logical().List(finalPath)
	if err != nil {
		return nil, err
	}
	if secret == nil {
		return nil, fmt.Errorf("no keys found using path [%s] on Vault instance [%s]", finalPath, client.addr)
	}
	keys := secret.Data["keys"].([]interface{})
	return keys, nil
}
func ( client * Client ) FolderRead ( path string ) ( [ ] interface { } , error ) { finalPath := client . engine + " " + path secret , err := client . vc . Logical ( ) . List ( finalPath ) if err != nil { return nil , err } if secret == nil { return nil , fmt . Errorf ( " " , finalPath , client . addr ) } keys := secret . Data [ " " ] . ( [ ] interface { } ) return keys , nil }
FolderRead reads the subpaths and secrets of the provided path
FolderRead reads the subpaths and secrets of the provided path