types

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IK2

type IK2[TBody IK2Body] struct {
	K2 IK2Root[TBody] `yaml:"k2"`
}

type IK2Body

type IK2Body = interface{}

type IK2Inventory

type IK2Inventory struct {
	K2 IK2InventoryRoot `yaml:"k2"`
}

type IK2InventoryBody

type IK2InventoryBody struct {
	Folders struct {
		Ignore    []string `yaml:"ignore"`
		Applies   []string `yaml:"applies"`
		Templates []string `yaml:"templates"`
		Stacks    string   `yaml:"stacks"`
	} `yaml:"folders"`
	Vars map[string]string `yaml:"vars"`
}

type IK2InventoryRoot

type IK2InventoryRoot struct {
	Metadata IK2Metadata      `yaml:"metadata"`
	Body     IK2InventoryBody `yaml:"body"`
}

type IK2Metadata

type IK2Metadata struct {
	ID      string `yaml:"id"`
	Kind    string `yaml:"kind"`
	Version string `yaml:"version"`
	Path    string `yaml:"path"`
	Folder  string `yaml:"folder"`
}

type IK2Root

type IK2Root[TBody IK2Body] struct {
	Metadata IK2Metadata `yaml:"metadata"`
	Body     TBody       `yaml:"body"`
}

type IK2Stack added in v0.10.0

type IK2Stack struct {
	Version string       `yaml:"version"`
	Stack   IK2StackBody `yaml:"stack"`
}

type IK2StackBody added in v0.10.0

type IK2StackBody struct {
	Description string            `yaml:"description"`
	Extends     []string          `yaml:"extends,omitempty"`
	Env         map[string]string `yaml:"env"`
	Layers      []IK2StackLayer   `yaml:"layers"`
}

type IK2StackLayer added in v0.10.0

type IK2StackLayer struct {
	Layer string            `yaml:"layer"`
	Plan  string            `yaml:"plan"`
	Env   map[string]string `yaml:"env"`
}

type IK2Template

type IK2Template struct {
	K2 IK2TemplateRoot `yaml:"k2"`
}

func (*IK2Template) ExecuteBootstrap added in v0.9.4

func (t *IK2Template) ExecuteBootstrap(target *IK2TemplateApply) error

func (*IK2Template) ExecuteNuke added in v0.9.4

func (t *IK2Template) ExecuteNuke(target *IK2TemplateApply) error

func (*IK2Template) ExecutePost added in v0.9.4

func (t *IK2Template) ExecutePost(target *IK2TemplateApply) error

func (*IK2Template) ExecutePre added in v0.9.4

func (t *IK2Template) ExecutePre(target *IK2TemplateApply) error

type IK2TemplateApply

type IK2TemplateApply struct {
	K2 IK2TemplateApplyRoot `yaml:"k2"`
}

func (*IK2TemplateApply) ExecuteBootstrap added in v0.9.4

func (t *IK2TemplateApply) ExecuteBootstrap() error

func (*IK2TemplateApply) ExecuteNuke added in v0.9.4

func (t *IK2TemplateApply) ExecuteNuke() error

func (*IK2TemplateApply) ExecutePost added in v0.9.4

func (t *IK2TemplateApply) ExecutePost() error

func (*IK2TemplateApply) ExecutePre added in v0.9.4

func (t *IK2TemplateApply) ExecutePre() error

type IK2TemplateApplyBody

type IK2TemplateApplyBody struct {
	Template IK2TemplateRef `yaml:"template"`
	Vars     map[string]any `yaml:"vars"`
	Scripts  struct {
		Bootstrap []string `yaml:"bootstrap"`
		Pre       []string `yaml:"pre"`
		Post      []string `yaml:"post"`
		Nuke      []string `yaml:"nuke"`
	} `yaml:"scripts"`
}

type IK2TemplateApplyRoot

type IK2TemplateApplyRoot struct {
	Metadata IK2Metadata          `yaml:"metadata"`
	Body     IK2TemplateApplyBody `yaml:"body"`
}

type IK2TemplateBody

type IK2TemplateBody struct {
	Name       string         `yaml:"name"`
	Parameters map[string]any `yaml:"parameters"`
	Scripts    struct {
		Bootstrap []string `yaml:"bootstrap"`
		Pre       []string `yaml:"pre"`
		Post      []string `yaml:"post"`
		Nuke      []string `yaml:"nuke"`
	} `yaml:"scripts"`
}

type IK2TemplateRef

type IK2TemplateRef struct {
	// The name of the template
	Source IK2TemplateRefSource `yaml:"source"`
	Params map[string]string    `yaml:"params"`
}

func (*IK2TemplateRef) Hash

func (t *IK2TemplateRef) Hash() string

type IK2TemplateRefSource

type IK2TemplateRefSource string
const (
	K2TemplateRefSourceInventory IK2TemplateRefSource = "inventory"
	K2TemplateRefSourceGit       IK2TemplateRefSource = "git"
)

type IK2TemplateRoot

type IK2TemplateRoot struct {
	Metadata IK2Metadata     `yaml:"metadata"`
	Body     IK2TemplateBody `yaml:"body"`
}

Jump to

Keyboard shortcuts

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