Documentation ¶
Overview ¶
Package installer contains terminal UI based talos interactive installer parts.
Package installer contains terminal UI based talos interactive installer parts.
Index ¶
- type Connection
- func (c *Connection) ApplyConfiguration(req *machine.ApplyConfigurationRequest, callOptions ...grpc.CallOption) (*machine.ApplyConfigurationResponse, error)
- func (c *Connection) Disks(callOptions ...grpc.CallOption) (*storage.DisksResponse, error)
- func (c *Connection) ExpandingCluster() bool
- func (c *Connection) GenerateConfiguration(req *machine.GenerateConfigurationRequest, callOptions ...grpc.CallOption) (*machine.GenerateConfigurationResponse, error)
- func (c *Connection) Interfaces(callOptions ...grpc.CallOption) (*network.InterfacesResponse, error)
- type Installer
- type Option
- type Page
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection unifies clients for bootstrap node and the node which is being configured.
func NewConnection ¶
func NewConnection(ctx context.Context, nodeClient *client.Client, endpoint string, options ...Option) (*Connection, error)
NewConnection creates new installer connection.
func (*Connection) ApplyConfiguration ¶
func (c *Connection) ApplyConfiguration(req *machine.ApplyConfigurationRequest, callOptions ...grpc.CallOption) (*machine.ApplyConfigurationResponse, error)
ApplyConfiguration calls ApplyConfiguration on the target node using appropriate node context.
func (*Connection) Disks ¶
func (c *Connection) Disks(callOptions ...grpc.CallOption) (*storage.DisksResponse, error)
Disks get disks list from the target node.
func (*Connection) ExpandingCluster ¶
func (c *Connection) ExpandingCluster() bool
ExpandingCluster check if bootstrap node is set.
func (*Connection) GenerateConfiguration ¶
func (c *Connection) GenerateConfiguration(req *machine.GenerateConfigurationRequest, callOptions ...grpc.CallOption) (*machine.GenerateConfigurationResponse, error)
GenerateConfiguration calls GenerateConfiguration on the target/bootstrap node.
func (*Connection) Interfaces ¶
func (c *Connection) Interfaces(callOptions ...grpc.CallOption) (*network.InterfacesResponse, error)
Interfaces get list of network interfaces.
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
Installer interactive installer text based UI.
func (*Installer) Run ¶
func (installer *Installer) Run(conn *Connection) error
Run starts interactive installer.
type Page ¶
type Page struct {
// contains filtered or unexported fields
}
Page represents a single installer page.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State installer state.
func (*State) GenConfig ¶
func (s *State) GenConfig() (*machineapi.GenerateConfigurationResponse, error)
GenConfig returns current config encoded in yaml.