provider

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Disk

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

func NewDisk

func NewDisk(root string) *Disk

func (*Disk) Delete added in v0.0.4

func (d *Disk) Delete(ctx context.Context, filePath string) error

func (*Disk) Get

func (d *Disk) Get(ctx context.Context, filePath string) ([]byte, error)

func (*Disk) Ping

func (d *Disk) Ping(ctx context.Context) error

func (*Disk) Save

func (d *Disk) Save(ctx context.Context, filePath string, data []byte, opts ...option.SaveOptionFunc) (string, error)

type S3

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

func NewS3

func NewS3(bucketName string, prefixPath string, region string) (*S3, error)

func (*S3) Delete added in v0.0.4

func (s *S3) Delete(ctx context.Context, filePath string) error

func (*S3) Get

func (s *S3) Get(ctx context.Context, filePath string) ([]byte, error)

func (*S3) Ping

func (s *S3) Ping(ctx context.Context) error

func (*S3) Save

func (s *S3) Save(ctx context.Context, filePath string, data []byte, opts ...option.SaveOptionFunc) (string, error)

Jump to

Keyboard shortcuts

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