Documentation ¶
Index ¶
- Variables
- func CompleteConfigContext(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func CompleteNodes(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective)
- func WithClient(action func(context.Context, *client.Client) error, ...) error
- func WithClientMaintenance(enforceFingerprints []string, ...) error
- func WithClientNoNodes(action func(context.Context, *client.Client) error, ...) error
- type WipeMode
Constants ¶
This section is empty.
Variables ¶
var Commands []*cobra.Command
Commands is a list of commands published by the package.
var GlobalArgs global.Args
GlobalArgs is the common arguments for the root command.
Functions ¶
func CompleteConfigContext ¶
CompleteConfigContext represents tab completion for `--context` argument and `config [context|remove]` command.
func CompleteNodes ¶
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
type WipeMode machineapi.ResetRequest_WipeMode
WipeMode apply, patch, edit config update mode.
Source Files ¶
- apply-config.go
- bootstrap.go
- config.go
- conformance.go
- containers.go
- copy.go
- crashdump.go
- dashboard.go
- disks.go
- diskusage.go
- dmesg.go
- edit.go
- etcd.go
- events.go
- get.go
- health.go
- image.go
- inspect.go
- interfaces.go
- kubeconfig.go
- list.go
- logs.go
- memory.go
- meta.go
- mounts.go
- netstat.go
- patch.go
- pcap.go
- processes.go
- read.go
- reboot.go
- reset.go
- restart.go
- rollback.go
- root.go
- rotate-ca.go
- routes.go
- service.go
- shutdown.go
- stats.go
- support.go
- time.go
- track.go
- upgrade-k8s.go
- upgrade.go
- version.go