plugin

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileObjectStore

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

func NewFileObjectStore

func NewFileObjectStore(log logrus.FieldLogger) *FileObjectStore

NewFileObjectStore instantiates a FileObjectStore.

func (*FileObjectStore) CreateSignedURL

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

func (*FileObjectStore) DeleteObject

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

func (*FileObjectStore) GetObject

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

func (*FileObjectStore) Init

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

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

func (*FileObjectStore) ListCommonPrefixes

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

func (*FileObjectStore) ListObjects

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

func (*FileObjectStore) ObjectExists

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

func (*FileObjectStore) PutObject

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

type PluginConfigMap

type PluginConfigMap map[string]string

Jump to

Keyboard shortcuts

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