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 ¶
This section is empty.
Types ¶
type CloudInitGenerator ¶
type CloudInitGenerator struct {
// contains filtered or unexported fields
}
CloudInitGenerator generates cloud-init scripts.
func NewCloudInitGenerator ¶
func NewCloudInitGenerator(unitsPath string) *CloudInitGenerator
NewCloudInitGenerator creates a new CloudInitGenerator with the given units path.
func (*CloudInitGenerator) Generate ¶
func (t *CloudInitGenerator) Generate(data *OperatingSystemConfig) ([]byte, error)
Generate generates a cloud-init script from the given OperatingSystemConfig.
type OperatingSystemConfig ¶
OperatingSystemConfig is the data required to create a cloud init script.
Click to show internal directories.
Click to hide internal directories.