kubernetes

package
v0.3.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// BuildConfigArtifacts stores the BuildConfig Artifact Name
	BuildConfigArtifacts transformertypes.ArtifactType = "BuildConfigYamls"
)
View Source
const (

	// ClusterMetadata config stores cluster configuration of selected cluster
	ClusterMetadata transformertypes.ConfigType = "ClusterMetadata"
)

Variables

This section is empty.

Functions

This section is empty.

Types

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

GetConfig returns the transformer config

func (*BuildConfig) Init

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"`
}

BuildConfigYamlConfig stores the BuildConfig related information

type ClusterSelectorTransformer

type ClusterSelectorTransformer struct {
	Config   transformertypes.Transformer
	Env      *environment.Environment
	Clusters map[string]collecttypes.ClusterMetadata
}

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

GetConfig returns the transformer config

func (*ClusterSelectorTransformer) Init

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

GetConfig returns the transformer config

func (*Knative) Init

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"`
}

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

GetConfig returns the transformer config

func (*Kubernetes) Init

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

type KubernetesPathTemplateConfig struct {
	PathTemplateName string
	ServiceFsPath    string
}

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

GetConfig returns the transformer config

func (*KubernetesVersionChanger) Init

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"`
}

KubernetesVersionChangerYamlConfig stores the config

type KubernetesYamlConfig

type KubernetesYamlConfig struct {
	IngressName string `yaml:"ingressName"`
	OutputPath  string `yaml:"outputPath"`
}

KubernetesYamlConfig stores the k8s related information

type OutputPathParams

type OutputPathParams struct {
	PathTemplateName string
	YamlsPath        string
}

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 (t *Parameterizer) DirectoryDetect(dir string) (namedServices map[string][]transformertypes.Artifact, err error)

DirectoryDetect runs detect in each subdirectory

func (*Parameterizer) GetConfig

GetConfig returns the transformer config

func (*Parameterizer) Init

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 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

GetConfig returns the configuration

func (*Tekton) Init

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"`
}

TektonYamlConfig stores the Tekton related information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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