role

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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
	Walk(prefix string, fct RoleFunc) error
	DetachRoles(prefix string) ([]string, error)
}

func New

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

type RoleFunc added in v1.15.1

type RoleFunc func(roleName string) bool

Jump to

Keyboard shortcuts

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