Documentation ¶
Overview ¶
Package minio contains implementation details for handling interactions with a minio object storage cluster
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOnlyPolicyJson ¶
ReadOnlyPolicyJson returns the policy JSON setting for a bucket
Types ¶
type Config ¶
type Config struct { // PublicUrl is the public URL that is used as a base URL for public documents/images etc PublicUrl string // Endpoint is the Minio Host Endpoint string // AccessKeyID is the access key ID AccessKeyID string // SecretAccessKey is the secret access key SecretAccessKey string // UseSSL is a boolean defining whether to use a SSL connection or not UseSSL bool // Token is the token to use for the connection, can be a blank string Token string }
Config is the configuration for setting up a minio client
type MinioStorageClient ¶
type MinioStorageClient struct {
// contains filtered or unexported fields
}
MinioStorageClient is a wrapper around minio that enables interactions with a Minio cluster
func (*MinioStorageClient) BucketExists ¶
func (*MinioStorageClient) CreateBucket ¶
func (sc *MinioStorageClient) CreateBucket(ctx context.Context, bucket string) error
func (*MinioStorageClient) Upload ¶
func (sc *MinioStorageClient) Upload(ctx context.Context, item storage.StorageItem) (string, error)
Click to show internal directories.
Click to hide internal directories.