Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormYAMLFromBytes ¶
func FormYAMLFromBytes(def *ClientConfigDefault, bytes []byte, stateType string) (*models.FormYAML, error)
FormYAMLFromBytes generates a usable form yaml from raw form config and a set of default clients.
stateType refers to the types of state that should be read. The two state types are "live" and "declared" -- if stateType is "", this will read both live and declared states.
Types ¶
type ClientConfigDefault ¶
type ClientConfigDefault struct { DynamicClient dynamic.Interface HelmAgent *helm.Agent HelmRelease *release.Release HelmChart *chart.Chart }
ClientConfigDefault is a set of default clients to be used if a context in form.yaml does not declare otherwise.
type ContextConfig ¶
type ContextConfig struct { FromType string // "live" or "declared" Capabilities []string // "read", "write" TemplateReader templater.TemplateReader TemplateWriter templater.TemplateWriter }
ContextConfig can read/write from a specified context (data source)
Click to show internal directories.
Click to hide internal directories.