Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceName ¶
GetServiceName get the name of the service file if it was a service one.
func TxtFuncMap ¶
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 ¶
func (d *DefaultCloudInitGenerator) Generate(osc *osmv1alpha1.OperatingSystemConfig) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.