builder

package
v0.0.0-...-f574404 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Create         = Operation("create")
	Update         = Operation("update")
	Action         = Operation("action")
	List           = Operation("list")
	ListForCreate  = Operation("listcreate")
	ErrComplexType = errors.New("complex type")
)

Functions

func CheckFieldCriteria

func CheckFieldCriteria(fieldName string, field types.Field, value interface{}) error

func ConvertSimple

func ConvertSimple(fieldType string, value interface{}, op Operation) (interface{}, error)

Types

type Builder

type Builder struct {
	Version      *types.APIVersion
	Schemas      *types.Schemas
	RefValidator types.ReferenceValidator
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(apiRequest *types.APIContext) *Builder

func (*Builder) Construct

func (b *Builder) Construct(schema *types.Schema, input map[string]interface{}, op Operation) (map[string]interface{}, error)

type Operation

type Operation string

func (Operation) IsList

func (o Operation) IsList() bool

Jump to

Keyboard shortcuts

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