s3

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader added in v0.3.0

func NewLoader(options Options) url.Loader

Types

type Options added in v0.3.0

type Options struct {
	AccessKey string `json:"access_key" yaml:"access_key"`
	SecretKey string `json:"secret_key" yaml:"secret_key"`
	RoleARN   string `json:"role_arn"   yaml:"role_arn"`
}

type Reference

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

func NewReference

func NewReference(client *minio.Client, secure bool, endpoint string, bucket string, object string) Reference

func (Reference) Name

func (o Reference) Name() (string, error)

func (Reference) Reader

func (o Reference) Reader() (io.ReadCloser, error)

func (Reference) ReaderURI

func (o Reference) ReaderURI() string

func (Reference) Size

func (o Reference) Size() (uint64, error)

func (Reference) WriteFrom

func (o Reference) WriteFrom(from file.Reference, progress *pb.ProgressBar) error

Jump to

Keyboard shortcuts

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