Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Store creates a new object in the underlying provider's datastore if it does not exist, // or replaces the existing object if it does exist. Store(key string, body io.ReadCloser) error // Retrieve return the object in the underlying provider's datastore if it exists. Retrieve(key string) (io.ReadCloser, error) }
Interface abstracts the underlying storage provider.
func NewStorageProvider ¶
func NewStorageProvider(config v1alpha1.StorageProvider, credentials map[string]string) (Interface, error)
NewStorageProvider accepts a secret map and uses its contents to determine the desired object storage provider implementation.
Click to show internal directories.
Click to hide internal directories.