imagefactory

package
v0.1.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package imagefactory provides an abstraction to the image factory for the bare metal infra provider.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is an image factory client.

func NewClient

func NewClient(baseURL, pxeBaseURL, agentModeTalosVersion string) (*Client, error)

NewClient creates a new image factory client.

func (*Client) SchematicIPXEURL

func (c *Client) SchematicIPXEURL(ctx context.Context, agentMode bool, talosVersion, arch string, extensions, extraKernelArgs []string) (string, error)

SchematicIPXEURL ensures a schematic exists on the image factory and returns the iPXE URL to it.

If agentMode is true, the schematic will be created with the firmware extensions and the metal-agent extension.

Jump to

Keyboard shortcuts

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