Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalStorage ¶
type ExternalStorage interface { // Write file to storage WriteFile(name string, data string) error // Read storage file ReadFile(name string) ([]byte, error) }
ExternalStorage represents a kind of file system storage.
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
LocalStorage represents local file system storage.
export for using in tests.
func NewLocalStorage ¶
func NewLocalStorage(base string) (*LocalStorage, error)
type MinioStorage ¶
type MinioStorage struct {
// contains filtered or unexported fields
}
MinioStorage represents minio object storage.
export for using in tests.
func NewMinioStorage ¶
func NewMinioStorage(ctx context.Context, endpoint, bucket, accessKey, secretKey string, useSSL bool) (*MinioStorage, error)
TODO: check validity of arguments.
Click to show internal directories.
Click to hide internal directories.