miniofilesystem

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: GPL-3.0 Imports: 8 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 {
	Endpoint string
	Key      string
	Secret   string
	UseSSL   bool
	Region   string
	Bucket   string
}

Minio is the overall type for the minio filesystem, and contains the connection credentials, endpoint, and the bucket to use

func (*Minio) Delete

func (m *Minio) Delete(itemsToDelete []string) bool

Delete removes one or more files from the remote filesystem

func (*Minio) Get

func (m *Minio) Get(destination string, items ...string) error

Get pulls a file from the remote file system and saves it somewhere on our server

func (*Minio) List

func (m *Minio) List(prefix string) ([]filesystems.Listing, error)

List returns a listing of all files in the remote bucket with the given prefix, except for files with a leading . in the name

func (*Minio) Put

func (m *Minio) Put(fileName, folder string) error

Put transfers a file to the remote file system

Jump to

Keyboard shortcuts

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