transform

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transformer

type Transformer interface {
	Transform(*specs.Spec) error
}

Transformer defines the API for applying arbitrary transforms to a spec in-place

func NewDedupe

func NewDedupe() (Transformer, error)

NewDedupe creates a transformer that deduplicates container edits.

func NewNoopTransformer

func NewNoopTransformer() Transformer

NewNoopTransformer returns a no-op transformer

func NewRootTransformer

func NewRootTransformer(root string, targetRoot string) Transformer

NewRootTransformer creates a new transformer for modifying the root for paths in a CDI spec. If both roots are identical, this tranformer is a no-op.

func NewSimplifier

func NewSimplifier() Transformer

NewSimplifier creates a simplifier transformer. This transoformer ensures that entities in the spec are deduplicated and that common edits are removed from device-specific edits.

Jump to

Keyboard shortcuts

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