templates

package
v0.2.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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