Documentation ¶
Index ¶
- type MinioStorage
- func (m *MinioStorage) Delete(name string) error
- func (m *MinioStorage) Get(name string) (io.ReadCloser, error)
- func (m *MinioStorage) List(prefix string, maxSize int) ([]string, error)
- func (m *MinioStorage) Lock(path string) error
- func (m *MinioStorage) Put(name string, data []byte) error
- func (m *MinioStorage) PutReader(name string, reader io.Reader) error
- func (m *MinioStorage) Unlock(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinioStorage ¶
type MinioStorage struct {
// contains filtered or unexported fields
}
MinioStorage implements the strata.Storage interface using minio as its storage backing
func NewMinioStorage ¶
func NewMinioStorage(endPoint, accessKeyID, secretAccessKey, bucket, prefix, region string, secure bool) (*MinioStorage, error)
NewMinioStorage initializes the MinioStorage with Minio arguments
func (*MinioStorage) Delete ¶
func (m *MinioStorage) Delete(name string) error
Delete removes the object from the minio bucket
func (*MinioStorage) Get ¶
func (m *MinioStorage) Get(name string) (io.ReadCloser, error)
Get returns a reader to the specified minio object.
func (*MinioStorage) List ¶
func (m *MinioStorage) List(prefix string, maxSize int) ([]string, error)
List returns a list of objects
func (*MinioStorage) Put ¶
func (m *MinioStorage) Put(name string, data []byte) error
Put places the byte slice with the given objectName in the minio bucket
func (*MinioStorage) PutReader ¶
func (m *MinioStorage) PutReader(name string, reader io.Reader) error
PutReader consumes the given reader and stores it with the specified name in the minio bucket.
func (*MinioStorage) Unlock ¶
func (m *MinioStorage) Unlock(path string) error
Unlock is not implemented
Click to show internal directories.
Click to hide internal directories.