Documentation ¶
Overview ¶
Package startup provides machined startup tasks.
Index ¶
- func CreateSystemCgroups(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func InitVolumeLifecycle(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func LogMode(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func MountCgroups(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func MountPseudoLate(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func OSRelease(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func RunTasks(ctx context.Context, log *zap.Logger, rt runtime.Runtime, tasks ...Task) error
- func SetEnvironmentVariables(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func SetRLimit(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func SetupSystemDirectories(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- func WriteIMAPolicy(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
- type NextTaskFunc
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSystemCgroups ¶
func CreateSystemCgroups(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
CreateSystemCgroups creates system cgroups.
func InitVolumeLifecycle ¶
func InitVolumeLifecycle(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
InitVolumeLifecycle initializes volume lifecycle resource.
func MountCgroups ¶
func MountCgroups(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
MountCgroups represents mounts the cgroupfs (only in !container).
func MountPseudoLate ¶
func MountPseudoLate(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
MountPseudoLate mounts the late pseudo filesystems (only in !container).
func OSRelease ¶
OSRelease renders a valid /etc/os-release file and writes it to disk.
The node's OS Image field is reported by the node from /etc/os-release.
func SetEnvironmentVariables ¶
func SetEnvironmentVariables(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
SetEnvironmentVariables sets the environment variables.
func SetupSystemDirectories ¶
func SetupSystemDirectories(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
SetupSystemDirectories creates system default directories.
func WriteIMAPolicy ¶
func WriteIMAPolicy(ctx context.Context, log *zap.Logger, rt runtime.Runtime, next NextTaskFunc) error
WriteIMAPolicy represents the WriteIMAPolicy task.
Types ¶
type NextTaskFunc ¶
type NextTaskFunc func() Task
NextTaskFunc is a function which returns the next task in the chain.