iam

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client   *api.Client
	Region   string
	UserName string
	Password string
}

func (*Driver) AddUser added in v0.2.4

func (d *Driver) AddUser() (schema.IAMResult, error)

func (*Driver) AttachPolicy added in v0.3.1

func (d *Driver) AttachPolicy(ctx context.Context, userName, policyName, policyType string) error

AttachPolicy binds the named policy to userName. policyType defaults to System.

func (*Driver) CreateAccessKey added in v0.3.1

func (d *Driver) CreateAccessKey(ctx context.Context, userName string) (schema.IAMCredential, string, error)

CreateAccessKey mints a fresh AccessKey pair for userName.

func (*Driver) DelUser added in v0.2.4

func (d *Driver) DelUser() (schema.IAMResult, error)

func (*Driver) DeleteAccessKey added in v0.3.1

func (d *Driver) DeleteAccessKey(ctx context.Context, userName, accessKeyID string) error

DeleteAccessKey revokes accessKeyID belonging to userName.

func (*Driver) DetachPolicy added in v0.3.1

func (d *Driver) DetachPolicy(ctx context.Context, userName, policyName, policyType string) error

DetachPolicy removes the named policy from userName.

func (*Driver) GetProject added in v0.2.3

func (d *Driver) GetProject(ctx context.Context) (string, error)

func (*Driver) ListAccessKeys added in v0.3.1

func (d *Driver) ListAccessKeys(ctx context.Context, userName string) ([]schema.IAMCredential, error)

ListAccessKeys returns the IAM access keys belonging to userName. Volcengine returns the calling user's keys when UserName is omitted.

func (*Driver) ListRoleBindings added in v0.3.1

func (d *Driver) ListRoleBindings(ctx context.Context, userName string) ([]schema.RoleBinding, error)

ListRoleBindings returns the policies attached to userName.

func (*Driver) ListUsers

func (d *Driver) ListUsers(ctx context.Context) ([]schema.User, error)

Jump to

Keyboard shortcuts

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