minio

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 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 {
	Id         int    `json:"id"`
	CustomerId int    `json:"customer_id"`
	S3Name     string `json:"s3_name"`
	Host       string `json:"host"`
	Bucket     string `json:"bucket"`
	AccessKey  string `json:"access_key"`
	SecretKey  string `json:"secret_key"`
}

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) error
}

func NewService

func NewService() IService

Jump to

Keyboard shortcuts

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