minio

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

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