user

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoliciesWalkFunc added in v1.9.12

type PoliciesWalkFunc func(err error, pol sdktps.AttachedPolicy) error

type User

type User interface {
	List() (map[string]string, error)
	Get(username string) (*sdktps.User, error)
	Create(username string) error
	Delete(username string) error
	PolicyPut(policyDocument, policyName, username string) error
	PolicyAttach(policyARN, username string) error
	PolicyDetach(policyARN, username string) error
	PolicyAttachedList(username, marker string) ([]sdktps.AttachedPolicy, string, error)
	PolicyAttachedWalk(username string, fct PoliciesWalkFunc) error
	LoginCheck(username string) error
	LoginCreate(username, password string) error
	LoginDelete(username string) error
	AccessListAll(username string) ([]sdktps.AccessKeyMetadata, error)
	AccessList(username string) (map[string]bool, error)
	AccessCreate(username string) (string, string, error)
	AccessDelete(username, accessKey string) error
	Walk(prefix string, fct UserFunc) error
	DetachUsers(prefix string) ([]string, error)
}

func New

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

type UserFunc added in v1.15.1

type UserFunc func(user sdktps.User) bool

Jump to

Keyboard shortcuts

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