cmd

package
v1.103.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ExtensionName string
	// Namespace is the namespace which will be used for heartbeat lease resource.
	Namespace string
	// RenewIntervalSeconds defines how often the heartbeat lease is renewed.
	RenewIntervalSeconds int32
}

Config is a completed heartbeat controller configuration.

func (*Config) Apply

func (c *Config) Apply(opts *heartbeat.AddOptions)

Apply sets the values of this Config in the given heartbeat.AddOptions.

type Options

type Options struct {
	ExtensionName string
	// Namespace is the namespace which will be used for the heartbeat lease resource.
	Namespace string
	// RenewIntervalSeconds defines how often the heartbeat lease is renewed.
	RenewIntervalSeconds int32
	// contains filtered or unexported fields
}

Options are command line options that can be set for the heartbeat controller.

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

AddFlags implements Flagger.AddFlags.

func (*Options) Complete

func (o *Options) Complete() error

Complete implements Completer.Complete.

func (*Options) Completed

func (o *Options) Completed() *Config

Completed returns the completed Config. Only call this if `Complete` was successful.

func (*Options) Validate

func (o *Options) Validate() error

Validate validates the options.

Jump to

Keyboard shortcuts

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