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 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 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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.