clients

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RAMClient

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

func NewRAMClient

func NewRAMClient(sdkConfig *sdk.Config, key, secret string) (*RAMClient, error)

func (*RAMClient) AttachPolicy

func (c *RAMClient) AttachPolicy(userName, policyName, policyType string) error

func (*RAMClient) CreateAccessKey

func (c *RAMClient) CreateAccessKey(userName string) (*ram.CreateAccessKeyResponse, error)

func (*RAMClient) CreatePolicy

func (c *RAMClient) CreatePolicy(policyName, policyDoc string) (*ram.CreatePolicyResponse, error)

func (*RAMClient) CreateUser

func (c *RAMClient) CreateUser(userName string) (*ram.CreateUserResponse, error)

func (*RAMClient) DeleteAccessKey

func (c *RAMClient) DeleteAccessKey(userName, accessKeyID string) error

func (*RAMClient) DeletePolicy

func (c *RAMClient) DeletePolicy(policyName string) error

func (*RAMClient) DeleteUser

func (c *RAMClient) DeleteUser(userName string) error

Note: deleteUser will fail if the user is presently associated with anything in Alibaba.

func (*RAMClient) DetachPolicy

func (c *RAMClient) DetachPolicy(userName, policyName, policyType string) error

type STSClient

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

func NewSTSClient

func NewSTSClient(sdkConfig *sdk.Config, key, secret string) (*STSClient, error)

func (*STSClient) AssumeRole

func (c *STSClient) AssumeRole(roleSessionName, roleARN string) (*sts.AssumeRoleResponse, error)

Jump to

Keyboard shortcuts

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