policy

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy interface {
	List() (map[string]string, error)
	Get(arn string) (*types.Policy, error)
	Add(name, desc, policy string) (string, error)
	Update(polArn, polContents string) error
	Delete(polArn string) error
	VersionList(arn string, maxItem int32, noDefaultVersion bool) (map[string]string, error)
	VersionGet(arn string, vers string) (*types.PolicyVersion, error)
	VersionAdd(arn string, doc string) error
	VersionDel(arn string, vers string) error
	CompareUpdate(arn string, doc string) (upd bool, err error)
	Walk(prefix string, fct PolicyFunc) error
	GetAllPolicies(prefix string) ([]string, error)
}

func New

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

type PolicyFunc added in v1.15.1

type PolicyFunc func(policyArn string) bool

Jump to

Keyboard shortcuts

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