aws

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIMDS added in v0.2.0

func GetIMDS(path string) (string, error)

func GetRegion

func GetRegion() (string, error)

func GetSSHPubKey

func GetSSHPubKey() (string, error)

func GetUserData

func GetUserData() (*vmspec.VMSpec, error)

func NewConnection

func NewConnection(region string) (*connection, error)

Types

type ASMClient

type ASMClient interface {
	// GetSecretList retrieves only one item but returns a
	// WritableList, for consistency with the other AWS clients,
	// and since it has the desired behavior for writing to disk.
	GetSecretList(secretID string) (collections.WritableList, error)
	GetSecretMap(secretID string) (map[string]string, error)
	GetSecretValue(secretID string) ([]byte, error)
}

func NewASMClient

func NewASMClient(cfg aws.Config) ASMClient

type Connection

type Connection interface {
	ASMClient() ASMClient
	SSMClient() SSMClient
	S3Client() S3Client
}

type S3Client

type S3Client interface {
	GetObjectList(bucket, keyPrefix string) (collections.WritableList, error)
	GetObjectMap(bucket, keyPrefix string) (map[string]string, error)
	GetObjectValue(bucket, keyPrefix string) ([]byte, error)
}

func NewS3Client

func NewS3Client(cfg aws.Config) S3Client

type S3Object

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

func (*S3Object) Close

func (s *S3Object) Close() error

func (*S3Object) Read

func (s *S3Object) Read(p []byte) (n int, err error)

type SSMClient

type SSMClient interface {
	GetParameterList(ssmPath string) (collections.WritableList, error)
	GetParameterMap(ssmPath string) (map[string]string, error)
	GetParameterValue(ssmPath string) ([]byte, error)
}

func NewSSMClient

func NewSSMClient(cfg aws.Config) SSMClient

Jump to

Keyboard shortcuts

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