Documentation ¶
Index ¶
- func NewSchemaBox() *packr.Box
- type ExecuteAction
- type ExecuteInstruction
- type ExecuteStep
- type InstallAction
- type InstallArguments
- type InstallStep
- type KubernetesOutput
- type Mixin
- func (m *Mixin) Build() error
- func (m *Mixin) Execute() error
- func (m *Mixin) GetSchema() (string, error)
- func (m *Mixin) Install() error
- func (m *Mixin) PrintSchema() error
- func (m *Mixin) PrintVersion(opts version.Options) error
- func (m *Mixin) Uninstall() error
- func (m *Mixin) ValidatePayload(b []byte) error
- type Step
- type TestMixin
- type UninstallAction
- type UninstallArguments
- type UninstallStep
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchemaBox ¶
func NewSchemaBox() *packr.Box
Types ¶
type ExecuteAction ¶
type ExecuteAction struct {
Steps []ExecuteStep // using UnmarshalYAML so that we don't need a custom type per action
}
func (*ExecuteAction) UnmarshalYAML ¶
func (a *ExecuteAction) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML takes any yaml in this form ACTION: - kubernetes: ... and puts the steps into the Action.Steps field
type ExecuteInstruction ¶
type ExecuteInstruction struct { InstallArguments `yaml:",inline"` // Upgrade specific arguments Force *bool `yaml:"force,omitempty"` GracePeriod *int `yaml:"gracePeriod,omitempty"` Overwrite *bool `yaml:"overwrite,omitempty"` Prune *bool `yaml:"prune,omitempty"` Timeout *int `yaml:"timeout,omitempty"` }
type ExecuteStep ¶
type ExecuteStep struct {
ExecuteInstruction `yaml:"kubernetes"`
}
type InstallAction ¶
type InstallAction struct {
Steps []InstallStep `yaml:"install"`
}
type InstallArguments ¶
type InstallArguments struct { Step `yaml:",inline"` Namespace string `yaml:"namespace"` Manifests []string `yaml:"manifests,omitempty"` Record *bool `yaml:"record,omitempty"` Selector string `yaml:"selector,omitempty"` Context string `yaml:"context,omitempty"` Validate *bool `yaml:"validate,omitempty"` Wait *bool `yaml:"wait,omitempty"` }
type InstallStep ¶
type InstallStep struct {
InstallArguments `yaml:"kubernetes"`
}
type KubernetesOutput ¶
type Mixin ¶
func (*Mixin) PrintSchema ¶
func (*Mixin) ValidatePayload ¶
type Step ¶
type Step struct { Description string `yaml:"description"` Outputs []KubernetesOutput `yaml:"outputs,omitempty"` }
type TestMixin ¶
type TestMixin struct { *Mixin TestContext *context.TestContext }
func NewTestMixin ¶
type UninstallAction ¶
type UninstallAction struct {
Steps []UninstallStep `yaml:"uninstall"`
}
type UninstallArguments ¶
type UninstallArguments struct { Step `yaml:",inline"` Namespace string `yaml:"namespace"` Manifests []string `yaml:"manifests,omitempty"` Force *bool `yaml:force,omitempty"` GracePeriod *int `yaml:"gracePeriod,omitempty"` Selector string `yaml:"selector,omitempty"` Context string `yaml:"context,omitempty"` Timeout *int `yaml:"timeout,omitempty"` Wait *bool `yaml:"wait,omitempty"` }
type UninstallStep ¶
type UninstallStep struct {
UninstallArguments `yaml:"kubernetes"`
}
Click to show internal directories.
Click to hide internal directories.