flags

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameVerbose       = "verbose"
	NameLogOutput     = "log-output"
	NameLogAdditional = "log-additional"
	NameQuiet         = "quiet"

	NameGrpc               = "grpc"
	NameHttp               = "http"
	NameSocket             = "socket"
	NameThreshold          = "threshold"
	NameTotalShares        = "total-shares"
	NameDefaultEnginePath  = "default-engine-path"
	NameBackendAddress     = "backend-address"
	NameBackendCredentials = "backend-credentials"
	NameInMemory           = "in-memory"
	NameDisableHttp        = "disable-http"
	NameDisableGrpc        = "disable-grpc"
	NameTokenID            = "token-id"
	NameRootTokenID        = "root-token-id"
)

Variables

View Source
var (
	Verbose = &cli.BoolFlag{
		Name: NameVerbose,
	}
	LogOutput = &cli.StringFlag{
		Name:  NameLogOutput,
		Usage: "Set the log output",
		Value: "sout",
	}
	LogAdditional = &cli.StringFlag{
		Name:  NameLogAdditional,
		Usage: "Additional data for logger\nSyslog example: \"network=tcp;address=localhost:6060\"",
	}
	Quiet = &cli.BoolFlag{
		Name:  NameQuiet,
		Usage: "Disable banner printing to logger's output",
	}

	Grpc = &cli.StringFlag{
		Name:  NameGrpc,
		Usage: "Starts grpc server and listen on specified address",
		Value: grpcDefaultAddr,
	}
	HTTP = &cli.StringFlag{
		Name:  NameHttp,
		Usage: "Starts HTTP server and listen on specified address",
		Value: httpDefaultAddr,
	}
	Socket = &cli.StringFlag{
		Name:  NameSocket,
		Usage: "Using the specified socket",
		Value: socketDefaultPath,
	}

	Threshold = &cli.IntFlag{
		Name:  NameThreshold,
		Usage: "The shamir's threshold",
		Value: thresholdDefault,
	}

	TotalShares = &cli.IntFlag{
		Name:  NameTotalShares,
		Usage: "The shamir's total shares",
		Value: totalSharesDefault,
	}

	DefaultEnginePath = &cli.StringFlag{
		Name:  NameDefaultEnginePath,
		Usage: "If there are multiple secret engines mounted, choose one as default value",
		Value: defaultEnginePath,
	}

	// TODO add flag to handle multiple database types
	ConsulAddress = &cli.StringFlag{
		Name:  NameBackendAddress,
		Usage: "Add backend connection string here",
	}
	ConsulToken = &cli.StringFlag{
		Name:  NameBackendCredentials,
		Usage: "Add backend credential here",
	}
	InMemory = &cli.BoolFlag{
		Name:  NameInMemory,
		Usage: "Starts the server with in memory physical backend for development",
		Value: false,
	}

	DisableGrpc = &cli.BoolFlag{
		Name:  NameDisableGrpc,
		Usage: "",
		Value: false,
	}

	DisableHttp = &cli.BoolFlag{
		Name:  NameDisableHttp,
		Usage: "",
		Value: false,
	}
	TokenID = &cli.StringFlag{
		Name:  NameTokenID,
		Usage: "Add custom token ID",
	}
	RootTokenID = &cli.StringFlag{
		Name:  NameRootTokenID,
		Usage: "Previously got root token id",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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