mappers

package
v0.1.1-rc5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewObject

func NewObject(kind, apiVersion string) mapper.Mapper

Types

type ConfigMapMapper

type ConfigMapMapper struct {
	mappers.DefaultMapper
}

func NewConfigMapMapper

func NewConfigMapMapper(field string) ConfigMapMapper

func (ConfigMapMapper) FromInternal

func (d ConfigMapMapper) FromInternal(data map[string]interface{})

func (ConfigMapMapper) ToInternal

func (d ConfigMapMapper) ToInternal(data map[string]interface{}) error

type Fuzzy

type Fuzzy struct {
	mappers.DefaultMapper
	// contains filtered or unexported fields
}

func NewFuzzy

func NewFuzzy(field string, vals ...string) Fuzzy

func (Fuzzy) FromInternal

func (d Fuzzy) FromInternal(data map[string]interface{})

func (Fuzzy) ToInternal

func (d Fuzzy) ToInternal(data map[string]interface{}) error

type QuantityMapper

type QuantityMapper struct {
	mappers.DefaultMapper
}

func NewQuantity

func NewQuantity(field string) QuantityMapper

func (QuantityMapper) FromInternal

func (d QuantityMapper) FromInternal(data map[string]interface{})

func (QuantityMapper) ToInternal

func (d QuantityMapper) ToInternal(data map[string]interface{}) error

type Scale

type Scale struct {
	mappers.DefaultMapper
}

func (Scale) FromInternal

func (d Scale) FromInternal(data map[string]interface{})

func (Scale) ToInternal

func (d Scale) ToInternal(data map[string]interface{}) error

Jump to

Keyboard shortcuts

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