package
Version:
v0.0.0-...-b79cc66
Opens a new window with list of versions in this module.
Published: Apr 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ParseAndValidateAppSpec(InputAppSpecFile string) error
type AppSpec struct {
ApiVersion *string `yaml:"apiVersion"`
Kind *string `yaml:"kind"`
Metadata *Metadata `yaml:"metadata"`
Spec *Spec `yaml:"spec"`
}
type ContainerSpec struct {
Name *string `yaml:"name"`
Image *string `yaml:"image"`
Resources *Resources `yaml:"resources,omitempty"`
VolumeMounts []*VolumeMounts `yaml:"volumeMounts,omitempty"`
Env []*Env `yaml:"env,omitempty"`
}
type Env struct {
Name *string `yaml:"name"`
Value *string `yaml:"value"`
}
type Labels struct {
App *string `yaml:"app"`
}
type Metadata struct {
Name *string `yaml:"name"`
Labels *Labels `yaml:"labels,omitempty"`
CohesityTag *string `yaml:"cohesityTag,omitempty"`
}
type Ports struct {
Port *int `yaml:"port"`
Protocol *string `yaml:"protocol"`
Name *string `yaml:"name"`
CohesityTag *string `yaml:"cohesityTag,omitempty"`
CohesityEnv *string `yaml:"cohesityEnv,omitempty"`
}
type Replicas struct {
Fixed *int `yaml:"fixed"`
Share *int `yaml:"share,omitempty"`
Min *int `yaml:"min,omitempty"`
Max *int `yaml:"max,omitempty"`
}
type Requests struct {
Cpu *string `yaml:"cpu,omitempty"`
Memory *string `yaml:"memory,omitempty"`
}
type Resources struct {
Requests *Requests `yaml:"requests"`
}
type Selector struct {
MatchLabels *Labels `yaml:"matchLabels"`
}
type Spec struct {
Replicas *Replicas `yaml:"replicas,omitempty"`
ServiceName *string `yaml:"serviceName,omitempty"`
Selector *Selector `yaml:"selector,omitempty"`
Type *string `yaml:"type,omitempty"`
ClusterIp *string `yaml:"clusterIp,omitempty"`
Ports []*Ports `yaml:"ports,omitempty"`
Template *Template `yaml:"template,omitempty"`
}
type Template struct {
Metadata *Metadata `yaml:"metadata"`
TemplateSpec *TemplateSpec `yaml:"spec"`
}
type TemplateSpec struct {
Containers []*ContainerSpec `yaml:"containers"`
Volumes []*VolumeSpec `yaml:"volumes,omitempty"`
}
type VolumeMounts struct {
Name *string `yaml:"name"`
MountPath *string `yaml:"mountPath"`
}
type VolumeSpec struct {
Name *string `yaml:"name"`
FsType *string `yaml:"fsType"`
Type *string `yaml:"volumeType"`
VolumeName *string `yaml:"volumeName"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.