Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinioConfig ¶
type ObjectStorageClient ¶
type ObjectStorageClient interface { MakeBucket(ctx context.Context, bucketName string, opts minio.MakeBucketOptions) error BucketExists(ctx context.Context, bucketName string) (bool, error) PutObject(ctx context.Context, bucketName string, objectName string, reader io.Reader, objectSize int64, opts minio.PutObjectOptions) (minio.UploadInfo, error) GetObject(ctx context.Context, bucketName string, objectName string, opts minio.GetObjectOptions) (*minio.Object, error) ListObjects(ctx context.Context, bucketName string, opts minio.ListObjectsOptions) <-chan minio.ObjectInfo }
func NewObjectStorageClient ¶
func NewObjectStorageClient(config *configs.Configuration) (ObjectStorageClient, *errors.GimmeError)
NewObjectStorageClient create a new object storage client
type ObjectStorageManager ¶
type ObjectStorageManager interface { CreateBucket(bucketName string, location string) *errors.GimmeError AddObject(objectName string, file *zip.File) *errors.GimmeError GetObject(objectName string) (*minio.Object, *errors.GimmeError) ObjectExists(objectName string) bool ListObjects(objectName string) []minio.ObjectInfo }
func NewObjectStorageManager ¶
func NewObjectStorageManager(client ObjectStorageClient) ObjectStorageManager
NewObjectStorageManager create a new object storage manager
Click to show internal directories.
Click to hide internal directories.