transformer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generators []Generator

Generators tracks the list of transformers

Functions

This section is empty.

Types

type DefaultTransformer

type DefaultTransformer struct {
	ChildTransformer baseTransformer
}

default implementation for all transformers

func (*DefaultTransformer) TransformConfig

func (t *DefaultTransformer) TransformConfig(ctx context.Context) error

func (*DefaultTransformer) TransformManifests

func (t *DefaultTransformer) TransformManifests(ctx context.Context, scheme *runtime.Scheme, gen *generated.SpinnakerGeneratedConfig) error

type Generator

type Generator interface {
	NewTransformer(svc interfaces.SpinnakerService, client client.Client, log logr.Logger) (Transformer, error)
	GetName() string
}

Generator generates transformers for the given SpinnakerService

type Transformer

type Transformer interface {
	TransformConfig(ctx context.Context) error
	TransformManifests(ctx context.Context, scheme *runtime.Scheme, gen *generated.SpinnakerGeneratedConfig) error
}

Transformer affects how Spinnaker is deployed. It can change the Spinnaker configuration itself with TransformConfig. It can also change the manifests before they are updated.

Jump to

Keyboard shortcuts

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