generator

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropIn

type DropIn struct {
	Name    string
	Content []byte
}

DropIn is a drop in of a Unit.

type File

type File struct {
	Path              string
	Content           []byte
	Permissions       *int32
	TransmitUnencoded *bool
}

File is a file to be stored during the cloud init script.

type Generator

type Generator interface {
	Generate(*OperatingSystemConfig) (osconfig []byte, command *string, err error)
}

Generator renders an OperatingSystemConfig into a representation suitable for an specific OS also returns the os specific command for applying this configuration

type OperatingSystemConfig

type OperatingSystemConfig struct {
	Object    *extensionsv1alpha1.OperatingSystemConfig
	CRI       *extensionsv1alpha1.CRIConfig
	Files     []*File
	Units     []*Unit
	Bootstrap bool
	Path      *string
}

OperatingSystemConfig is the data required to create a cloud init script.

type Unit

type Unit struct {
	Name    string
	Content []byte
	DropIns []*DropIn
}

Unit is a unit to be created during the cloud init script.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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