hook

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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{
	&Kcrypt{},
}

Functions

func Run

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

Types

type BundleOption added in v1.1.0

type BundleOption struct{}

func (BundleOption) Run added in v1.1.0

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

type BundlePostInstall added in v1.1.4

type BundlePostInstall struct{}

func (BundlePostInstall) Run added in v1.1.4

type CustomMounts added in v1.6.0

type CustomMounts struct{}

func (CustomMounts) Run added in v1.6.0

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 added in v1.1.4

type GrubPostInstallOptions struct{}

func (GrubPostInstallOptions) Run added in v1.1.4

type Interface

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

type Kcrypt added in v1.1.1

type Kcrypt struct{}

func (Kcrypt) Run added in v1.1.1

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(c config.Config) error

Jump to

Keyboard shortcuts

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