converter

package
v0.0.0-...-9fe6bd5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckParameters

func CheckParameters(rawdata *Parameters)

CheckParameters Normalize parameters

func MachineConfigOutput

func MachineConfigOutput(mc MachineConfig.MachineConfig, mode string) string

MachineConfigOutput Convert a MachineConfig to a string

func NewMachineConfig

func NewMachineConfig(data Parameters) MachineConfig.MachineConfig

NewMachineConfig Creates the MachineConfig object

func SetUserGroupMode

func SetUserGroupMode(file os.FileInfo, rawdata *Parameters)

SetUserGroupMode Set destination file parameters

Types

type Parameters

type Parameters struct {
	LocalPath   string
	RemotePath  string
	Name        string
	Labels      string
	User        string
	Group       string
	Filesystem  string
	APIVer      string
	IgnitionVer string
	Content     string
	Mode        int
	Yaml        bool
}

Parameters Struct containing all the parameters required

Jump to

Keyboard shortcuts

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