Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *golangsdk.ServiceClient) pagination.Pager
Types ¶
type CreateOpts ¶
type CreateOpts struct { ID string `json:"-"` Description string `json:"description,omitempty"` Enabled bool `json:"enabled,omitempty"` }
func (CreateOpts) Id ¶
func (opts CreateOpts) Id() string
func (CreateOpts) ToProviderCreateMap ¶
func (opts CreateOpts) ToProviderCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
type DeleteResult ¶
func Delete ¶
func Delete(client *golangsdk.ServiceClient, id string) (r DeleteResult)
type Provider ¶
type Provider struct { ID string `json:"id"` Description string `json:"description"` Enabled bool `json:"enabled"` RemoteIDs []string `json:"remote_ids"` Links map[string]string `json:"links"` }
func ExtractProviders ¶
func ExtractProviders(r pagination.Page) ([]Provider, error)
type ProviderPage ¶
type ProviderPage struct {
pagination.LinkedPageBase
}
func (ProviderPage) IsEmpty ¶
func (p ProviderPage) IsEmpty() (bool, error)
type UpdateOpts ¶
type UpdateOpts struct { Description string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` }
func (UpdateOpts) ToUpdateOptsMap ¶
func (opts UpdateOpts) ToUpdateOptsMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(client *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)
Click to show internal directories.
Click to hide internal directories.