Documentation ¶
Overview ¶
Package talosapi represents the Talos API client.
Index ¶
- type LocalClient
- func (c *LocalClient) Close() error
- func (c *LocalClient) Hostname() string
- func (c *LocalClient) NetInterfaces() (result []tboxcmds.NetInterface)
- func (c *LocalClient) OSVersion() string
- func (c *LocalClient) OSVersionShort() string
- func (c *LocalClient) Reboot() error
- func (c *LocalClient) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalClient ¶
type LocalClient struct {
// contains filtered or unexported fields
}
LocalClient represents the Talos API client.
func NewLocalClient ¶
func NewLocalClient(ctx context.Context, log logrus.FieldLogger, configPath string, k8sHost string) (*LocalClient, error)
NewLocalClient creates a new Talos API client.
func NewLocalSocketClient ¶
func NewLocalSocketClient(ctx context.Context, log logrus.FieldLogger) (*LocalClient, error)
NewLocalSocketClient creates a new Talos API client using a local socket.
func (*LocalClient) Hostname ¶
func (c *LocalClient) Hostname() string
Hostname returns the hostname.
func (*LocalClient) NetInterfaces ¶
func (c *LocalClient) NetInterfaces() (result []tboxcmds.NetInterface)
NetInterfaces returns the network interfaces.
func (*LocalClient) OSVersion ¶
func (c *LocalClient) OSVersion() string
OSVersion returns the OS version.
func (*LocalClient) OSVersionShort ¶
func (c *LocalClient) OSVersionShort() string
OSVersionShort returns the short OS version.
func (*LocalClient) Shutdown ¶
func (c *LocalClient) Shutdown() error
Shutdown shuts down the machine.
Click to show internal directories.
Click to hide internal directories.