Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
ServeCollection ServeCollectionCmd `cmd:"" help:"Serving as a collection manager"`
ServeLocal ServeLocalCmd `cmd:"" help:"Serving as a local configurator (node agent)"`
Version VersionCmd `cmd:"" help:"Show the version of the program"`
Node string `help:"Name of the node to start" short:"n"`
TLSTrustedCACert string `help:"Path to trusted CA certificate file for TLS" type:"path"`
TLSClientCert string `help:"Path to client certificate file for TLS" type:"path"`
TLSClientKey string `help:"Path to client private key file for TLS" type:"path"`
HTTPBasicAuthUsername string `help:"Username for HTTP basic authentication"`
HTTPBasicAuthPassword string `help:"Password for HTTP basic authentication"`
VersionMetadata map[string]string
}
type ServeCollectionCmd ¶
type ServeCollectionCmd struct {
MongoDBURI string `help:"URI of the MongoDB to connect to" short:"m"`
BindUnixSocket string `help:"Path to the unix socket to bind" type:"path"`
}
func (*ServeCollectionCmd) Run ¶
func (cmd *ServeCollectionCmd) Run(globalCLIConfig *CLI) error
type ServeLocalCmd ¶
type ServeLocalCmd struct {
BindUnixSocket string `help:"Path to the unix socket to bind" type:"path"`
ResolverEndpoint string `help:"Endpoint to use for resolving DNS, for example, 1.1.1.1:53" type:"string"`
V6Available bool `help:"Whether IPv6 is available" default:"false"`
}
func (*ServeLocalCmd) Run ¶
func (cmd *ServeLocalCmd) Run(globalCLIConfig *CLI) error
type VersionCmd ¶
type VersionCmd struct {
CommitHash string
}
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run(globalCLIConfig *CLI) error
Click to show internal directories.
Click to hide internal directories.