hook

package
v2.7.14 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AfterInstall = []Interface{
	&GrubOptions{},
	&BundlePostInstall{},
	&CustomMounts{},
	&Lifecycle{},
}
View Source
var AfterReset = []Interface{
	&Lifecycle{},
}
View Source
var AfterUkiInstall = []Interface{}

AfterUkiInstall sets which Hooks to run after uki runs the install action

View Source
var AfterUpgrade = []Interface{
	&Lifecycle{},
}
View Source
var EncryptionHooks = []Interface{
	&Kcrypt{},
}
View Source
var UKIEncryptionHooks = []Interface{
	&KcryptUKI{},
}

Functions

func Run

func Run(c config.Config, spec v1.Spec, hooks ...Interface) error

Types

type BundleFirstBoot

type BundleFirstBoot struct{}

BundleFirstBoot installs bundles during the first boot of the machine

func (BundleFirstBoot) Run

func (b BundleFirstBoot) Run(c config.Config, _ v1.Spec) error

type BundlePostInstall

type BundlePostInstall struct{}

BundlePostInstall install bundles just after installation

func (BundlePostInstall) Run

type CustomMounts

type CustomMounts struct{}

func (CustomMounts) Run

func (cm CustomMounts) Run(c config.Config, _ v1.Spec) error

Read the keys sections ephemeral_mounts and bind mounts from install key in the cloud config. If not empty write an environment file to /run/cos/custom-layout.env. That env file is in turn read by /overlay/files/system/oem/11_persistency.yaml in fs.after stage.

type GrubOptions

type GrubOptions struct{}

func (GrubOptions) Run

func (b GrubOptions) Run(c config.Config, _ v1.Spec) error

type GrubPostInstallOptions

type GrubPostInstallOptions struct{}

func (GrubPostInstallOptions) Run

type Interface

type Interface interface {
	Run(c config.Config, spec v1.Spec) error
}

type Kcrypt

type Kcrypt struct{}

func (Kcrypt) Run

func (k Kcrypt) Run(c config.Config, _ v1.Spec) error

type KcryptUKI

type KcryptUKI struct{}

func (KcryptUKI) Run

func (k KcryptUKI) Run(c config.Config, _ v1.Spec) error

type Lifecycle

type Lifecycle struct{}

func (Lifecycle) Run

func (s Lifecycle) Run(_ config.Config, spec v1.Spec) error

Jump to

Keyboard shortcuts

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