transform

package
v1.13.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 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 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.

Jump to

Keyboard shortcuts

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