role

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoliciesWalkFunc added in v1.9.12

type PoliciesWalkFunc func(err error, pol sdktps.AttachedPolicy) error

type Role

type Role interface {
	List() ([]sdktps.Role, error)
	Check(name string) (string, error)
	Add(name, role string) (string, error)
	Delete(roleName string) error

	PolicyAttach(policyARN, roleName string) error
	PolicyDetach(policyARN, roleName string) error
	PolicyListAttached(roleName string) ([]sdktps.AttachedPolicy, error)
	PolicyAttachedList(roleName, marker string) ([]sdktps.AttachedPolicy, string, error)
	PolicyAttachedWalk(roleName string, fct PoliciesWalkFunc) error
}

func New

func New(ctx context.Context, bucket, region string, iam *sdkiam.Client, s3 *sdksss.Client) Role

Jump to

Keyboard shortcuts

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