Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsOneOfField ¶ added in v0.27.0
func IsOneOfField(field reflect.StructField) bool
IsOneOfField checks if a field is tagged with oneOf
func UpgradePipelines ¶ added in v0.37.0
Types ¶
type HelmOverrides ¶ added in v0.25.0
type HelmOverrides struct {
Values map[string]interface{} `yaml:",inline"`
}
HelmOverrides is a helper struct to aid with json serialization of map[string]interface{}
func (*HelmOverrides) MarshalJSON ¶ added in v0.25.0
func (h *HelmOverrides) MarshalJSON() ([]byte, error)
MarshalJSON implements JSON marshalling by including the value as an inline yaml fragment.
func (*HelmOverrides) UnmarshalJSON ¶ added in v0.25.0
func (h *HelmOverrides) UnmarshalJSON(text []byte) error
UnmarshalYAML implements JSON unmarshalling by reading an inline yaml fragment.
type VersionedConfig ¶
type VersionedConfig interface { GetVersion() string Upgrade() (VersionedConfig, error) }
type YamlpatchNode ¶ added in v0.28.0
YamlpatchNode wraps a `yamlpatch.Node` and makes it serializable to JSON. The yaml serialization needs to be implemented manually, because the node may be an arbitrary yaml fragment so that a field tag `yaml:",inline"` does not work here.
func (*YamlpatchNode) MarshalJSON ¶ added in v0.28.0
func (n *YamlpatchNode) MarshalJSON() ([]byte, error)
MarshalJSON implements JSON marshalling by including the value as an inline yaml fragment.
func (*YamlpatchNode) MarshalYAML ¶ added in v0.28.0
func (n *YamlpatchNode) MarshalYAML() (interface{}, error)
MarshalYAML implements yaml.Marshaler.
func (*YamlpatchNode) UnmarshalJSON ¶ added in v0.28.0
func (n *YamlpatchNode) UnmarshalJSON(text []byte) error
UnmarshalYAML implements JSON unmarshalling by reading an inline yaml fragment.
func (*YamlpatchNode) UnmarshalYAML ¶ added in v0.28.0
func (n *YamlpatchNode) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements yaml.Unmarshaler