minio

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 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 Minio

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

func New

func New(logger logr.Logger) *Minio

New return a MinIO instance

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