Documentation
¶
Overview ¶
Package gwcli holds the versitygw CLI subcommands and state shared by all versitygw-based main packages (cmd/versitygw, cmd/vgwrdma, ...). Hosting binaries wire up their backend-specific flags/commands in their own main package, and delegate the identical, backend-agnostic subcommands here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( RootUserAccess string RootUserSecret string )
RootUserAccess and RootUserSecret are the root user credentials parsed by the hosting binary's --access/--secret flags. The admin subcommand falls back to these when no admin-specific credentials are provided.
var ( // SigDone is signaled once on SIGINT/SIGTERM to begin shutdown. SigDone = make(chan struct{}, 1) // SigHup is signaled on every SIGHUP to trigger a config reload. SigHup = make(chan struct{}, 1) )
var CopyObjectThreshold int64
CopyObjectThreshold is the maximum allowed source object size in bytes for CopyObject, populated by the hosting binary's --copy-object-threshold flag.
var DisableStrictBucketNames bool
DisableStrictBucketNames allows relaxed bucket naming, populated by the hosting binary's --disable-strict-bucket-names flag.
RunGateway starts the S3 gateway server for the given backend. The hosting binary's main package must set this before running any command that can launch a backend (azure, plugin, s3).
var RunIAM func(ctx *cli.Context) error
RunIAM starts the standalone IAM API server for the given command context. The hosting binary's main package must set this before running the "iam" command.
Functions ¶
func AdminCommand ¶
AdminCommand returns the "admin" subcommand, common to all versitygw binaries.
func AzureCommand ¶
AzureCommand returns the "azure" subcommand, common to all versitygw binaries.
func IAMCommand ¶
IAMCommand returns the "iam" subcommand, common to all versitygw binaries.
func PluginCommand ¶
PluginCommand returns the "plugin" subcommand, common to all versitygw binaries.
func PosixCommand ¶
PosixCommand returns the "posix" subcommand, common to all versitygw binaries.
func ScoutfsCommand ¶
ScoutfsCommand returns the "scoutfs" subcommand, common to all versitygw binaries.
func SetupSignalHandler ¶
func SetupSignalHandler()
SetupSignalHandler starts a goroutine that translates SIGINT/SIGTERM into a single SigDone notification and SIGHUP into repeated SigHup notifications.
func UtilsCommand ¶
UtilsCommand returns the "utils" subcommand, common to all versitygw binaries.
Types ¶
This section is empty.