hook

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AfterInstall = []Interface{
	&RunStage{},
	&GrubOptions{},
	&BundleOption{},
	&CustomMounts{},
	&Kcrypt{},
	&Lifecycle{},
}
View Source
var AfterReset = []Interface{}

Functions

func Run

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

Types

type BundleOption

type BundleOption struct{}

func (BundleOption) Run

func (b BundleOption) Run(c config.Config) error

type BundlePostInstall

type BundlePostInstall struct{}

func (BundlePostInstall) Run

type CustomMounts

type CustomMounts struct{}

func (CustomMounts) Run

func (cm CustomMounts) Run(c config.Config) 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) error

type GrubPostInstallOptions

type GrubPostInstallOptions struct{}

func (GrubPostInstallOptions) Run

type Interface

type Interface interface {
	Run(c config.Config) error
}

type Kcrypt

type Kcrypt struct{}

func (Kcrypt) Run

func (k Kcrypt) Run(c config.Config) error

type Lifecycle

type Lifecycle struct{}

func (Lifecycle) Run

func (s Lifecycle) Run(c config.Config) error

type RunStage

type RunStage struct{}

func (RunStage) Run

func (r RunStage) Run(_ config.Config) error

Jump to

Keyboard shortcuts

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