loader

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObject

func GetObject(client S3Client, bucket, key string) ([]byte, error)

func GetParameter

func GetParameter(client SSMClient, parameterPath string, withDecryption bool) ([]byte, error)

func NewLoader

func NewLoader(source string) (interface{}, error)

func ParseS3Path

func ParseS3Path(path string) (bucket, key string)

Types

type LocalLoader

type LocalLoader struct {
	Path string
}

type S3Client

type S3Client interface {
	GetObject(ctx context.Context, params *s3.GetObjectInput, optFns ...func(*s3.Options)) (*s3.GetObjectOutput, error)
}

type S3Loader

type S3Loader struct {
	Path   string
	Client S3Client
}

type SSMClient

type SSMClient interface {
	GetParameter(ctx context.Context, params *ssm.GetParameterInput, optFns ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
}

type SSMLoader

type SSMLoader struct {
	Path   string
	Client SSMClient
}

Jump to

Keyboard shortcuts

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