generator

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 15 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 CloudConfigGenerator added in v0.2.0

type CloudConfigGenerator interface {
	Generate(config *osmv1alpha1.OSCConfig, operatingSystem v1alpha1.OperatingSystem, cloudProvider v1alpha1.CloudProvider, md clusterv1alpha1.MachineDeployment, secretType resources.CloudConfigSecret) ([]byte, error)
}

CloudConfigGenerator generates the machine bootstrapping and provisioning configurations for the corresponding operating system config

func NewDefaultCloudConfigGenerator added in v0.2.0

func NewDefaultCloudConfigGenerator(unitsPath string) CloudConfigGenerator

NewDefaultCloudConfigGenerator creates a new CloudConfigGenerator.

type DefaultCloudConfigGenerator added in v0.2.0

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

DefaultCloudConfigGenerator represents the default generator of the machine provisioning configurations

func (*DefaultCloudConfigGenerator) Generate added in v0.2.0

type ProvisioningUtility added in v0.2.0

type ProvisioningUtility string

ProvisioningUtility specifies the type of utility used for machine provisioning

const (
	Ignition  ProvisioningUtility = "ignition"
	CloudInit ProvisioningUtility = "cloud-init"
)

func GetProvisioningUtility added in v0.2.0

GetProvisioningUtility returns the provisioning utility for the given machine

Jump to

Keyboard shortcuts

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