Documentation ¶
Index ¶
- Constants
- type BuildConfig
- func (t *BuildConfig) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *BuildConfig) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *BuildConfig) Init(tc transformertypes.Transformer, env *environment.Environment) error
- func (t *BuildConfig) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type Knative
- func (t *Knative) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *Knative) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *Knative) Init(tc transformertypes.Transformer, env *environment.Environment) error
- func (t *Knative) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type Kubernetes
- func (t *Kubernetes) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *Kubernetes) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *Kubernetes) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (t *Kubernetes) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type KubernetesGenYamlConfig
- type KubernetesPathTemplateConfig
- type Parameterizer
- func (t *Parameterizer) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
- func (t *Parameterizer) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *Parameterizer) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (t *Parameterizer) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type ParameterizerPathConfig
- type ParameterizerPathTemplateConfig
- type Tekton
- func (t *Tekton) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *Tekton) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *Tekton) Init(tc transformertypes.Transformer, env *environment.Environment) error
- func (t *Tekton) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
Constants ¶
const ( // BuildConfigArtifacts stores the BuildConfig Artifact Name BuildConfigArtifacts transformertypes.ArtifactType = "BuildConfigYamls" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct { Config transformertypes.Transformer Env *environment.Environment }
BuildConfig implements Transformer interface
func (*BuildConfig) DirectoryDetect ¶
func (t *BuildConfig) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*BuildConfig) GetConfig ¶
func (t *BuildConfig) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*BuildConfig) Init ¶
func (t *BuildConfig) Init(tc transformertypes.Transformer, env *environment.Environment) error
Init initializes the transformer
func (*BuildConfig) Transform ¶
func (t *BuildConfig) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms the artifacts
type Knative ¶
type Knative struct { Config transformertypes.Transformer Env *environment.Environment }
Knative implements Transformer interface
func (*Knative) DirectoryDetect ¶
func (t *Knative) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each sub directory
func (*Knative) GetConfig ¶
func (t *Knative) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*Knative) Init ¶
func (t *Knative) Init(tc transformertypes.Transformer, env *environment.Environment) error
Init Initializes the transformer
func (*Knative) Transform ¶
func (t *Knative) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms the artifacts
type Kubernetes ¶
type Kubernetes struct { Config transformertypes.Transformer Env *environment.Environment KubernetesConfig *KubernetesGenYamlConfig }
Kubernetes implements Transformer interface
func (*Kubernetes) DirectoryDetect ¶
func (t *Kubernetes) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*Kubernetes) GetConfig ¶
func (t *Kubernetes) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*Kubernetes) Init ¶
func (t *Kubernetes) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*Kubernetes) Transform ¶
func (t *Kubernetes) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts
type KubernetesGenYamlConfig ¶
type KubernetesGenYamlConfig struct { IngressName string `yaml:"ingressName"` OutputPath string `yaml:"outputPath"` }
KubernetesGenYamlConfig stores the k8s related information
type KubernetesPathTemplateConfig ¶
KubernetesPathTemplateConfig implements Kubernetes template config interface
type Parameterizer ¶
type Parameterizer struct { Config transformertypes.Transformer Env *environment.Environment PathConfig ParameterizerPathConfig }
Parameterizer implements Transformer interface
func (*Parameterizer) DirectoryDetect ¶
func (t *Parameterizer) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*Parameterizer) GetConfig ¶
func (t *Parameterizer) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*Parameterizer) Init ¶
func (t *Parameterizer) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*Parameterizer) Transform ¶
func (t *Parameterizer) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts
type ParameterizerPathConfig ¶
type ParameterizerPathConfig struct { HelmPath string `yaml:"helmPath"` OCTemplatePath string `yaml:"ocTemplatePath"` KustomizePath string `yaml:"kustomizePath"` HelmChartName string `yaml:"helmChartName"` }
ParameterizerPathConfig implements Parameterizer path config interface
type ParameterizerPathTemplateConfig ¶
type ParameterizerPathTemplateConfig struct { YamlsPath string ServiceFsPath string PathTemplateName string }
ParameterizerPathTemplateConfig implements Parameterizer template config interface
type Tekton ¶
type Tekton struct { Config transformertypes.Transformer Env *environment.Environment }
Tekton implements Transformer interface
func (*Tekton) DirectoryDetect ¶
func (t *Tekton) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*Tekton) GetConfig ¶
func (t *Tekton) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the configuration
func (*Tekton) Init ¶
func (t *Tekton) Init(tc transformertypes.Transformer, env *environment.Environment) error
Init Initializes the transformer
func (*Tekton) Transform ¶
func (t *Tekton) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts understood by the transformer