policy

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 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, noDefaultVersion bool) (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