s3

package module
v0.0.0-...-b01698c Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(ctx context.Context, api Client, path string) ([]string, error)

func Load

func Load(ctx context.Context, api Client, path string) ([]byte, error)

func With

func With(api Client) fileloaders.Option

Types

type Client

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

type Loader

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

func New

func New(api Client) *Loader

func (*Loader) List

func (l *Loader) List(ctx context.Context, path string) ([]string, error)

func (*Loader) Load

func (l *Loader) Load(ctx context.Context, path string) ([]byte, error)

Jump to

Keyboard shortcuts

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