role

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 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 Role

type Role interface {
	List() ([]iam.Role, errors.Error)
	Check(name string) (string, errors.Error)
	Add(name, role string) (string, errors.Error)
	Delete(roleName string) errors.Error

	PolicyAttach(policyARN, roleName string) errors.Error
	PolicyDetach(policyARN, roleName string) errors.Error

	PolicyListAttached(roleName string) ([]iam.AttachedPolicy, errors.Error)
}

func New

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

Jump to

Keyboard shortcuts

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