Documentation ¶
Index ¶
- Constants
- func MergeServices(s1 map[string][]PlanArtifact, s2 map[string][]PlanArtifact) map[string][]PlanArtifact
- func MergeServicesT(s1 map[string][]transformertypes.Artifact, ...) map[string][]transformertypes.Artifact
- func WritePlan(path string, plan Plan) error
- type Plan
- type PlanArtifact
- type Spec
Constants ¶
View Source
const PlanKind types.Kind = "Plan"
PlanKind is kind of plan file
Variables ¶
This section is empty.
Functions ¶
func MergeServices ¶ added in v0.3.0
func MergeServices(s1 map[string][]PlanArtifact, s2 map[string][]PlanArtifact) map[string][]PlanArtifact
MergeServices merges two service maps
func MergeServicesT ¶ added in v0.3.0
func MergeServicesT(s1 map[string][]transformertypes.Artifact, s2 map[string][]transformertypes.Artifact) map[string][]transformertypes.Artifact
MergeServicesT merges two service maps
Types ¶
type Plan ¶
type Plan struct { types.TypeMeta `yaml:",inline"` types.ObjectMeta `yaml:"metadata,omitempty"` Spec Spec `yaml:"spec,omitempty"` }
Plan defines the format of plan
type PlanArtifact ¶ added in v0.3.0
type PlanArtifact struct { TransformerName string `yaml:"transformerName"` transformertypes.Artifact `yaml:",inline"` }
PlanArtifact stores the artifact with the transformerName
type Spec ¶ added in v0.3.0
type Spec struct { SourceDir string `yaml:"sourceDir"` CustomizationsDir string `yaml:"customizationsDir,omitempty"` Services map[string][]PlanArtifact `yaml:"services"` //[servicename] TransformerSelector metav1.LabelSelector `yaml:"transformerSelector,omitempty"` Transformers map[string]string `yaml:"transformers,omitempty" m2kpath:"normal"` //[name]filepath }
Spec stores the data about the plan
Click to show internal directories.
Click to hide internal directories.