minio

package
v0.0.0-...-db8c6ed Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const ServiceName = "minio"

Variables

This section is empty.

Functions

func NewService

func NewService(config mediastore.ServiceConfig) (mediastore.Service, error)

Types

type Config

type Config struct {
	Region          string `env:"REGION"`
	BucketName      string `env:"BUCKET_NAME"`
	AccessKeyID     string `env:"ACCESS_KEY_ID,required"`
	SecretAccessKey string `env:"SECRET_ACCESS_KEY,required"`
	Endpoint        string `env:"ENDPOINT,required"`
	UseSSL          bool   `env:"USE_SSL"`
}

func ConfigSkeleton

func ConfigSkeleton() Config

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) PutObject

func (objStoreCl *Service) PutObject(
	targetKey string, contentSource io.Reader,
) (finalURL string, err error)

Jump to

Keyboard shortcuts

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