func (c *CredentialGraphClient) List(ctx context.Context, path string,
	pathExp *pathexp.PathExp, ownerID *identity.ID) ([]CredentialGraph, error) {

	query := url.Values{}

	if path != "" && pathExp != nil {
		return nil, errors.New("cannot provide path and pathexp at the same time")
	}
	if path != "" {
		query.Set("path", path)
	}
	if pathExp != nil {
		query.Set("pathexp", pathExp.String())
	}
	if ownerID != nil {
		query.Set("owner_id", ownerID.String())
	}

	return c.getGraph(ctx, query)
}
// List returns back all segments of the CredentialGraph (Keyring, Keyring
// Members, and Credentials) that match the given name, path, or path
// expression.
List returns back all segments of the CredentialGraph (Keyring, Keyring
Members, and Credentials) that match the given name, path, or path
expression.
// List returns back all segments of the CredentialGraph ( Keyring Keyring // Members and Credentials ) that match the given name path or path // expression .
func (c *CredentialGraphClient) List(ctx context.Context, path string,
	pathExp *pathexp.PathExp, ownerID *identity.ID) ([]CredentialGraph, error) {
	query := url.Values{}
	if path != "" && pathExp != nil {
		return nil, errors.New("cannot provide path and pathexp at the same time")
	}
	if path != "" {
		query.Set("path", path)
	}
	if pathExp != nil {
		query.Set("pathexp", pathExp.String())
	}
	if ownerID != nil {
		query.Set("owner_id", ownerID.String())
	}
	return c.getGraph(ctx, query)
}
func ( c * CredentialGraphClient ) List ( ctx context . Context , path string , pathExp * pathexp . PathExp , ownerID * identity . ID ) ( [ ] CredentialGraph , error ) { query := url . Values { } if path != " " && pathExp != nil { return nil , errors . New ( " " ) } if path != " " { query . Set ( " " , path ) } if pathExp != nil { query . Set ( " " , pathExp . String ( ) ) } if ownerID != nil { query . Set ( " " , ownerID . String ( ) ) } return c . getGraph ( ctx , query ) }
List returns back all segments of the CredentialGraph (Keyring, Keyring
Members, and Credentials) that match the given name, path, or path
expression.
List returns back all segments of the CredentialGraph ( Keyring Keyring Members and Credentials ) that match the given name path or path expression .