identity

package
v0.0.0-...-c5f9086 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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

type IdentityClient struct {
	Client *client.Client
}

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 Role

type Role struct {
	ID             string   `json:"id"`
	Name           string   `json:"name"`
	Policies       []string `json:"policies"`
	Members        []string `json:"policies"`
	DefaultMembers []string `json:"default_members"`
}

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.

Jump to

Keyboard shortcuts

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