minio

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

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 StdConfig

func StdConfig(key string) *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

func (c *MinioClient) UploadFromReader(ctx context.Context, bucketName, objectName string, reader io.Reader, objectSize int64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL