policy

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 9 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, liberr.Error)

	Get(arn string) (*types.Policy, liberr.Error)
	Add(name, desc, policy string) (string, liberr.Error)
	Update(polArn, polContents string) liberr.Error
	Delete(polArn string) liberr.Error

	VersionList(arn string, maxItem int32) (map[string]string, liberr.Error)
	VersionGet(arn string, vers string) (*types.PolicyVersion, liberr.Error)
	VersionAdd(arn string, doc string) liberr.Error
	VersionDel(arn string, vers string) liberr.Error

	CompareUpdate(arn string, doc string) (upd bool, err liberr.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