Documentation ¶
Index ¶
- type Config
- type MinioClient
- func (c MinioClient) DeleteAllObjectsByPrefix(bucket string, prefix string, opts minio.ListObjectsOptions)
- func (c MinioClient) DeleteObject(bucket string, objectName string, opts minio.RemoveObjectOptions) error
- func (c MinioClient) PrefixUrl(bucket string) string
- func (c *MinioClient) UploadFile(filePath string, bucket string, keyName string) error
- func (c *MinioClient) UploadFromReader(ctx context.Context, bucketName, objectName string, reader io.Reader, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Key string `json:"key"` Domain string `json:"domain" toml:"Domain"` Endpoint string `json:"endpoint" toml:"Endpoint"` AccessKeyID string `json:"accessKeyID" toml:"AccessKeyID"` SecretAccessKey string `json:"secretAccessKey" toml:"SecretAccessKey"` UseSSL bool `json:"useSSL" toml:"UseSSL"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func (Config) Build ¶
func (config Config) Build() *MinioClient
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
func (MinioClient) DeleteAllObjectsByPrefix ¶
func (c MinioClient) DeleteAllObjectsByPrefix(bucket string, prefix string, opts minio.ListObjectsOptions)
func (MinioClient) DeleteObject ¶
func (c MinioClient) DeleteObject(bucket string, objectName string, opts minio.RemoveObjectOptions) error
func (MinioClient) PrefixUrl ¶
func (c MinioClient) PrefixUrl(bucket string) string
func (*MinioClient) UploadFile ¶
func (c *MinioClient) UploadFile(filePath string, bucket string, keyName string) error
func (*MinioClient) UploadFromReader ¶
Click to show internal directories.
Click to hide internal directories.