machine

package
v1.8.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2024 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package machine implements emulation code for a single Talos machine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

Machine is a single Talos machine.

func NewMachine

func NewMachine(uuid string, logger *zap.Logger, globalState state.State) (*Machine, error)

NewMachine creates a Machine.

func (*Machine) Cleanup

func (m *Machine) Cleanup(ctx context.Context) error

Cleanup removes created network interfaces.

func (*Machine) Run

func (m *Machine) Run(ctx context.Context, siderolinkParams *SideroLinkParams, machineIndex int, kubernetes *kubefactory.Kubernetes) error

Run starts the machine.

type SideroLinkParams

type SideroLinkParams struct {
	APIEndpoint    string
	JoinToken      string
	LogsEndpoint   string
	EventsEndpoint string
	Host           string
	Insecure       bool
	TunnelMode     bool
}

SideroLinkParams is the siderolink params needed to join Omni instance.

Directories

Path Synopsis
Package controllers contains stripped versions of Talos controllers.
Package controllers contains stripped versions of Talos controllers.
Package events is Talos machine events.
Package events is Talos machine events.
Package kubeconfig provides Kubernetes config file generation.
Package kubeconfig provides Kubernetes config file generation.
Package logging implements machine logging sink.
Package logging implements machine logging sink.
Package network contains utility methods for setting up emulator network.
Package network contains utility methods for setting up emulator network.
watch
Package watch provides netlink watchers via multicast groups.
Package watch provides netlink watchers via multicast groups.
Package runtime starts COSI state and runtime.
Package runtime starts COSI state and runtime.
resources
Package resources contains all COSI related resource code.
Package resources contains all COSI related resource code.
resources/emu
Package emu contains emulator specific resources.
Package emu contains emulator specific resources.
resources/talos
Package talos contains Talos specific resources.
Package talos contains Talos specific resources.
Package services contains minimal versions of Talos services.
Package services contains minimal versions of Talos services.
apid/pkg/backend
Package backend implements backends satisfying proxy.Backend interface
Package backend implements backends satisfying proxy.Backend interface
apid/pkg/director
Package director provides proxy call routing facility
Package director provides proxy call routing facility

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL