user

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User interface {
	List() (map[string]string, errors.Error)
	Get(username string) (*iam.User, errors.Error)
	Create(username string) errors.Error
	Delete(username string) errors.Error

	PolicyPut(policyDocument, policyName, username string) errors.Error
	PolicyAttach(policyARN, username string) errors.Error

	LoginCheck(username string) errors.Error
	LoginCreate(username, password string) errors.Error
	LoginDelete(username string) errors.Error

	AccessList(username string) (map[string]bool, errors.Error)
	AccessCreate(username string) (string, string, errors.Error)
	AccessDelete(username, accessKey string) errors.Error
}

func New

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

Jump to

Keyboard shortcuts

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