conv

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package conv provides conversion functions between the osbuild blueprint and the ubp (unified blueprint) formats.

Index

Constants

This section is empty.

Variables

View Source
var ErrParsing = errors.New("parsing error")

Functions

This section is empty.

Types

type InternalExporter

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

InternalExporter is used to convert a blueprint to the internal representation.

func NewInternalExporter

func NewInternalExporter(inputBlueprint *ubp.Blueprint) *InternalExporter

func (*InternalExporter) Export

func (e *InternalExporter) Export() (*bp.Blueprint, error)

ExportInternal converts the blueprint to the internal representation.

type InternalImporter

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

InternalImporter is used to convert a blueprint to the internal representation.

func NewInternalImporter

func NewInternalImporter(inputBlueprint *bp.Blueprint) *InternalImporter

func (*InternalImporter) Import

func (e *InternalImporter) Import() (*ubp.Blueprint, error)

Import converts the internal representation to the blueprint.

type Logger

type Logger interface {
	Printf(format string, args ...any)
	Println(args ...any)
}

Jump to

Keyboard shortcuts

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