Documentation ¶
Index ¶
- func ValidateObjectStoreConfigKeys(config map[string]string, validKeys ...string) error
- func ValidateVolumeSnapshotterConfigKeys(config map[string]string, validKeys ...string) error
- type BucketData
- type InMemoryObjectStore
- func (o *InMemoryObjectStore) ClearBucket(bucket string)
- func (o *InMemoryObjectStore) CreateSignedURL(bucket, key string, ttl time.Duration) (string, error)
- func (o *InMemoryObjectStore) DeleteObject(bucket, key string) error
- func (o *InMemoryObjectStore) GetObject(bucket, key string) (io.ReadCloser, error)
- func (o *InMemoryObjectStore) Init(config map[string]string) error
- func (o *InMemoryObjectStore) ListCommonPrefixes(bucket, prefix, delimiter string) ([]string, error)
- func (o *InMemoryObjectStore) ListObjects(bucket, prefix string) ([]string, error)
- func (o *InMemoryObjectStore) ObjectExists(bucket, key string) (bool, error)
- func (o *InMemoryObjectStore) PutObject(bucket, key string, body io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateObjectStoreConfigKeys ¶ added in v1.0.0
ValidateObjectStoreConfigKeys ensures that an object store's config is valid by making sure each `config` key is in the `validKeys` list. The special keys "bucket" and "prefix" are always considered valid.
func ValidateVolumeSnapshotterConfigKeys ¶ added in v1.0.0
ValidateVolumeSnapshotterConfigKeys ensures that a volume snapshotter's config is valid by making sure each `config` key is in the `validKeys` list.
Types ¶
type BucketData ¶ added in v0.10.0
type InMemoryObjectStore ¶ added in v0.10.0
type InMemoryObjectStore struct {
Data map[string]BucketData
}
InMemoryObjectStore is a simple implementation of the ObjectStore interface that stores its data in-memory/in-proc. This is mainly intended to be used as a test fake.
func NewInMemoryObjectStore ¶ added in v0.10.0
func NewInMemoryObjectStore(buckets ...string) *InMemoryObjectStore
func (*InMemoryObjectStore) ClearBucket ¶ added in v0.10.0
func (o *InMemoryObjectStore) ClearBucket(bucket string)
func (*InMemoryObjectStore) CreateSignedURL ¶ added in v0.10.0
func (*InMemoryObjectStore) DeleteObject ¶ added in v0.10.0
func (o *InMemoryObjectStore) DeleteObject(bucket, key string) error
func (*InMemoryObjectStore) GetObject ¶ added in v0.10.0
func (o *InMemoryObjectStore) GetObject(bucket, key string) (io.ReadCloser, error)
func (*InMemoryObjectStore) Init ¶ added in v0.10.0
func (o *InMemoryObjectStore) Init(config map[string]string) error
func (*InMemoryObjectStore) ListCommonPrefixes ¶ added in v0.10.0
func (o *InMemoryObjectStore) ListCommonPrefixes(bucket, prefix, delimiter string) ([]string, error)
func (*InMemoryObjectStore) ListObjects ¶ added in v0.10.0
func (o *InMemoryObjectStore) ListObjects(bucket, prefix string) ([]string, error)
func (*InMemoryObjectStore) ObjectExists ¶ added in v1.0.0
func (o *InMemoryObjectStore) ObjectExists(bucket, key string) (bool, error)
Click to show internal directories.
Click to hide internal directories.