Documentation
¶
Overview ¶
Package client represents the discovery client command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
Globals
Server serverCmd `cmd:"" help:"Register and unregister servers." aliases:"srv"`
Login loginCmd `cmd:"" help:"Perform OIDC login."`
Service serviceCmd `cmd:"" help:"Register and unregister services." aliases:"svc"`
Namespace namespaceCmd `cmd:"" help:"Register and unregister namespaces." aliases:"ns"`
Token tokenCmd `cmd:"" help:"Manage access tokens"`
}
CLI is the client command.
type Globals ¶
type Globals struct {
Address string `short:"a" help:"The address of the discovery grpc endpoint." default:"localhost:3001"`
Timeout time.Duration `help:"The request timeout" default:"15s"`
Debug bool `short:"d" help:"Log debug output."`
Insecure bool `help:"use insecure connection without tls." xor:"tls"`
ShowConfig king.ShowConfig `help:"Show used config files"`
Version king.VersionFlag `help:"Show version information"`
TokenPath string `help:"Authentication token" default:"~/.config/discovery/.token"`
OIDC oidc `embed:"true" prefix:"oidc-"`
CACert string `` /* 127-byte string literal not displayed */
}
Globals are the global client flags.
Click to show internal directories.
Click to hide internal directories.