Documentation
¶
Index ¶
- type AttachOptions
- type AttachedPolicies
- type AttachedPolicy
- type Client
- func (c *Client) AttachPolicy(ctx context.Context, options *AttachOptions) error
- func (c *Client) Create(ctx context.Context, options *CreateOptions) (*IamRole, error)
- func (c *Client) Delete(ctx context.Context, options *DeleteOptions) error
- func (c *Client) DetachPolicy(ctx context.Context, options *DetachOptions) error
- func (c *Client) Get(ctx context.Context, options *GetOptions) (*IamRole, error)
- func (c *Client) ListAttachedPolicies(ctx context.Context, options *ListOptions) (AttachedPolicies, error)
- func (c *Client) Update(ctx context.Context, options *UpdateOptions) (*IamRole, error)
- type CreateOptions
- type DeleteOptions
- type DetachOptions
- type GetOptions
- type IamRole
- type Interface
- type ListOptions
- type PolicyMap
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachOptions ¶
type AttachedPolicies ¶
type AttachedPolicies []AttachedPolicy
func (*AttachedPolicies) Insert ¶
func (p *AttachedPolicies) Insert(name, arn string)
func (*AttachedPolicies) Len ¶
func (p *AttachedPolicies) Len() int
func (*AttachedPolicies) ToMap ¶
func (p *AttachedPolicies) ToMap() PolicyMap
type AttachedPolicy ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AttachPolicy ¶
func (c *Client) AttachPolicy(ctx context.Context, options *AttachOptions) error
func (*Client) DetachPolicy ¶
func (c *Client) DetachPolicy(ctx context.Context, options *DetachOptions) error
func (*Client) ListAttachedPolicies ¶
func (c *Client) ListAttachedPolicies(ctx context.Context, options *ListOptions) (AttachedPolicies, error)
type CreateOptions ¶
type DeleteOptions ¶
type DeleteOptions struct {
Name string
}
type DetachOptions ¶
type DetachOptions = AttachOptions
type GetOptions ¶
type GetOptions struct {
Name string
}
type Interface ¶
type Interface interface { Create(ctx context.Context, options *CreateOptions) (*IamRole, error) Update(ctx context.Context, options *UpdateOptions) (*IamRole, error) Get(ctx context.Context, options *GetOptions) (*IamRole, error) Delete(ctx context.Context, options *DeleteOptions) error AttachPolicy(ctx context.Context, options *AttachOptions) error DetachPolicy(ctx context.Context, options *DetachOptions) error ListAttachedPolicies(ctx context.Context, options *ListOptions) (AttachedPolicies, error) }
type ListOptions ¶
type ListOptions = GetOptions
Click to show internal directories.
Click to hide internal directories.