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: 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 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