generator

package
v0.0.0-...-60d224e Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0, MIT Imports: 0 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
}

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 {
	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