iam

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ARNRegexp = regexp.MustCompile(`^arn:(\w|-)*:iam::\d+:role\/?(\w+|-|\/|\.)*$`)

ARNRegexp is the regex to check that the base ARN is valid, see http://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns.

Functions

func GetARN

func GetARN(role string) (string, error)

getARN returns the full iam role ARN.

Types

type ARNGetter

type ARNGetter interface {
	GetARN(role string) (string, error)
}

type ArnClientCached

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

func NewARNClientWithCache

func NewARNClientWithCache(getter func(string) (string, error)) *ArnClientCached

func (*ArnClientCached) GetARN

func (ag *ArnClientCached) GetARN(role string) (string, error)

Jump to

Keyboard shortcuts

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