iam

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxAccessKeys = 2

Variables

View Source
var (
	ErrNoOldKey     = fmt.Errorf("no old key")
	ErrRecentlyUsed = fmt.Errorf("recently used")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() (*Client, error)

func (*Client) BestAccessKeyForUser

func (c *Client) BestAccessKeyForUser(user string) (string, time.Time, error)

func (*Client) GetAccessKeys

func (c *Client) GetAccessKeys(user string) (*iam.AccessKeyMetadata, *iam.AccessKeyMetadata, error)

func (*Client) RotateAccessKeyForUser

func (c *Client) RotateAccessKeyForUser(user string) (string, string, error)

func (*Client) RotateAccessKeyForUserFollowup

func (c *Client) RotateAccessKeyForUserFollowup(
	user string,
	recentUse time.Duration,
) error

Jump to

Keyboard shortcuts

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