func (c *CredentialsClient) Search(ctx context.Context, pathexp string) ([]apitypes.CredentialEnvelope, error) {
	v := &url.Values{}
	v.Set("pathexp", pathexp)

	req, _, err := c.client.NewRequest("GET", "/credentials", v, nil, false)
	if err != nil {
		return nil, err
	}

	resp := []apitypes.CredentialResp{}

	_, err = c.client.Do(ctx, req, &resp, nil, nil)
	if err != nil {
		return nil, err
	}

	creds := make([]apitypes.CredentialEnvelope, len(resp))
	for i, c := range resp {
		v, err := createEnvelopeFromResp(c)
		if err != nil {
			return nil, err
		}
		creds[i] = *v
	}

	return creds, err
}
// Search returns all credentials at the given pathexp.
Search returns all credentials at the given pathexp.
// Search returns all credentials at the given pathexp .
func (c *CredentialsClient) Search(ctx context.Context, pathexp string) ([]apitypes.CredentialEnvelope, error) {
	v := &url.Values{}
	v.Set("pathexp", pathexp)
	req, _, err := c.client.NewRequest("GET", "/credentials", v, nil, false)
	if err != nil {
		return nil, err
	}
	resp := []apitypes.CredentialResp{}
	_, err = c.client.Do(ctx, req, &resp, nil, nil)
	if err != nil {
		return nil, err
	}
	creds := make([]apitypes.CredentialEnvelope, len(resp))
	for i, c := range resp {
		v, err := createEnvelopeFromResp(c)
		if err != nil {
			return nil, err
		}
		creds[i] = *v
	}
	return creds, err
}
func ( c * CredentialsClient ) Search ( ctx context . Context , pathexp string ) ( [ ] apitypes . CredentialEnvelope , error ) { v := & url . Values { } v . Set ( " " , pathexp ) req , _ , err := c . client . NewRequest ( " " , " " , v , nil , false ) if err != nil { return nil , err } resp := [ ] apitypes . CredentialResp { } _ , err = c . client . Do ( ctx , req , & resp , nil , nil ) if err != nil { return nil , err } creds := make ( [ ] apitypes . CredentialEnvelope , len ( resp ) ) for i , c := range resp { v , err := createEnvelopeFromResp ( c ) if err != nil { return nil , err } creds [ i ] = * v } return creds , err }
Search returns all credentials at the given pathexp.
Search returns all credentials at the given pathexp .