storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Save(ctx context.Context, path string, data []byte) error
}

func New

func New(services map[string]any) Backend

type S3

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

func NewS3

func NewS3(attrs S3Attributes) *S3

func (*S3) Save

func (s *S3) Save(ctx context.Context, path string, data []byte) error

type S3Attributes

type S3Attributes struct {
	Bucket           string   `mapstructure:"bucket"`
	ConfigFiles      []string `mapstructure:"config_files"`
	CredentialsFiles []string `mapstructure:"credentials_files"`
}

Jump to

Keyboard shortcuts

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