mapper

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseStringMatch

func ParseStringMatch(str string) map[string]interface{}

Types

type AliasField

type AliasField struct {
	Field string
	Names []string
}

func (AliasField) FromInternal

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

func (AliasField) ModifySchema

func (d AliasField) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (AliasField) ToInternal

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

type AliasValue

type AliasValue struct {
	Field string
	Alias map[string][]string
}

func (AliasValue) FromInternal

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

func (AliasValue) ModifySchema

func (d AliasValue) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (AliasValue) ToInternal

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

type Bytes

type Bytes struct {
	Field string
}

func (Bytes) FromInternal

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

func (Bytes) ModifySchema

func (d Bytes) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (Bytes) ToInternal

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

type ConfigContent

type ConfigContent struct {
}

func (ConfigContent) FromInternal

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

func (ConfigContent) ModifySchema

func (d ConfigContent) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (ConfigContent) ToInternal

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

type DefaultMissing

type DefaultMissing struct {
	Field   string
	Default interface{}
}

func (DefaultMissing) FromInternal

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

func (DefaultMissing) ModifySchema

func (d DefaultMissing) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (DefaultMissing) ToInternal

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

type Destination

type Destination struct {
	Field string
}

func (Destination) FromInternal

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

func (Destination) ModifySchema

func (d Destination) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (Destination) ToInternal

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

type Duration

type Duration struct {
	Field string
	Unit  time.Duration
}

func (Duration) FromInternal

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

func (Duration) ModifySchema

func (d Duration) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (Duration) ToInternal

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

type HealthMapper

type HealthMapper struct {
	Field string
}

func (HealthMapper) FromInternal

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

func (HealthMapper) ModifySchema

func (d HealthMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (HealthMapper) ToInternal

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

type HostPath

type HostPath struct {
	Field string
}

func (HostPath) FromInternal

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

func (HostPath) ModifySchema

func (d HostPath) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (HostPath) ToInternal

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

type JSONKeys

type JSONKeys struct {
}

func (JSONKeys) FromInternal

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

func (JSONKeys) ModifySchema

func (d JSONKeys) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (JSONKeys) ToInternal

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

type MapToSlice

type MapToSlice struct {
	Field string
	Sep   string
}

func (MapToSlice) FromInternal

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

func (MapToSlice) ModifySchema

func (d MapToSlice) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (MapToSlice) ToInternal

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

type MaybeStringer

type MaybeStringer interface {
	MaybeString() interface{}
}

type NewObject

type NewObject func() MaybeStringer

type ObjectsToSlice

type ObjectsToSlice struct {
	Field     string
	NewObject NewObject
	ToObject  ToObject
}

func NewCRDs

func NewCRDs(field string) ObjectsToSlice

func NewConfigMapping

func NewConfigMapping(field string) ObjectsToSlice

func NewDeviceMapping

func NewDeviceMapping(field string) ObjectsToSlice

func NewExposedPorts

func NewExposedPorts(field string) ObjectsToSlice

func NewMatch

func NewMatch(field string) ObjectsToSlice

func NewMounts

func NewMounts(field string) ObjectsToSlice

func NewPermission

func NewPermission(field string) ObjectsToSlice

func NewPortBinding

func NewPortBinding(field string) ObjectsToSlice

func NewSecretMapping

func NewSecretMapping(field string) ObjectsToSlice

func NewTmpfs

func NewTmpfs(field string) ObjectsToSlice

func (ObjectsToSlice) FromInternal

func (p ObjectsToSlice) FromInternal(data map[string]interface{})

func (ObjectsToSlice) ModifySchema

func (p ObjectsToSlice) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (ObjectsToSlice) ToInternal

func (p ObjectsToSlice) ToInternal(data map[string]interface{}) error

type PrettyMatch

type PrettyMatch struct {
	Cookies map[string]string `json:"cookies,omitempty"`
	From    string            `json:"from,omitempty"`
	Headers map[string]string `json:"headers,omitempty"`
	Method  string            `json:"method,omitempty"`
	Path    string            `json:"path,omitempty"`
	Port    int64             `json:"port,omitempty"`
	Scheme  string            `json:"scheme,omitempty"`
}

func (*PrettyMatch) MaybeString

func (p *PrettyMatch) MaybeString() interface{}

type RouteSet

type RouteSet struct {
	Field string
}

func (RouteSet) FromInternal

func (r RouteSet) FromInternal(data map[string]interface{})

func (RouteSet) ModifySchema

func (r RouteSet) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (RouteSet) ToInternal

func (r RouteSet) ToInternal(data map[string]interface{}) error

type SchedulingMapper

type SchedulingMapper struct {
	Field string
}

func (SchedulingMapper) FromInternal

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

func (SchedulingMapper) ModifySchema

func (d SchedulingMapper) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (SchedulingMapper) ToInternal

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

type Shlex

type Shlex struct {
	Field string
}

func (Shlex) FromInternal

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

func (Shlex) ModifySchema

func (d Shlex) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (Shlex) ToInternal

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

type SingleSlice

type SingleSlice struct {
	Field string
}

func (SingleSlice) FromInternal

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

func (SingleSlice) ModifySchema

func (d SingleSlice) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (SingleSlice) ToInternal

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

type StringMatch

type StringMatch struct {
	Field string
}

func (StringMatch) FromInternal

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

func (StringMatch) ModifySchema

func (d StringMatch) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (StringMatch) ToInternal

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

type StringMatchMap

type StringMatchMap struct {
	Field string
}

func (StringMatchMap) FromInternal

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

func (StringMatchMap) ModifySchema

func (d StringMatchMap) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (StringMatchMap) ToInternal

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

type To

type To struct {
	Field string
}

func (To) FromInternal

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

func (To) ModifySchema

func (d To) ModifySchema(schema *types.Schema, schemas *types.Schemas) error

func (To) ToInternal

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

type ToObject

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

Jump to

Keyboard shortcuts

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