objectstore

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStore

type ObjectStore interface {
	Save(string) error
}

func NewOnPremClient

func NewOnPremClient(opts ObjectStoreOptions) (ObjectStore, error)

func NewS3Client

func NewS3Client(opts ObjectStoreOptions) (ObjectStore, error)

type ObjectStoreOptions

type ObjectStoreOptions struct {
	Bucket           string
	AccessKey        string
	SecretKey        string
	Region           string
	Endpoint         string
	SessionToken     string
	OnPremStorageDir string
}

type OnPremClient

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

func (*OnPremClient) Save

func (o *OnPremClient) Save(filename string) error

type S3Client

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

func (*S3Client) Save

func (s3 *S3Client) Save(filename string) error

Jump to

Keyboard shortcuts

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