Documentation ¶
Index ¶
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]transformertypes.ServicePlan, s2 map[string]transformertypes.ServicePlan) map[string]transformertypes.ServicePlan
MergeServices merges two service maps
Types ¶
type Configuration ¶
type Configuration struct { Transformers map[string]string `yaml:"transformers,omitempty" m2kpath:"normal"` //[name]filepath TargetClusters map[string]string `yaml:"targetClusters,omitempty" m2kpath:"normal"` //[clustername]filepath }
Configuration stores all configurations related to the plan
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 Spec ¶ added in v0.3.0
type Spec struct { RootDir string `yaml:"rootDir"` CustomizationsDir string `yaml:"customizationsDir,omitempty"` Services map[string]transformertypes.ServicePlan `yaml:"services"` //[servicename] TargetCluster TargetClusterType `yaml:"targetCluster,omitempty"` Configuration Configuration `yaml:"configuration,omitempty"` }
Spec stores the data about the plan
type TargetClusterType ¶
type TargetClusterType struct { Type string `yaml:"type,omitempty"` Path string `yaml:"path,omitempty" m2kpath:"normal"` }
TargetClusterType contains either the type of the target cluster or path to a file containing the target cluster metadata. Specify one or the other, not both.
Click to show internal directories.
Click to hide internal directories.