cmd

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		RunE: RunE,
	}
)

Functions

func Execute

func Execute(v, c, d string) error

Execute root command

func RunE

func RunE(_ *cobra.Command, _ []string) error

RunE this application and return error if any

Types

type MetricsServer

MetricsServer registers the capacity metrics with the controller-manager It ensures metrics are only served by the leader by registerig the metrics collectors *after* this instance is elected as the leader rather than at startup.

func (*MetricsServer) ReadCollectorSpec

func (ms *MetricsServer) ReadCollectorSpec() error

func (*MetricsServer) Start

func (ms *MetricsServer) Start(ctx context.Context) error

Start starts the metrics server nolint: gocyclo

type Options

type Options struct {
	ctrl.Options
	// contains filtered or unexported fields
}

Options is set by flags

Jump to

Keyboard shortcuts

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