Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinIOStorage = "minio" LocalStorage = "local" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataStoreClient ¶
type DataStoreClient struct {
Client IDataStoreClient
}
func NewDataStoreClient ¶
func NewDataStoreClient(config DataStoreConfig) (DataStoreClient, error)
type DataStoreConfig ¶
type IDataStoreClient ¶
type LocalClient ¶
type LocalClient struct {
DataPath string
}
func (LocalClient) GetFile ¶
func (c LocalClient) GetFile(object string, bucket string) (*[]byte, error)
func (LocalClient) StorageType ¶
func (c LocalClient) StorageType() string
func (LocalClient) UploadFile ¶
func (c LocalClient) UploadFile(name string, dest string) error
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
func (MinioClient) GetClient ¶
func (c MinioClient) GetClient() *minio.Client
func (MinioClient) GetFile ¶
func (c MinioClient) GetFile(object string, bucket string) (*[]byte, error)
func (MinioClient) StorageType ¶
func (c MinioClient) StorageType() string
func (MinioClient) UploadFile ¶
func (c MinioClient) UploadFile(name string, dest string) error
Click to show internal directories.
Click to hide internal directories.