Documentation ¶
Index ¶
- Variables
- 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 ¶
View Source
var Commands []*cobra.Command
Commands is a list of commands published by the package.
View Source
var Config struct { RootDir string GlobalOptions struct { Talosconfig string `yaml:"talosconfig"` } `yaml:"globalOptions"` TemplateOptions struct { Offline bool `yaml:"offline"` ValueFiles []string `yaml:"valueFiles"` Values []string `yaml:"values"` StringValues []string `yaml:"stringValues"` FileValues []string `yaml:"fileValues"` JsonValues []string `yaml:"jsonValues"` LiteralValues []string `yaml:"literalValues"` TalosVersion string `yaml:"talosVersion"` WithSecrets string `yaml:"withSecrets"` KubernetesVersion string `yaml:"kubernetesVersion"` Full bool `yaml:"full"` } `yaml:"templateOptions"` ApplyOptions struct { DryRun bool `yaml:"preserve"` Timeout string `yaml:"timeout"` TimeoutDuration time.Duration CertFingerprints []string `yaml:"certFingerprints"` } `yaml:"applyOptions"` UpgradeOptions struct { Preserve bool `yaml:"preserve"` Stage bool `yaml:"stage"` Force bool `yaml:"force"` } `yaml:"upgradeOptions"` InitOptions struct { Version string } }
View Source
var GlobalArgs global.Args
GlobalArgs is the common arguments for the root command.
Functions ¶
func CompleteNodes ¶ added in v0.5.0
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 v0.5.0
type WipeMode machineapi.ResetRequest_WipeMode
WipeMode apply, patch, edit config update mode.
Source Files ¶
- apply.go
- imported_bootstrap.go
- imported_containers.go
- imported_dashboard.go
- imported_disks.go
- imported_dmesg.go
- imported_etcd.go
- imported_events.go
- imported_get.go
- imported_health.go
- imported_image.go
- imported_kubeconfig.go
- imported_list.go
- imported_logs.go
- imported_memory.go
- imported_mounts.go
- imported_netstat.go
- imported_pcap.go
- imported_processes.go
- imported_read.go
- imported_reboot.go
- imported_reset.go
- imported_restart.go
- imported_rollback.go
- imported_root.go
- imported_service.go
- imported_shutdown.go
- imported_stats.go
- imported_time.go
- imported_version.go
- init.go
- root.go
- template.go
- track.go
- upgrade.go
Click to show internal directories.
Click to hide internal directories.