transformer

package
v1.2.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPortName = "http"

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsTransformerGenerator added in v1.1.0

type AccountsTransformerGenerator struct{}

func (*AccountsTransformerGenerator) GetName added in v1.1.0

func (g *AccountsTransformerGenerator) GetName() string

func (*AccountsTransformerGenerator) NewTransformer added in v1.1.0

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, gen *generated.SpinnakerGeneratedConfig) error

type DefaultsTransformerGenerator added in v1.1.0

type DefaultsTransformerGenerator struct{}

func (*DefaultsTransformerGenerator) GetName added in v1.1.0

func (g *DefaultsTransformerGenerator) GetName() string

func (*DefaultsTransformerGenerator) NewTransformer added in v1.1.0

type Generator

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

DetectorGenerator generates transformers for the given SpinnakerService

type NamedPortsTransformerGenerator added in v1.1.0

type NamedPortsTransformerGenerator struct{}

func (*NamedPortsTransformerGenerator) GetName added in v1.1.0

func (*NamedPortsTransformerGenerator) NewTransformer added in v1.1.0

type OwnerTransformerGenerator added in v1.1.0

type OwnerTransformerGenerator struct{}

func (*OwnerTransformerGenerator) GetName added in v1.1.0

func (g *OwnerTransformerGenerator) GetName() string

func (*OwnerTransformerGenerator) NewTransformer added in v1.1.0

type PatchTransformerGenerator added in v1.1.0

type PatchTransformerGenerator struct{}

func (*PatchTransformerGenerator) GetName added in v1.1.0

func (g *PatchTransformerGenerator) GetName() string

func (*PatchTransformerGenerator) NewTransformer added in v1.1.0

type SecretsTransformerGenerator added in v1.1.0

type SecretsTransformerGenerator struct{}

func (*SecretsTransformerGenerator) GetName added in v1.1.0

func (s *SecretsTransformerGenerator) GetName() string

func (*SecretsTransformerGenerator) NewTransformer added in v1.1.0

type ServerPortTransformerGenerator added in v1.1.0

type ServerPortTransformerGenerator struct{}

func (*ServerPortTransformerGenerator) GetName added in v1.1.0

func (*ServerPortTransformerGenerator) NewTransformer added in v1.1.0

type SpinSvcSettingsTransformerGenerator added in v1.1.0

type SpinSvcSettingsTransformerGenerator struct{}

func (*SpinSvcSettingsTransformerGenerator) GetName added in v1.1.0

func (*SpinSvcSettingsTransformerGenerator) NewTransformer added in v1.1.0

type StatsTransformerGenerator added in v1.1.0

type StatsTransformerGenerator struct{}

func (*StatsTransformerGenerator) GetName added in v1.1.0

func (t *StatsTransformerGenerator) GetName() string

func (*StatsTransformerGenerator) NewTransformer added in v1.1.0

type TargetTransformerGenerator added in v1.1.0

type TargetTransformerGenerator struct{}

func (*TargetTransformerGenerator) GetName added in v1.1.0

func (g *TargetTransformerGenerator) GetName() string

func (*TargetTransformerGenerator) NewTransformer added in v1.1.0

Transformer is in charge of excluding namespace manifests

type Transformer

type Transformer interface {
	TransformConfig(ctx context.Context) error
	TransformManifests(ctx context.Context, 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