Documentation ¶
Index ¶
- 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 ListRolesResult
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` }
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 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.