flags

package
v0.0.0-...-65ce120 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientSets

type ClientSets struct {
	Core    coreclientset.Interface
	Example exampleclientset.Interface
}

type KubeClientConfig

type KubeClientConfig struct {
	KubeConfig   string
	KubeAPIQPS   float64
	KubeAPIBurst int
}

func (*KubeClientConfig) Flags

func (k *KubeClientConfig) Flags() []cli.Flag

func (*KubeClientConfig) NewClientSetConfig

func (k *KubeClientConfig) NewClientSetConfig() (*rest.Config, error)

func (*KubeClientConfig) NewClientSets

func (k *KubeClientConfig) NewClientSets() (ClientSets, error)

type LoggingConfig

type LoggingConfig struct {
	// contains filtered or unexported fields
}

func NewLoggingConfig

func NewLoggingConfig() *LoggingConfig

func (*LoggingConfig) Apply

func (l *LoggingConfig) Apply() error

Apply should be called in a cli.App.Before directly after parsing command line flags and before running any code which emits log entries.

func (*LoggingConfig) Flags

func (l *LoggingConfig) Flags() []cli.Flag

Flags returns the flags for the configuration.

type NasConfig

type NasConfig struct {
	NodeName  string
	Namespace string

	HideNodeName bool
}

func (*NasConfig) Flags

func (n *NasConfig) Flags() []cli.Flag

func (*NasConfig) NewNodeAllocationState

func (n *NasConfig) NewNodeAllocationState(ctx context.Context, core coreclientset.Interface) (*nascrd.NodeAllocationState, error)

Jump to

Keyboard shortcuts

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