awssdk

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ContextSecretID identifies a secret ID in a context.
	ContextSecretID = contextKey("secretID")

	// ContextRegion identifies a region in a context.
	ContextRegion = contextKey("region")
)

Variables

This section is empty.

Functions

func Region

func Region(ctx context.Context) (string, bool)

Region returns a secret ID from a context (if any).

func SecretID

func SecretID(ctx context.Context) (string, bool)

SecretID returns a secret ID from a context (if any).

func WithRegion

func WithRegion(ctx workflow.Context, secretID string) workflow.Context

WithRegion returns a new context with a secret ID.

func WithSecretID

func WithSecretID(ctx workflow.Context, secretID string) workflow.Context

WithSecretID returns a new context with a secret ID.

Types

type SecretStore

type SecretStore interface {
	GetSecretValues(ctx context.Context, secretID string) (map[string]string, error)
}

SecretStore provides access to the Pipeline secret store.

type SessionFactory

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

SessionFactory creates an AWS session.

func NewSessionFactory

func NewSessionFactory(secretStore SecretStore) SessionFactory

NewSessionFactory creates a new SessionFactory.

func (SessionFactory) Session

func (s SessionFactory) Session(ctx context.Context) (*session.Session, error)

Jump to

Keyboard shortcuts

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