template

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: Apache-2.0, MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

View Source
const DefaultUnitsPath = "/etc/systemd/system"

DefaultUnitsPath is the default CoreOS path where to store units at.

Variables

This section is empty.

Functions

func NewTemplate added in v1.5.0

func NewTemplate(name string) *template.Template

Types

type CloudInitGenerator

type CloudInitGenerator struct {
	// contains filtered or unexported fields
}

CloudInitGenerator generates cloud-init scripts.

func NewCloudInitGenerator

func NewCloudInitGenerator(template *template.Template, unitsPath string, cmd string) *CloudInitGenerator

NewCloudInitGenerator creates a new CloudInitGenerator with the given units path.

func (*CloudInitGenerator) Generate

Generate generates a cloud-init script from the given OperatingSystemConfig.

Jump to

Keyboard shortcuts

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