yamltags

package
v0.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessStruct

func ProcessStruct(s interface{}) error

ProcessStruct validates and processes the provided pointer to a struct.

func ProcessTags

func ProcessTags(yamltags string, val reflect.Value, parentStruct reflect.Value, field reflect.StructField) error

Types

type DefaultTag

type DefaultTag struct {
	// contains filtered or unexported fields
}

func (*DefaultTag) Load

func (dt *DefaultTag) Load(s []string) error

func (*DefaultTag) Process

func (dt *DefaultTag) Process(val reflect.Value) error

type OneOfTag

type OneOfTag struct {
	Field  reflect.StructField
	Parent reflect.Value
	// contains filtered or unexported fields
}

func (*OneOfTag) Load

func (oot *OneOfTag) Load(s []string) error

func (*OneOfTag) Process

func (oot *OneOfTag) Process(val reflect.Value) error

type RequiredTag

type RequiredTag struct {
}

func (*RequiredTag) Load

func (rt *RequiredTag) Load(s []string) error

func (*RequiredTag) Process

func (rt *RequiredTag) Process(val reflect.Value) error

type YamlTag

type YamlTag interface {
	Load([]string) error
	Process(reflect.Value) error
}

Jump to

Keyboard shortcuts

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