Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct { Host string `json:"host"` Bucket string `json:"bucket"` AccessKey string `json:"access_key"` SecretKey string `json:"secret_key"` }
func NewCredentials ¶ added in v1.0.26
func NewCredentials(host, bucket, accessKey, secretKey string) *Credentials
type IService ¶
type IService interface { PreSignedGetObject(input string, credentials Credentials) (u *url.URL, err error) GetS3Client(credentials Credentials) (*miniogo.Client, error) PutObject(file *os.File, destination string, credentials Credentials, userMetadata map[string]string) error Exists(key string, credentials Credentials) (bool, error) DeleteObject(path string, credentials Credentials) error GetObject(path string, credentials Credentials) ([]byte, error) }
func NewService ¶
func NewService() IService
Click to show internal directories.
Click to hide internal directories.