command

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = map[string]Command{
	// contains filtered or unexported fields
}

Functions

func ListRegisteredLogFormats

func ListRegisteredLogFormats(writer io.Writer, fetcher registrationFetcher, lister appLister, appName string) error

func ListRegisteredMetricsEndpoints

func ListRegisteredMetricsEndpoints(writer io.Writer, fetcher registrationFetcher, lister appLister, appName string) error

func RegisterLogFormat

func RegisterLogFormat(cliConn cliCommandRunner, appName, logFormat string) error

func RegisterMetricsEndpoint

func RegisterMetricsEndpoint(cliConn cliCommandRunner, appName, route, internalPort string, insecure bool) error

func UnregisterLogFormat

func UnregisterLogFormat(registrationFetcher registrationFetcher, cliConn cliCommandRunner, appName, format string) error

func UnregisterMetricsEndpoint

func UnregisterMetricsEndpoint(registrationFetcher registrationFetcher, cliConn cliCommandRunner, appName, path, port string) error

Types

type Command

type Command struct {
	HelpText  string
	Arguments []string
	Options   map[string]Option

	Flags interface{}
	Run   func(fetcher registrationFetcher, conn plugin.CliConnection) error
	// contains filtered or unexported fields
}

func (Command) Usage

func (c Command) Usage() string

type MetricRegistrarCli

type MetricRegistrarCli struct {
	Major int
	Minor int
	Patch int
}

func (MetricRegistrarCli) GetMetadata

func (c MetricRegistrarCli) GetMetadata() plugin.PluginMetadata

func (MetricRegistrarCli) Run

func (c MetricRegistrarCli) Run(cliConnection plugin.CliConnection, args []string)

type Option

type Option struct {
	Name        string
	Description string
}

Jump to

Keyboard shortcuts

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