minio

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 4 Imported by: 0

README

Minio Usage

run minio server on docker

docker run \
  --name minio -d \
  -p 9000:9000 \
  -p 9001:9001 \
  -v data:/data \
  -e "MINIO_ACCESS_KEY=pms" \
  -e "MINIO_SECRET_KEY=pms123456" \
  --restart=always \
  minio/minio server /data --console-address ":9001"

run minio server on docker (host: ARMv7)

docker run --name minio -d \
        --restart=awlays \
        -p 9999:9000 \
        -e "MINIO_ACCESS_KEY=pms" \
        -e "MINIO_SECRET_KEY=pms123456" \
        -v data:/data 
        minio/minio:RELEASE.2020-12-03T05-49-24Z server /data

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Down

func Down(urlFile string, fromBucket string) (to io.Reader, err error)

func InitWith

func InitWith(conf Config) (err error)

InitWith Initialize minio client object.

func Upload

func Upload(file io.Reader, toBucket string, withURL string) error

Types

type Config

type Config struct {
	Endpoint        string
	AccessKeyID     string
	SecretAccessKey string
}

type Point added in v0.0.2

type Point struct {
}

func InitPointWith added in v0.0.2

func InitPointWith(conf Config) (p Point, err error)

func (Point) Down added in v0.0.2

func (Point) Down(urlFile string, fromBucket string) (to io.Reader, err error)

func (Point) Upload added in v0.0.2

func (Point) Upload(file io.Reader, toBucket string, withURL string) error

Jump to

Keyboard shortcuts

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