mappers

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigMapMapper

func NewConfigMapMapper(field string) types.Mapper

func NewDuration added in v0.6.0

func NewDuration(field string, args ...string) types.Mapper

func NewEnvMap added in v0.6.0

func NewEnvMap(field string, opts ...string) types.Mapper

func NewHostNetwork added in v0.6.0

func NewHostNetwork(field string, _ ...string) types.Mapper

func NewObject

func NewObject(kind, apiVersion string) types.Mapper

func NewObjectsToSliceFactory added in v0.6.0

func NewObjectsToSliceFactory(newObject StringerFactory, object ToObject) types.FieldMapperFactory

func NewQuantity

func NewQuantity(field string, args ...string) types.Mapper

func NewShlex added in v0.6.0

func NewShlex(field string, _ ...string) types.Mapper

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
}

func (EnvMapper) ToInternal added in v0.6.0

func (e EnvMapper) ToInternal(data data.Object) error

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 (d HostNetwork) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (d LabelCleaner) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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 (p ObjectsToSlice) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

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

func (d Shlex) FromInternal(data data.Object)

func (Shlex) ToInternal added in v0.6.0

func (d Shlex) ToInternal(data data.Object) error

type StringerFactory added in v0.6.0

type StringerFactory func() MaybeStringer

type ToObject added in v0.6.0

type ToObject func(string) (interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL