node

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package node provides the node RPC service to facilitate live migrations.

Index

Constants

View Source
const (
	ImagePathKey       = "image_path"
	ImageIDKey         = "image_id"
	ImageServerHostKey = "image_server_host"
	ImageServerPortKey = "image_server_port"
	PageServerHostKey  = "page_server_host"
	PageServerPortKey  = "page_server_port"
	CriuBin            = "/bin/criu"
)

Variables

View Source
var ErrLiveMigrationNotSupported = errors.New("live migration is not supported on this node")

Functions

func GenCert

func GenCert(caCert *x509.Certificate, caKey ed25519.PrivateKey, ipAddresses ...net.IP) (tls.Certificate, error)

Types

type Server

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

func NewServer

func NewServer(addr string, kube client.Client, log *slog.Logger) (*Server, error)

NewServer starts a node server with two listeners: * Unix socket for the shims to connect to it locally * TCP+TLS socket to allow the other node instances to connect

func (*Server) Start

func (s *Server) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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