client

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 23 Imported by: 0

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"`
	Import    importCmd    `cmd:"" help:"Import new services"`
	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:"5s"`
	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"`
	OIDCEndpoint string           `help:"OIDC endpoint URL." required:"true"`
	OIDCClientID string           `help:"OIDC client ID." required:"true"`
	CACert       string           `` /* 127-byte string literal not displayed */
}

Globals are the global client flags.

Jump to

Keyboard shortcuts

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