func (o *Orgs) List(ctx context.Context, name string) ([]envelope.Unsigned, error) {
	v := url.Values{}

	if name != "" {
		v.Set("name", name)
	}

	req, err := o.client.NewRequest("GET", "/orgs", &v, nil)
	if err != nil {
		log.Printf("Error building GET /orgs api request: %s", err)
		return nil, err
	}

	orgs := []envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &orgs)
	if err != nil {
		log.Printf("Error performing api request: %s", err)
		return nil, err
	}

	return orgs, nil
}
// List returns all organizations that match the given name.
List returns all organizations that match the given name.
// List returns all organizations that match the given name .
func (o *Orgs) List(ctx context.Context, name string) ([]envelope.Unsigned, error) {
	v := url.Values{}
	if name != "" {
		v.Set("name", name)
	}
	req, err := o.client.NewRequest("GET", "/orgs", &v, nil)
	if err != nil {
		log.Printf("Error building GET /orgs api request: %s", err)
		return nil, err
	}
	orgs := []envelope.Unsigned{}
	_, err = o.client.Do(ctx, req, &orgs)
	if err != nil {
		log.Printf("Error performing api request: %s", err)
		return nil, err
	}
	return orgs, nil
}
func ( o * Orgs ) List ( ctx context . Context , name string ) ( [ ] envelope . Unsigned , error ) { v := url . Values { } if name != " " { v . Set ( " " , name ) } req , err := o . client . NewRequest ( " " , " " , & v , nil ) if err != nil { log . Printf ( " " , err ) return nil , err } orgs := [ ] envelope . Unsigned { } _ , err = o . client . Do ( ctx , req , & orgs ) if err != nil { log . Printf ( " " , err ) return nil , err } return orgs , nil }
List returns all organizations that match the given name.
List returns all organizations that match the given name .