generator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServiceName

func GetServiceName(path string) string

GetServiceName get the name of the service file if it was a service one.

func TxtFuncMap

func TxtFuncMap() template.FuncMap

TxtFuncMap returns an aggregated template function map. Currently (custom functions + sprig)

Types

type CloudInitGenerator

type CloudInitGenerator interface {
	Generate(osc *osmv1alpha1.OperatingSystemConfig) ([]byte, error)
}

CloudInitGenerator generates the cloud-init configurations for the corresponding operating system config

func NewDefaultCloudInitGenerator

func NewDefaultCloudInitGenerator(unitsPath string) CloudInitGenerator

NewDefaultCloudInitGenerator creates a new cloud-init generator.

type DefaultCloudInitGenerator

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

DefaultCloudInitGenerator represents the default generator of the cloud-init configuration

func (*DefaultCloudInitGenerator) Generate

Jump to

Keyboard shortcuts

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