plugin

package
v0.0.0-...-6bf70a7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSharedConfigProfile = `default`

	DefaultCredentialsFile = "/credentials/cloud"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectStore

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

func NewObjectStore

func NewObjectStore(logger logrus.FieldLogger) *ObjectStore

func (*ObjectStore) CreateSignedURL

func (f *ObjectStore) CreateSignedURL(bucket, key string, ttl time.Duration) (string, error)

func (*ObjectStore) DeleteObject

func (f *ObjectStore) DeleteObject(bucket, key string) error

func (*ObjectStore) GetObject

func (f *ObjectStore) GetObject(bucket, key string) (io.ReadCloser, error)

func (*ObjectStore) Init

func (f *ObjectStore) Init(config map[string]string) error

Init initializes the plugin. After v0.10.0, this can be called multiple times.

func (*ObjectStore) ListCommonPrefixes

func (f *ObjectStore) ListCommonPrefixes(bucket, prefix, delimiter string) ([]string, error)

func (*ObjectStore) ListObjects

func (f *ObjectStore) ListObjects(bucket, prefix string) ([]string, error)

func (*ObjectStore) ObjectExists

func (f *ObjectStore) ObjectExists(bucket, key string) (bool, error)

func (*ObjectStore) PutObject

func (f *ObjectStore) PutObject(bucket string, key string, body io.Reader) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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