Documentation
¶
Index ¶
- func NewConfigMapMapper(field string) types.Mapper
- func NewDuration(field string, args ...string) types.Mapper
- func NewEnvMap(field string, opts ...string) types.Mapper
- func NewHostNetwork(field string, _ ...string) types.Mapper
- func NewObject(kind, apiVersion string) types.Mapper
- func NewObjectsToSliceFactory(newObject StringerFactory, object ToObject) types.FieldMapperFactory
- func NewQuantity(field string, args ...string) types.Mapper
- func NewShlex(field string, _ ...string) types.Mapper
- type ConfigMapMapper
- type DurationMapper
- type EnvMapper
- type HostNetwork
- type LabelCleaner
- type MaybeStringer
- type ObjectsToSlice
- type QuantityMapper
- type Shlex
- type StringerFactory
- type ToObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfigMapMapper ¶
func NewObjectsToSliceFactory ¶ added in v0.6.0
func NewObjectsToSliceFactory(newObject StringerFactory, object ToObject) types.FieldMapperFactory
Types ¶
type ConfigMapMapper ¶
type ConfigMapMapper struct {
mapper.DefaultMapper
}
func (ConfigMapMapper) FromInternal ¶
func (d ConfigMapMapper) FromInternal(data data.Object)
func (ConfigMapMapper) ToInternal ¶
func (d ConfigMapMapper) ToInternal(data data.Object) error
type DurationMapper ¶ added in v0.6.0
type DurationMapper struct {
mapper.DefaultMapper
}
func (DurationMapper) FromInternal ¶ added in v0.6.0
func (d DurationMapper) FromInternal(data data.Object)
func (DurationMapper) ToInternal ¶ added in v0.6.0
func (d DurationMapper) ToInternal(data data.Object) error
type EnvMapper ¶ added in v0.6.0
type EnvMapper struct { mapper.DefaultMapper Sep string }
type HostNetwork ¶ added in v0.4.0
type HostNetwork struct {
Field string
}
func (HostNetwork) FromInternal ¶ added in v0.4.0
func (d HostNetwork) FromInternal(data data.Object)
func (HostNetwork) ModifySchema ¶ added in v0.4.0
func (HostNetwork) ToInternal ¶ added in v0.4.0
func (d HostNetwork) ToInternal(data data.Object) error
type LabelCleaner ¶ added in v0.4.0
type LabelCleaner struct {
mapper.DefaultMapper
}
func (LabelCleaner) FromInternal ¶ added in v0.4.0
func (d LabelCleaner) FromInternal(data data.Object)
func (LabelCleaner) ModifySchema ¶ added in v0.4.0
func (LabelCleaner) ToInternal ¶ added in v0.4.0
func (d LabelCleaner) ToInternal(data data.Object) error
type MaybeStringer ¶ added in v0.6.0
type MaybeStringer interface {
MaybeString() interface{}
}
type ObjectsToSlice ¶ added in v0.6.0
type ObjectsToSlice struct { Field string NewObject StringerFactory ToObject ToObject }
func (ObjectsToSlice) FromInternal ¶ added in v0.6.0
func (p ObjectsToSlice) FromInternal(data data.Object)
func (ObjectsToSlice) ModifySchema ¶ added in v0.6.0
func (ObjectsToSlice) ToInternal ¶ added in v0.6.0
func (p ObjectsToSlice) ToInternal(data data.Object) error
type QuantityMapper ¶
type QuantityMapper struct {
mapper.DefaultMapper
}
func (QuantityMapper) ToInternal ¶
func (d QuantityMapper) ToInternal(data data.Object) error
type Shlex ¶ added in v0.6.0
type Shlex struct {
mapper.DefaultMapper
}
func (Shlex) FromInternal ¶ added in v0.6.0
type StringerFactory ¶ added in v0.6.0
type StringerFactory func() MaybeStringer
Click to show internal directories.
Click to hide internal directories.