Documentation ¶
Index ¶
- func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
- type AgenciesPage
- type Agency
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type ErrResult
- func AttachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)
- func AttachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)
- func Delete(c *golangsdk.ServiceClient, id string) (r ErrResult)
- func DetachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)
- func DetachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type ListRolesResult
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶ added in v0.5.8
func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) pagination.Pager
Types ¶
type AgenciesPage ¶ added in v0.5.8
type AgenciesPage struct {
pagination.SinglePageBase
}
func (AgenciesPage) IsEmpty ¶ added in v0.5.8
func (p AgenciesPage) IsEmpty() (bool, error)
type Agency ¶
type Agency struct { ID string `json:"id"` Name string `json:"name"` DomainID string `json:"domain_id"` DelegatedDomainID string `json:"trust_domain_id"` DelegatedDomainName string `json:"trust_domain_name"` Description string `json:"description"` Duration string `json:"duration"` ExpireTime string `json:"expire_time"` CreateTime string `json:"create_time"` }
func ExtractAgencies ¶ added in v0.5.8
func ExtractAgencies(p pagination.Page) ([]Agency, error)
type CreateOpts ¶
type CreateOpts struct { Name string `json:"name" required:"true"` DomainID string `json:"domain_id" required:"true"` DelegatedDomain string `json:"trust_domain_name" required:"true"` Description string `json:"description,omitempty"` }
func (CreateOpts) ToAgencyCreateMap ¶
func (opts CreateOpts) ToAgencyCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
type ErrResult ¶
type ErrResult struct {
golangsdk.ErrResult
}
func AttachRoleByDomain ¶
func AttachRoleByProject ¶
func DetachRoleByDomain ¶
func DetachRoleByProject ¶
type ListOpts ¶ added in v0.5.8
type ListOpts struct { DomainID string `q:"domain_id"` Name string `q:"name"` TrustDomainID string `q:"trust_domain_id"` }
func (ListOpts) ToAgencyListQuery ¶ added in v0.5.8
type ListOptsBuilder ¶ added in v0.5.8
type ListRolesResult ¶
type ListRolesResult struct {
golangsdk.Result
}
func ListRolesAttachedOnDomain ¶
func ListRolesAttachedOnDomain(c *golangsdk.ServiceClient, agencyID, domainID string) (r ListRolesResult)
func ListRolesAttachedOnProject ¶
func ListRolesAttachedOnProject(c *golangsdk.ServiceClient, agencyID, projectID string) (r ListRolesResult)
func (ListRolesResult) ExtractRoles ¶
func (r ListRolesResult) ExtractRoles() ([]roles.Role, error)
type UpdateOpts ¶
type UpdateOpts struct { DelegatedDomain string `json:"trust_domain_name,omitempty"` Description string `json:"description,omitempty"` }
func (UpdateOpts) ToAgencyUpdateMap ¶
func (opts UpdateOpts) ToAgencyUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(c *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)
Click to show internal directories.
Click to hide internal directories.