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.
Click to show internal directories.
Click to hide internal directories.