config

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert added in v0.6.0

func Convert(in types.Config, p string, ast astnode.AstNode) (ignTypes.Config, report.Report)

Convert will convert a golang struct representing a Container Linux Config into an Ignition Config, and a report of any warnings or errors. It takes the parse tree from parsing the Container Linux config as well. Convert also accepts a platform string, which can either be one of the platform strings defined in config/templating/templating.go or an empty string if [dynamic data](doc/dynamic-data.md) isn't used.

func Parse

func Parse(data []byte) (types.Config, astnode.AstNode, report.Report)

Parse will convert a byte slice containing a Container Linux Config into a golang struct representing the config, the parse tree from parsing the yaml and a report of any warnings or errors that occurred during the parsing.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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