arguments

package
v2.3.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentList

type ArgumentList struct {
	args.DefaultArgumentList
	Hostname              string `default:"localhost" help:"The hostname or IP of the Couchbase node being monitored"`
	Port                  int    `default:"8091" help:"The port used to connect to the Couchbase API"`
	QueryPort             int    `default:"8093" help:"The port used to connect to the N1QL service"`
	Username              string `default:"" help:"The username used to connect to the Couchbase API"`
	Password              string `default:"" help:"The password used to connect to the Couchbase API"`
	UseSSL                bool   `default:"false" help:"Signals whether to use SSL or not. Certificate bundle must be supplied"`
	CABundleFile          string `default:"" help:"Alternative Certificate Authority bundle file"`
	CABundleDir           string `default:"" help:"Alternative Certificate Authority bundle directory"`
	EnableClusterAndNodes bool   `default:"true" help:"If true, collects cluster and node resources"`
	EnableBuckets         bool   `default:"true" help:"If true, collects bucket resources"`
	EnableBucketStats     bool   `default:"true" help:"If true, collects additional bucket statistics"`
	Timeout               int    `default:"30" help:"Timeout for an API call"`
	ShowVersion           bool   `default:"false" help:"Print build information and exit"`
}

ArgumentList struct to hold all arguments needed to connect to a Couchbase environment

func (*ArgumentList) Validate

func (args *ArgumentList) Validate() error

Validate validates an argument list and returns an error if something is wrong

Jump to

Keyboard shortcuts

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