Skip to main content

minio

MinIO

Project#

https://github.com/beyondstorage/go-service-minio

Config#

Servicer#

Available Pairs#

NameRequiredComments
credentialYonly support hmac protocol
endpointYspecific domain to access this storager

Examples#

Init servicer (see this page for details)

import (    _ "github.com/beyondstorage/go-service-minio"    "github.com/beyondstorage/go-storage/v4/services")
srv, err := services.NewServicerFromString("minio://?credential=hmac:<access_key>:<secret_key>&endpoint=https:<host>:<port>")if err != nil {    log.Fatalf("minio new service: %v", err)}

Storager#

Available Pairs#

NameRequiredComments
nameYbucket name
work_dirNwork dir

Examples#

Init storager (see this page for details)

import (    _ "github.com/beyondstorage/go-service-minio"    "github.com/beyondstorage/go-storage/v4/services")
store, err := services.NewStoragerFromString("minio://<bucket_name>/<work_dir>?credential=hmac:<access_key>:<secret_key>&endpoint=https:<host>:<port>")if err != nil {    log.Fatalf("minio new storager: %v", err)}

Implementation#

This service implements following interfaces: