Documentation ¶
Index ¶
- Constants
- type ObjectStore
- func (f *ObjectStore) CreateSignedURL(bucket, key string, ttl time.Duration) (string, error)
- func (f *ObjectStore) DeleteObject(bucket, key string) error
- func (f *ObjectStore) GetObject(bucket, key string) (io.ReadCloser, error)
- func (f *ObjectStore) Init(config map[string]string) error
- func (f *ObjectStore) ListCommonPrefixes(bucket, prefix, delimiter string) ([]string, error)
- func (f *ObjectStore) ListObjects(bucket, prefix string) ([]string, error)
- func (f *ObjectStore) ObjectExists(bucket, key string) (bool, error)
- func (f *ObjectStore) PutObject(bucket string, key string, body io.Reader) error
Constants ¶
View Source
const ( 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 (*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)
Click to show internal directories.
Click to hide internal directories.