config

package
v0.0.0-...-4f52230 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package config serves machine configuration to the machines that request it via talos.config kernel argument.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler handles machine configuration requests.

func NewHandler

func NewHandler(ctx context.Context, omniClient OmniClient, logger *zap.Logger) (*Handler, error)

NewHandler creates a new Handler.

func (*Handler) ServeHTTP

func (s *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP serves the machine configuration.

URL pattern: http://ip-of-this-provider:50042/config?&u=${uuid}

Implements http.Handler interface.

type OmniClient

type OmniClient interface {
	GetSiderolinkAPIURL(ctx context.Context) (string, error)
}

OmniClient is the interface to interact with Omni.

Jump to

Keyboard shortcuts

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