builder

package
v0.0.0-...-069e4ac Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNamingConvention = "naming convention violation"

ErrNamingConvention is the base error message for naming convention violations

Functions

func ValidateTransformations

func ValidateTransformations(transformations map[string]graph.Transformation) error

ValidateTransformations validates the naming conventions of the transformations.

Types

type Builder

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

func NewBuilder

func NewBuilder(scheme *runtime.Scheme) *Builder

func (*Builder) BuildAndCheck

func (b *Builder) BuildAndCheck(original *v1alpha1.TransformationGraphDefinition) (*Graph, error)

func (*Builder) WithEvents

func (b *Builder) WithEvents(events chan graphRuntime.ProgressEvent) *Builder

WithEvents sets the channel where progress events will be sent during Process(). This is optional - if not set, no events will be emitted.

func (*Builder) WithTransformer

func (b *Builder) WithTransformer(typed interface {
	runtime.Typed
	runtime.JSONSchemaIntrospectable
}, transformer graphRuntime.Transformer,
) *Builder

type Graph

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

func (*Graph) Events

func (g *Graph) Events() <-chan graphRuntime.ProgressEvent

Events returns the channel where progress events are sent during Process().

func (*Graph) NodeCount

func (g *Graph) NodeCount() int

NodeCount returns the total number of nodes in the graph.

func (*Graph) Process

func (g *Graph) Process(ctx context.Context) error

Jump to

Keyboard shortcuts

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