translate

package
v0.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Translator

type Translator interface {
	Translate() (*userdata.UserData, error)
}

Translator is the interface that will be implemented by all future machine config versions

func NewTranslator

func NewTranslator(apiVersion string, nodeConfig string) (Translator, error)

NewTranslator returns an instance of the translator depending on version

type V1Alpha1Translator

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

V1Alpha1Translator holds info about a v1alpha1 machine config translation layer

func (*V1Alpha1Translator) Translate

func (tv1a1 *V1Alpha1Translator) Translate() (*userdata.UserData, error)

Translate takes a v1 NodeConfig and translates it to a UserData struct

Jump to

Keyboard shortcuts

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