Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultPath ¶
GetDefaultPath returns default path to Talos config.
func GetTalosDirectory ¶
GetTalosDirectory returns path to Talos directory (~/.talos).
Types ¶
type Config ¶
type Config struct { Context string `yaml:"context"` Contexts map[string]*Context `yaml:"contexts"` }
Config represents the client configuration file (talosconfig).
func FromString ¶
FromString returns a config from a string.
func NewConfig ¶
func NewConfig(contextName string, endpoints []string, caCrt []byte, client *x509.PEMEncodedCertificateAndKey) *Config
NewConfig returns the client configuration file with a single context.
type Context ¶
type Context struct { DeprecatedTarget string `yaml:"target,omitempty"` // Field deprecated in favor of Endpoints Endpoints []string `yaml:"endpoints"` Nodes []string `yaml:"nodes,omitempty"` CA string `yaml:"ca"` Crt string `yaml:"crt"` Key string `yaml:"key"` }
Context represents the set of credentials required to talk to a target.
Click to show internal directories.
Click to hide internal directories.