policy

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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)
}

func New

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

Jump to

Keyboard shortcuts

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