minio

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.11.0

type Interface interface {
	PutFile(logr.Logger, string, string) error
	PutString(logr.Logger, string, string) error
}
var Instance Interface

func New

func New(logger logr.Logger) Interface

New return a MinIO instance

type Minio

type Minio struct {
	Client *minio.Client
	Config *config.Minio
}

Minio contains the instance and the configuration

func (*Minio) PutFile

func (m *Minio) PutFile(logger logr.Logger, source, target string) error

PutFile creates the object target in a bucket, with contents from file at source

func (*Minio) PutString

func (m *Minio) PutString(logger logr.Logger, data, target string) error

PutString creates the object target in a bucket, with the content of data of string type

Jump to

Keyboard shortcuts

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