Documentation ¶
Index ¶
- Constants
- type ArgoCD
- func (*ArgoCD) DirectoryDetect(dir string) (map[string][]transformertypes.Artifact, error)
- func (t *ArgoCD) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *ArgoCD) Init(tc transformertypes.Transformer, env *environment.Environment) error
- func (t *ArgoCD) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type ArgoCDYamlConfig
- 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 BuildConfigYamlConfig
- type ClusterSelectorConfig
- type ClusterSelectorTransformer
- func (t *ClusterSelectorTransformer) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
- func (t *ClusterSelectorTransformer) GetClusterMetadata(path string) (collecttypes.ClusterMetadata, error)
- func (t *ClusterSelectorTransformer) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *ClusterSelectorTransformer) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (t *ClusterSelectorTransformer) 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 KnativeYamlConfig
- 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 KubernetesPathTemplateConfig
- type KubernetesVersionChanger
- func (t *KubernetesVersionChanger) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
- func (t *KubernetesVersionChanger) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *KubernetesVersionChanger) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (t *KubernetesVersionChanger) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type KubernetesVersionChangerYamlConfig
- type KubernetesYamlConfig
- type OperatorTransformer
- func (t *OperatorTransformer) DirectoryDetect(dir string) (map[string][]transformertypes.Artifact, error)
- func (t *OperatorTransformer) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (t *OperatorTransformer) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (t *OperatorTransformer) Transform(newArtifacts []transformertypes.Artifact, ...) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
- type OperatorTransformerConfig
- type OutputPathParams
- type Parameterizer
- func (paramTransformer *Parameterizer) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
- func (paramTransformer *Parameterizer) GetConfig() (transformertypes.Transformer, *environment.Environment)
- func (paramTransformer *Parameterizer) Init(tc transformertypes.Transformer, e *environment.Environment) error
- func (paramTransformer *Parameterizer) Transform(newArtifacts []transformertypes.Artifact, ...) (pathMappings []transformertypes.PathMapping, ...)
- type ParameterizerPathTemplateConfig
- type ParameterizerYamlConfig
- 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, ...)
- type TektonYamlConfig
Constants ¶
const ( // BuildConfigArtifacts stores the BuildConfig Artifact Name BuildConfigArtifacts transformertypes.ArtifactType = "BuildConfigYamls" )
const ( // ClusterMetadata config stores cluster configuration of selected cluster ClusterMetadata transformertypes.ConfigType = "ClusterMetadata" )
const ( // ExtraParameterizersConfigType stores extra parameterizers generated by other transformers ExtraParameterizersConfigType transformertypes.ConfigType = "ExtraParameterizers" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgoCD ¶ added in v0.3.3
type ArgoCD struct { Config transformertypes.Transformer Env *environment.Environment ArgoCDConfig *ArgoCDYamlConfig }
ArgoCD implements Transformer interface
func (*ArgoCD) DirectoryDetect ¶ added in v0.3.3
DirectoryDetect runs detect in each subdirectory
func (*ArgoCD) GetConfig ¶ added in v0.3.3
func (t *ArgoCD) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the configuration
func (*ArgoCD) Init ¶ added in v0.3.3
func (t *ArgoCD) Init(tc transformertypes.Transformer, env *environment.Environment) error
Init Initializes the transformer
func (*ArgoCD) Transform ¶ added in v0.3.3
func (t *ArgoCD) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms artifacts understood by the transformer
type ArgoCDYamlConfig ¶ added in v0.3.3
type ArgoCDYamlConfig struct { OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
ArgoCDYamlConfig stores the ArgoCD related information
type BuildConfig ¶
type BuildConfig struct { Config transformertypes.Transformer Env *environment.Environment BuildConfigConfig *BuildConfigYamlConfig }
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 BuildConfigYamlConfig ¶
type BuildConfigYamlConfig struct { OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
BuildConfigYamlConfig stores the BuildConfig related information
type ClusterSelectorConfig ¶ added in v0.3.3
type ClusterSelectorConfig struct {
ClusterQaLabel string `yaml:"clusterqalabel"`
}
ClusterSelectorConfig represents the configuration of the cluster selector
type ClusterSelectorTransformer ¶
type ClusterSelectorTransformer struct { Config transformertypes.Transformer Env *environment.Environment Clusters map[string]collecttypes.ClusterMetadata CSConfig *ClusterSelectorConfig }
ClusterSelectorTransformer implements Transformer interface
func (*ClusterSelectorTransformer) DirectoryDetect ¶
func (t *ClusterSelectorTransformer) DirectoryDetect(dir string) (services map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*ClusterSelectorTransformer) GetClusterMetadata ¶
func (t *ClusterSelectorTransformer) GetClusterMetadata(path string) (collecttypes.ClusterMetadata, error)
GetClusterMetadata returns the Cluster Metadata
func (*ClusterSelectorTransformer) GetConfig ¶
func (t *ClusterSelectorTransformer) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*ClusterSelectorTransformer) Init ¶
func (t *ClusterSelectorTransformer) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*ClusterSelectorTransformer) Transform ¶
func (t *ClusterSelectorTransformer) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts
type Knative ¶
type Knative struct { Config transformertypes.Transformer Env *environment.Environment KnativeConfig *KnativeYamlConfig }
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 KnativeYamlConfig ¶
type KnativeYamlConfig struct { OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
KnativeYamlConfig stores the knative related information
type Kubernetes ¶
type Kubernetes struct { Config transformertypes.Transformer Env *environment.Environment KubernetesConfig *KubernetesYamlConfig }
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 KubernetesPathTemplateConfig ¶
KubernetesPathTemplateConfig implements Kubernetes template config interface
type KubernetesVersionChanger ¶
type KubernetesVersionChanger struct { Config transformertypes.Transformer Env *environment.Environment KVCConfig *KubernetesVersionChangerYamlConfig }
KubernetesVersionChanger implements Transformer interface
func (*KubernetesVersionChanger) DirectoryDetect ¶
func (t *KubernetesVersionChanger) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*KubernetesVersionChanger) GetConfig ¶
func (t *KubernetesVersionChanger) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*KubernetesVersionChanger) Init ¶
func (t *KubernetesVersionChanger) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*KubernetesVersionChanger) Transform ¶
func (t *KubernetesVersionChanger) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts
type KubernetesVersionChangerYamlConfig ¶
type KubernetesVersionChangerYamlConfig struct { OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
KubernetesVersionChangerYamlConfig stores the config
type KubernetesYamlConfig ¶
type KubernetesYamlConfig struct { IngressName string `yaml:"ingressName"` OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
KubernetesYamlConfig stores the k8s related information
type OperatorTransformer ¶ added in v0.3.5
type OperatorTransformer struct { Config transformertypes.Transformer Env *environment.Environment OperatorTransformerConfig *OperatorTransformerConfig }
OperatorTransformer implements the Transformer interface
func (*OperatorTransformer) DirectoryDetect ¶ added in v0.3.5
func (t *OperatorTransformer) DirectoryDetect(dir string) (map[string][]transformertypes.Artifact, error)
DirectoryDetect runs detect in each subdirectory
func (*OperatorTransformer) GetConfig ¶ added in v0.3.5
func (t *OperatorTransformer) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*OperatorTransformer) Init ¶ added in v0.3.5
func (t *OperatorTransformer) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*OperatorTransformer) Transform ¶ added in v0.3.5
func (t *OperatorTransformer) Transform(newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact) ([]transformertypes.PathMapping, []transformertypes.Artifact, error)
Transform transforms artifacts
type OperatorTransformerConfig ¶ added in v0.3.5
type OperatorTransformerConfig struct {
OutputPath string `yaml:"outputPath"`
}
OperatorTransformerConfig stores the transformer specific configuration
type OutputPathParams ¶
OutputPathParams stores the possible path params
type Parameterizer ¶
type Parameterizer struct { Config transformertypes.Transformer Env *environment.Environment ParameterizerConfig *ParameterizerYamlConfig // contains filtered or unexported fields }
Parameterizer implements Transformer interface
func (*Parameterizer) DirectoryDetect ¶
func (paramTransformer *Parameterizer) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)
DirectoryDetect runs detect in each subdirectory
func (*Parameterizer) GetConfig ¶
func (paramTransformer *Parameterizer) GetConfig() (transformertypes.Transformer, *environment.Environment)
GetConfig returns the transformer config
func (*Parameterizer) Init ¶
func (paramTransformer *Parameterizer) Init(tc transformertypes.Transformer, e *environment.Environment) error
Init Initializes the transformer
func (*Parameterizer) Transform ¶
func (paramTransformer *Parameterizer) Transform( newArtifacts []transformertypes.Artifact, alreadySeenArtifacts []transformertypes.Artifact, ) (pathMappings []transformertypes.PathMapping, createdArtifacts []transformertypes.Artifact, err error)
Transform transforms artifacts
type ParameterizerPathTemplateConfig ¶
type ParameterizerPathTemplateConfig struct { YamlsPath string ServiceFsPath string PathTemplateName string }
ParameterizerPathTemplateConfig stores the template config
type ParameterizerYamlConfig ¶
type ParameterizerYamlConfig struct { HelmPath string `yaml:"helmPath" json:"helmPath"` OCTemplatePath string `yaml:"ocTemplatePath" json:"ocTemplatePath"` KustomizePath string `yaml:"kustomizePath" json:"kustomizePath"` ProjectName string `yaml:"projectName" json:"projectName"` Envs []string `yaml:"envs,omitempty" json:"envs,omitempty"` }
ParameterizerYamlConfig implements Parameterizer path config interface
type Tekton ¶
type Tekton struct { Config transformertypes.Transformer Env *environment.Environment TektonConfig *TektonYamlConfig }
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
type TektonYamlConfig ¶
type TektonYamlConfig struct { OutputPath string `yaml:"outputPath"` SetDefaultValuesInYamls bool `yaml:"setDefaultValuesInYamls"` }
TektonYamlConfig stores the Tekton related information