Documentation ¶
Index ¶
- func List(client *golangsdk.ServiceClient) pagination.Pager
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type Domain
- type GetResult
- type GroupOpts
- type LocalRuleOpts
- type Mapping
- type MappingPage
- type RemoteRule
- type RemoteRuleOpts
- type Rule
- type RuleOpts
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
- type UserOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *golangsdk.ServiceClient) pagination.Pager
List enumerates the Groups to which the current token has access.
Types ¶
type CreateOpts ¶
type CreateOpts struct { // Rules used to map federated users to local users. Rules []RuleOpts `json:"rules" required:"true"` }
CreateOpts provides options used to create a mapping.
func (CreateOpts) ToMappingCreateMap ¶
func (opts CreateOpts) ToMappingCreateMap() (map[string]interface{}, error)
ToMappingCreateMap formats a CreateOpts into a create request.
type CreateOptsBuilder ¶
CreateOptsBuilder allows extensions to add additional parameters to the Create request.
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult is the response from a Create operation. Call its Extract method to interpret it as a Mapping.
func Create ¶
func Create(client *golangsdk.ServiceClient, mappingID string, opts CreateOptsBuilder) (r CreateResult)
Create creates a new Mapping, by ID.
type DeleteResult ¶
DeleteResult is the response from a Delete operation. Call its ExtractErr to determine if the request succeeded or failed.
func Delete ¶
func Delete(client *golangsdk.ServiceClient, mappingID string) (r DeleteResult)
Delete deletes a mapping, by ID.
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult is the response from a Get operation. Call its Extract method to interpret it as a Mapping.
type LocalRuleOpts ¶
type Mapping ¶
type Mapping struct { // ID is the unique ID of the mapping. ID string `json:"id"` // Resource Links of mappings. Links map[string]interface{} `json:"links"` // Rules used to map federated users to local users Rules []Rule `json:"rules"` }
Mapping helps manage mapping rules.
func ExtractMappings ¶
func ExtractMappings(r pagination.Page) ([]Mapping, error)
ExtractMappings returns a slice of Mappings contained in a linked page of results.
type MappingPage ¶
type MappingPage struct {
pagination.LinkedPageBase
}
MappingPage is a single page of Mapping results.
func (MappingPage) IsEmpty ¶
func (r MappingPage) IsEmpty() (bool, error)
IsEmpty determines whether or not a page of Mappings contains any results.
type RemoteRule ¶
type RemoteRuleOpts ¶
type Rule ¶
type Rule struct { Local []LocalRuleOpts `json:"local"` Remote []RemoteRule `json:"remote"` }
type RuleOpts ¶
type RuleOpts struct { Local []LocalRuleOpts `json:"local" required:"true"` Remote []RemoteRuleOpts `json:"remote" required:"true"` }
type UpdateOpts ¶
type UpdateOpts struct { // Rules used to map federated users to local users. Rules []RuleOpts `json:"rules" required:"true"` }
UpdateOpts provides options for updating a mapping.
func (UpdateOpts) ToMappingUpdateMap ¶
func (opts UpdateOpts) ToMappingUpdateMap() (map[string]interface{}, error)
ToMappingUpdateMap formats a UpdateOpts into an update request.
type UpdateOptsBuilder ¶
UpdateOptsBuilder allows extensions to add additional parameters to the Update request.
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult is the response from an Update operation. Call its Extract method to interpret it as a Mapping.
func Update ¶
func Update(client *golangsdk.ServiceClient, mappingID string, opts UpdateOptsBuilder) (r UpdateResult)
Update updates an existing Mapping, by ID.