agency

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

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 CreateOptsBuilder interface {
	ToAgencyCreateMap() (map[string]interface{}, error)
}

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields
}

func Create

func Create(c *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Agency, error)

type ErrResult

type ErrResult struct {
	golangsdk.ErrResult
}

func AttachRoleByDomain

func AttachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)

func AttachRoleByProject

func AttachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)

func Delete

func Delete(c *golangsdk.ServiceClient, id string) (r ErrResult)

func DetachRoleByDomain

func DetachRoleByDomain(c *golangsdk.ServiceClient, agencyID, domainID, roleID string) (r ErrResult)

func DetachRoleByProject

func DetachRoleByProject(c *golangsdk.ServiceClient, agencyID, projectID, roleID string) (r ErrResult)

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func Get

func Get(c *golangsdk.ServiceClient, id string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Agency, error)

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

func (opts ListOpts) ToAgencyListQuery() (string, error)

type ListOptsBuilder added in v0.5.8

type ListOptsBuilder interface {
	ToAgencyListQuery() (string, error)
}

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 UpdateOptsBuilder interface {
	ToAgencyUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

type UpdateResult struct {
	// contains filtered or unexported fields
}

func Update

func Update(c *golangsdk.ServiceClient, id string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*Agency, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL