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) Links(callOptions ...grpc.CallOption) ([]Link, error)
- type Installer
- type Link
- 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) Links ¶ added in v0.13.0
func (c *Connection) Links(callOptions ...grpc.CallOption) ([]Link, error)
Links gets a 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 Option ¶
type Option func(c *Connection) error
Option represents a single connection option.
func WithBootstrapNode ¶
func WithBootstrapNode(ctx context.Context, bootstrapClient *client.Client, bootstrapNode string) Option
WithBootstrapNode configures bootstrap node endpoint.
func WithDryRun ¶ added in v1.1.0
WithDryRun enables dry run mode in the 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.