Documentation ¶
Index ¶
- Constants
- Variables
- func Main(args []string)
- func NewGatewayLayerWithLocker(gwLayer minio.ObjectLayer) minio.ObjectLayer
- func ParseGatewayEndpoint(arg string) (endPoint string, secure bool, err error)
- func RegisterGatewayCommand(cmd cli.Command) error
- func StartGateway(ctx *cli.Context, gw Gateway)
- func ValidateGatewayArguments(serverAddr, endpointAddr string) error
- type Gateway
- type GatewayLocker
Constants ¶
const ( GatewayMinioSysTmp = "minio.sys.tmp/" AzureBackendGateway = "azure" GCSBackendGateway = "gcs" HDFSBackendGateway = "hdfs" NASBackendGateway = "nas" S3BackendGateway = "s3" )
GatewayMinioSysTmp prefix is used in Azure/GCS gateway for save metadata sent by Initialize Multipart Upload API.
Variables ¶
var ( // GOPATH - GOPATH value at the time of build. GOPATH = "" // GOROOT - GOROOT value at the time of build. GOROOT = "" // Version - version time.RFC3339. Version = "DEVELOPMENT.GOGET" // ReleaseTag - release tag in TAG.%Y-%m-%dT%H-%M-%SZ. ReleaseTag = "DEVELOPMENT.GOGET" // CommitID - latest commit id. CommitID = "DEVELOPMENT.GOGET" // ShortCommitID - first 12 characters from CommitID. ShortCommitID = "DEVELOPMENT.GOGET" )
DO NOT EDIT THIS FILE DIRECTLY. These are build-time constants set through ‘buildscripts/gen-ldflags.go’.
var Commands = []cli.Command{}
Commands - collection of minio commands currently supported are.
var GlobalFlags = []cli.Flag{ cli.StringFlag{ Name: "address", Value: ":" + minio.GlobalMinioDefaultPort, Usage: "bind to a specific ADDRESS:PORT, ADDRESS can be an IP or hostname", }, cli.StringFlag{ Name: "certs-dir, S", Value: minio.GlobalCertsDir.Get(), Usage: "path to certs directory", }, cli.BoolFlag{ Name: "quiet", Usage: "disable startup information", }, cli.BoolFlag{ Name: "anonymous", Usage: "hide sensitive information from logging", }, cli.BoolFlag{ Name: "json", Usage: "output server logs and startup information in json format", }, }
GlobalFlags - global flags for minio.
Functions ¶
func NewGatewayLayerWithLocker ¶
func NewGatewayLayerWithLocker(gwLayer minio.ObjectLayer) minio.ObjectLayer
NewGatewayLayerWithLocker - initialize gateway with locker.
func ParseGatewayEndpoint ¶
ParseGatewayEndpoint - Return endpoint.
func RegisterGatewayCommand ¶
RegisterGatewayCommand registers a new command for gateway.
func StartGateway ¶
StartGateway - handler for 'ming <name>'.
func ValidateGatewayArguments ¶
ValidateGatewayArguments - Validate gateway arguments.
Types ¶
type Gateway ¶
type Gateway interface { // Name returns the unique name of the gateway. Name() string // NewGatewayLayer returns a new minio.ObjectLayer. NewGatewayLayer(creds auth.Credentials) (minio.ObjectLayer, error) // Returns true if gateway is ready for production. Production() bool }
Gateway represents a gateway backend.
type GatewayLocker ¶
type GatewayLocker struct { minio.ObjectLayer // contains filtered or unexported fields }
GatewayLocker implements custom NewNSLock implementation
func (*GatewayLocker) NewNSLock ¶
func (l *GatewayLocker) NewNSLock(bucket string, objects ...string) minio.RWLocker
NewNSLock - implements gateway level locker
func (*GatewayLocker) Walk ¶
func (l *GatewayLocker) Walk(ctx context.Context, bucket, prefix string, results chan<- minio.ObjectInfo, opts minio.ObjectOptions) error
Walk - implements common gateway level Walker, to walk on all objects recursively at a prefix