Documentation ¶
Index ¶
- type AgenciesListOpts
- type AgenciesListOptsBuilder
- type Agency
- type AgencyPage
- type CreateAgencyOpts
- type CreateAgencyOptsBuilder
- type CreateResult
- type DeleteResult
- func Delete(client *gophercloud.ServiceClient, agencyId string) (r DeleteResult)
- func RemovePermissionFromAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, ...) (r DeleteResult)
- func RemovePermissionFromAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, ...) (r DeleteResult)
- type GetResult
- type HeadResult
- type ListResponse
- type ListResult
- type ListRolesResponse
- type ListRolesResult
- type Policy
- type PutResult
- type Roles
- type Statement
- type UpdateAgencyOpts
- type UpdateAgencyOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgenciesListOpts ¶
type AgenciesListOpts struct { DomainId string `q:"domain_id" required:"true` TrustDomainId string `q:"trust_domain_id"` Name string `q:"name"` }
func (AgenciesListOpts) ToAgenciesListQuery ¶
func (opts AgenciesListOpts) ToAgenciesListQuery() (string, error)
type AgenciesListOptsBuilder ¶
type Agency ¶
type Agency struct { CreateTime string `json:"create_time"` Description string `json:"description"` DomainID string `json:"domain_id"` Duration string `json:"duration"` ID string `json:"id"` Name string `json:"name"` TrustDomainID string `json:"trust_domain_id"` TrustDomainName string `json:"trust_domain_name"` ExpireTime string `json:"expire_time"` }
func ExtractAgency ¶
func ExtractAgency(r pagination.Page) ([]Agency, error)
type AgencyPage ¶
type AgencyPage struct {
pagination.LinkedPageBase
}
func (AgencyPage) IsEmpty ¶
func (p AgencyPage) IsEmpty() (bool, error)
func (AgencyPage) NextPageURL ¶
func (r AgencyPage) NextPageURL() (string, error)
type CreateAgencyOpts ¶
type CreateAgencyOpts struct { Name string `json:"name" required:"true"` DomainID string `json:"domain_id" required:"true"` TrustDomainID string `json:"trust_domain_id,omitempty"` TrustDomainName string `json:"trust_domain_name,omitempty"` Duration string `json:"duration,omitempty"` Description string `json:"description,omitempty"` }
func (CreateAgencyOpts) ToAgencyCreateMap ¶
func (opts CreateAgencyOpts) ToAgencyCreateMap() (map[string]interface{}, error)
type CreateAgencyOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opts CreateAgencyOptsBuilder) (r CreateResult)
func (CreateResult) ExtractCreate ¶
func (r CreateResult) ExtractCreate() (*Agency, error)
type DeleteResult ¶
type DeleteResult struct {
gophercloud.ErrResult
}
func Delete ¶
func Delete(client *gophercloud.ServiceClient, agencyId string) (r DeleteResult)
func RemovePermissionFromAgencyOnDomain ¶
func RemovePermissionFromAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r DeleteResult)
func RemovePermissionFromAgencyOnProject ¶
func RemovePermissionFromAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(client *gophercloud.ServiceClient, agencyId string) (r GetResult)
func (GetResult) ExtractGet ¶
type HeadResult ¶
type HeadResult struct {
gophercloud.ErrResult
}
func CheckPermissionForAgencyOnDomain ¶
func CheckPermissionForAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r HeadResult)
func CheckPermissionForAgencyOnProject ¶
func CheckPermissionForAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r HeadResult)
type ListResponse ¶
type ListResponse struct {
Agencies []Agency `json:"agencies"`
}
type ListResult ¶
type ListResult struct {
// contains filtered or unexported fields
}
func List ¶
func List(client *gophercloud.ServiceClient, opts AgenciesListOptsBuilder) (r ListResult)
func (ListResult) ExtractList ¶
func (r ListResult) ExtractList() (*ListResponse, error)
type ListRolesResponse ¶
type ListRolesResponse struct {
Roles []Roles `json:"roles"`
}
type ListRolesResult ¶
type ListRolesResult struct {
// contains filtered or unexported fields
}
func ListPermissionsForAgencyOnDomain ¶
func ListPermissionsForAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string) (r ListRolesResult)
func ListPermissionsForAgencyOnProject ¶
func ListPermissionsForAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string) (r ListRolesResult)
func (ListRolesResult) ExtractListRolesDomain ¶
func (r ListRolesResult) ExtractListRolesDomain() (*ListRolesResponse, error)
func (ListRolesResult) ExtractListRolesProject ¶
func (r ListRolesResult) ExtractListRolesProject() (*ListRolesResponse, error)
type PutResult ¶
type PutResult struct {
gophercloud.ErrResult
}
func GrantPermissionToAgencyOnDomain ¶
func GrantPermissionToAgencyOnDomain(client *gophercloud.ServiceClient, domainId string, agencyId string, roleId string) (r PutResult)
func GrantPermissionToAgencyOnProject ¶
func GrantPermissionToAgencyOnProject(client *gophercloud.ServiceClient, projectId string, agencyId string, roleId string) (r PutResult)
type Roles ¶
type Roles struct { Flag string `json:"flag"` DisplayName string `json:"display_name"` Description string `json:"description"` Name string `json:"name"` Policy Policy `json:"policy"` DescriptionCn string `json:"description_cn"` DomainID string `json:"domain_id"` Type string `json:"type"` Catalog string `json:"catalog"` ID string `json:"id"` CreatedTime string `json:"created_time"` UpdatedTime string `json:"updated_time"` Links map[string]interface{} `json:"links"` }
type UpdateAgencyOpts ¶
type UpdateAgencyOpts struct { TrustDomainID string `json:"trust_domain_id,omitempty"` TrustDomainName string `json:"trust_domain_name,omitempty"` Duration string `json:"duration,omitempty"` Description string `json:"description,omitempty"` }
func (UpdateAgencyOpts) ToAgencyUpdateMap ¶
func (opts UpdateAgencyOpts) ToAgencyUpdateMap() (map[string]interface{}, error)
type UpdateAgencyOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(client *gophercloud.ServiceClient, agencyId string, opts UpdateAgencyOpts) (r UpdateResult)
func (UpdateResult) ExtractUpdate ¶
func (r UpdateResult) ExtractUpdate() (*Agency, error)
Click to show internal directories.
Click to hide internal directories.