addons

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

func Register

func Register[T any](a *Addon[T])

Types

type Addon

type Addon[T any] struct {
	Config     T
	Definition Definition
	// contains filtered or unexported fields
}

func (*Addon) CheckInitialized

func (a *Addon) CheckInitialized()

CheckInitialized checks that the addon has been initialized and therefore it is safe to assume that its configuration is final and that it has registered anything it needs with the rest of the system.

If not, it panics.

Includes a call to instance.CheckLockedDown.

func (*Addon) CheckNotInitialized

func (a *Addon) CheckNotInitialized()

CheckNotInitialized checks that the addon has not been initialized yet and therefore it is safe to apply customizations / configuration changes to it.

If not, it panics.

Includes a call to instance.CheckCanCustomize.

func (*Addon[T]) RegisterIfNeeded

func (a *Addon[T]) RegisterIfNeeded()

type Definition

type Definition struct {
	Name        string
	Description func() string
	Initialize  func() error
}

type Description

type Description struct {
	Name        string
	Description string
}

func Enabled

func Enabled() []Description

Directories

Path Synopsis
apt
apt/getkey command
internal
Package internal provides internal types and functions for the bootstrap addon.
Package internal provides internal types and functions for the bootstrap addon.
textedit
Package textedit provides helpers for making changes to line-oriented text files.
Package textedit provides helpers for making changes to line-oriented text files.
input module
containerd module
docker module
gcs module
gocache module
gcs module
s3 module
k3s module
k8s module
pm
api
postgres module
valkey module

Jump to

Keyboard shortcuts

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