templates

package
v0.2.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Userdata embed.FS

Functions

func GetTemplateContent

func GetTemplateContent(osType commonParams.OSType, forge params.EndpointType) ([]byte, error)

func RenderRunnerInstallScript

func RenderRunnerInstallScript(tpl string, context any) ([]byte, error)

func RenderRunnerInstallWrapper

func RenderRunnerInstallWrapper(ctx context.Context, osType commonParams.OSType, metadataURL, token string) ([]byte, error)

Types

type InstallContext

type InstallContext struct {
	cloudconfig.InstallRunnerParams
	AgentMode        bool
	AgentDownloadURL string
	AgentURL         string
	AgentToken       string
	AgentShell       string // "true" or "false", used verbatim in TOML config
}

InstallContext wraps the vendored InstallRunnerParams with agent-specific fields so templates can render agent values directly without requiring the runner to fetch metadata and parse it with jq at runtime.

type WrapperContext

type WrapperContext struct {
	CallbackToken string
	MetadataURL   string
	CACertBundle  string
}

Jump to

Keyboard shortcuts

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