s3

package
v0.0.0-...-fb9855a Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	Secure     bool
	Endpoint   string
	Region     string
	AccessKey  string
	SecretKey  string
	BucketList []string
	// contains filtered or unexported fields
}

Store must call Setup.

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, bucket, name string) error

Delete a file.

func (*Store) Open

func (s *Store) Open(ctx context.Context, bucket, name string) (*storage.File, error)

Open a file.

func (*Store) Setup

func (s *Store) Setup(ctx context.Context) error

func (*Store) Store

func (s *Store) Store(ctx context.Context, bucket, name string, data []byte, opts ...func(*storage.StoreOpts)) error

Store a file.

Jump to

Keyboard shortcuts

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