Documentation ¶
Index ¶
- func ValidatePreset(preset *Preset) validation.ValidationErrors
- type Preset
- func (p *Preset) Apply(client *kube.KubeClient)
- func (p *Preset) ApplyDeployments(client *kube.KubeClient)
- func (p *Preset) ApplyStatefulSet(client *kube.KubeClient)
- func (p *Preset) Populate(client *kube.KubeClient)
- func (p *Preset) PopulateDeployments(client *kube.KubeClient)
- func (p *Preset) PopulateStatefulSets(client *kube.KubeClient)
- func (p *Preset) SavePreset(filepath string) error
- type ScalableResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePreset ¶
func ValidatePreset(preset *Preset) validation.ValidationErrors
Types ¶
type Preset ¶
type Preset struct { Name string `yaml:"name" validate:"required"` Namespace string `yaml:"namespace" validate:"required"` Deployments []ScalableResource `yaml:"deployments" validate:"required,dive"` StatefulSets []ScalableResource `yaml:"statefulSets" validate:"required,dive"` }
func LoadPreset ¶
func (*Preset) Apply ¶
func (p *Preset) Apply(client *kube.KubeClient)
func (*Preset) ApplyDeployments ¶
func (p *Preset) ApplyDeployments(client *kube.KubeClient)
func (*Preset) ApplyStatefulSet ¶
func (p *Preset) ApplyStatefulSet(client *kube.KubeClient)
func (*Preset) Populate ¶
func (p *Preset) Populate(client *kube.KubeClient)
func (*Preset) PopulateDeployments ¶
func (p *Preset) PopulateDeployments(client *kube.KubeClient)
func (*Preset) PopulateStatefulSets ¶
func (p *Preset) PopulateStatefulSets(client *kube.KubeClient)
func (*Preset) SavePreset ¶
type ScalableResource ¶
Click to show internal directories.
Click to hide internal directories.