util

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorRetryable

func IsErrorRetryable(err error) bool

func NewConfig

func NewConfig() func() aws.Retryer

NewConfig creates a retryer function with standard retry configuration.

func NewRoute53Config added in v0.1.75

func NewRoute53Config() func() aws.Retryer

NewRoute53Config creates a retryer with more conservative retry timing for Route53.

func NewSTSSession added in v0.1.32

func NewSTSSession(ctx context.Context, agent, roleArn, region string, assumeRoleCreds *aws.Credentials) (*aws.Config, error)

func NewSession

func NewSession(ctx context.Context, agent, credentialsFile, credKey, credSecretKey, region string) *aws.Config

func ParseSTSCredentialsFile added in v0.1.32

func ParseSTSCredentialsFile(credentialsFile string) (*aws.Credentials, error)

ParseSTSCredentialsFile parses an STS credentials file and returns credentials.

func ValidateVPCCIDR added in v0.1.50

func ValidateVPCCIDR(in string) error

Types

type AWSCredentialsOptions added in v0.1.32

type AWSCredentialsOptions struct {
	AWSCredentialsFile string

	RoleArn            string
	STSCredentialsFile string
}

func (*AWSCredentialsOptions) BindFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindProductFlags added in v0.1.32

func (opts *AWSCredentialsOptions) BindProductFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) BindVPCOwnerFlags added in v0.1.49

func (opts *AWSCredentialsOptions) BindVPCOwnerFlags(flags *pflag.FlagSet)

func (*AWSCredentialsOptions) GetSession added in v0.1.32

func (opts *AWSCredentialsOptions) GetSession(ctx context.Context, agent string, secretData *util.CredentialsSecretData, region string) (*aws.Config, error)

func (*AWSCredentialsOptions) Validate added in v0.1.32

func (opts *AWSCredentialsOptions) Validate() error

func (*AWSCredentialsOptions) ValidateProduct added in v0.1.79

func (opts *AWSCredentialsOptions) ValidateProduct() error

type Credentials added in v0.1.32

type Credentials struct {
	AccessKeyId     string `json:"AccessKeyId"`
	SecretAccessKey string `json:"SecretAccessKey"`
	SessionToken    string `json:"SessionToken"`
	Expiration      string `json:"Expiration"`
}

type STSCreds added in v0.1.38

type STSCreds struct {
	Credentials Credentials `json:"Credentials"`
}

Jump to

Keyboard shortcuts

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