Documentation ¶
Index ¶
- type CreateRoleInput
- type DeleteRoleInput
- type GetRoleInput
- type IdentityClient
- type ListRolesInput
- type Role
- type RolesClient
- func (c *RolesClient) Create(ctx context.Context, input *CreateRoleInput) (*Role, error)
- func (c *RolesClient) Delete(ctx context.Context, input *DeleteRoleInput) error
- func (c *RolesClient) Get(ctx context.Context, input *GetRoleInput) (*Role, error)
- func (c *RolesClient) List(ctx context.Context, _ *ListRolesInput) ([]*Role, error)
- func (c *RolesClient) Update(ctx context.Context, input *UpdateRoleInput) (*Role, error)
- type UpdateRoleInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRoleInput ¶
type CreateRoleInput struct { // Name of the role. Required. Name string `json:"name"` // This account's policies to be given to this role. Optional. Policies []string `json:"policies,omitempty"` // This account's user logins to be added to this role. Optional. Members []string `json:"members,omitempty"` // This account's user logins to be added to this role and have // it enabled by default. Optional. DefaultMembers []string `json:"default_members,omitempty"` }
CreateRoleInput represents the options that can be specified when creating a new role.
type DeleteRoleInput ¶
type DeleteRoleInput struct {
RoleID string
}
type GetRoleInput ¶
type GetRoleInput struct {
RoleID string
}
type IdentityClient ¶
func NewClient ¶
func NewClient(config *triton.ClientConfig) (*IdentityClient, error)
NewClient returns a new client for working with Identity endpoints and resources within CloudAPI
func (*IdentityClient) Roles ¶
func (c *IdentityClient) Roles() *RolesClient
Roles returns a Compute client used for accessing functions pertaining to Role functionality in the Triton API.
type ListRolesInput ¶
type ListRolesInput struct{}
type RolesClient ¶
type RolesClient struct {
// contains filtered or unexported fields
}
func (*RolesClient) Create ¶
func (c *RolesClient) Create(ctx context.Context, input *CreateRoleInput) (*Role, error)
func (*RolesClient) Delete ¶
func (c *RolesClient) Delete(ctx context.Context, input *DeleteRoleInput) error
func (*RolesClient) Get ¶
func (c *RolesClient) Get(ctx context.Context, input *GetRoleInput) (*Role, error)
func (*RolesClient) List ¶
func (c *RolesClient) List(ctx context.Context, _ *ListRolesInput) ([]*Role, error)
func (*RolesClient) Update ¶
func (c *RolesClient) Update(ctx context.Context, input *UpdateRoleInput) (*Role, error)
type UpdateRoleInput ¶
type UpdateRoleInput struct { // ID of the role to modify. Required. RoleID string `json:"id"` // Name of the role. Required. Name string `json:"name"` // This account's policies to be given to this role. Optional. Policies []string `json:"policies,omitempty"` // This account's user logins to be added to this role. Optional. Members []string `json:"members,omitempty"` // This account's user logins to be added to this role and have // it enabled by default. Optional. DefaultMembers []string `json:"default_members,omitempty"` }
UpdateRoleInput represents the options that can be specified when updating a role. Anything but ID can be modified.
Click to show internal directories.
Click to hide internal directories.