s3

package
v1.32.1-release.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "s3"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bucket string
	Prefix string
}

func NewConfig

func NewConfig() *Config

func (*Config) Load

func (c *Config) Load(configReporter config.Reporter) error

func (*Config) Validate

func (c *Config) Validate() error

type Store

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

func NewStore

func NewStore(config *Config, awsAPI aws.API) (*Store, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key string) (bool, error)

func (*Store) DeleteDirectory added in v1.31.0

func (s *Store) DeleteDirectory(ctx context.Context, key string) error

func (*Store) Exists

func (s *Store) Exists(ctx context.Context, key string) (bool, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) (io.ReadCloser, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, reader io.Reader, options *storeUnstructured.Options) error

Jump to

Keyboard shortcuts

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