s3retrieverv2

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloaderAPI

type DownloaderAPI interface {
	Download(ctx context.Context, w io.WriterAt, input *s3.GetObjectInput, options ...func(*manager.Downloader)) (
		n int64, err error)
}

DownloaderAPI provides methods to manage downloads to an S3 bucket.

type Retriever

type Retriever struct {
	// Bucket is the name of your S3 Bucket.
	Bucket string

	// Item is the path to your flag file in your bucket.
	Item string

	// AwsConfig is the AWS SDK configuration object we will use to
	// download your feature flag configuration file.
	AwsConfig *aws.Config
	// contains filtered or unexported fields
}

Retriever is a configuration struct for a S3 retriever.

func (*Retriever) Init added in v1.24.0

func (s *Retriever) Init(ctx context.Context, _ *log.Logger) error

func (*Retriever) Retrieve

func (s *Retriever) Retrieve(ctx context.Context) ([]byte, error)

func (*Retriever) Shutdown added in v1.24.0

func (s *Retriever) Shutdown(_ context.Context) error

func (*Retriever) Status added in v1.24.0

func (s *Retriever) Status() retriever.Status

Jump to

Keyboard shortcuts

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