k3dgenerator

package
v5.27.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package k3dgenerator provides utilities for generating K3d cluster configurations.

This package implements the Generator interface for K3d v1alpha5.SimpleConfig structures, producing YAML configuration files for K3d clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K3dGenerator

type K3dGenerator struct {
	Marshaller marshaller.Marshaller[*v1alpha5.SimpleConfig]
}

K3dGenerator generates a k3d SimpleConfig YAML.

func NewK3dGenerator

func NewK3dGenerator() *K3dGenerator

NewK3dGenerator creates and returns a new K3dGenerator instance.

func (*K3dGenerator) Generate

func (g *K3dGenerator) Generate(
	cluster *v1alpha5.SimpleConfig,
	opts yamlgenerator.Options,
) (string, error)

Generate creates a k3d cluster YAML configuration and writes it to the specified output.

Jump to

Keyboard shortcuts

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