talos

package
v1.7.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MPL-2.0 Imports: 100 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commands []*cobra.Command

Commands is a list of commands published by the package.

View Source
var GlobalArgs global.Args

GlobalArgs is the common arguments for the root command.

Functions

func CompleteConfigContext

func CompleteConfigContext(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CompleteConfigContext represents tab completion for `--context` argument and `config [context|remove]` command.

func CompleteNodes

func CompleteNodes(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)

CompleteNodes represents tab completion for `--nodes` argument.

func WithClient

func WithClient(action func(context.Context, *client.Client) error, dialOptions ...grpc.DialOption) error

WithClient builds upon WithClientNoNodes to provide set of nodes on request context based on config & flags.

func WithClientMaintenance

func WithClientMaintenance(enforceFingerprints []string, action func(context.Context, *client.Client) error) error

WithClientMaintenance wraps common code to initialize Talos client in maintenance (insecure mode).

func WithClientNoNodes

func WithClientNoNodes(action func(context.Context, *client.Client) error, dialOptions ...grpc.DialOption) error

WithClientNoNodes wraps common code to initialize Talos client and provide cancellable context.

WithClientNoNodes doesn't set any node information on the request context.

Types

type WipeMode added in v1.4.0

WipeMode apply, patch, edit config update mode.

func (*WipeMode) Set added in v1.4.0

func (m *WipeMode) Set(value string) error

Set implements Flag interface.

func (WipeMode) String added in v1.4.0

func (m WipeMode) String() string

func (*WipeMode) Type added in v1.4.0

func (m *WipeMode) Type() string

Type implements Flag interface.

Directories

Path Synopsis
Package output provides writers in different formats.
Package output provides writers in different formats.

Jump to

Keyboard shortcuts

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