dynamicvalue

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigValue

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

func NewConfigValue

func NewConfigValue(factory Factory) ConfigValue

func (ConfigValue) Evaluate

func (cv ConfigValue) Evaluate(arg0 *http.Request, arg1 *auth.Token) (string, error)

func (*ConfigValue) UnmarshalYAML

func (cv *ConfigValue) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*ConfigValue) WithDefault

func (cv *ConfigValue) WithDefault(value Value)

type DefaultFactory

type DefaultFactory struct{}

func (DefaultFactory) Create

func (DefaultFactory) Create(value string) (Value, error)

type Factory

type Factory interface {
	Create(string) (Value, error)
}

type MultiAnyValue

type MultiAnyValue []Value

func (MultiAnyValue) Evaluate

func (mav MultiAnyValue) Evaluate(arg0 *http.Request, arg1 *auth.Token) ([]string, error)

type MultiConfigValue

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

func NewMultiConfigValue

func NewMultiConfigValue(factory Factory) MultiConfigValue

func (MultiConfigValue) Evaluate

func (mcv MultiConfigValue) Evaluate(arg0 *http.Request, arg1 *auth.Token) ([]string, error)

func (*MultiConfigValue) UnmarshalYAML

func (mcv *MultiConfigValue) UnmarshalYAML(unmarshal func(interface{}) error) error

type MultiValue

type MultiValue interface {
	Evaluate(*http.Request, *auth.Token) ([]string, error)
}

type Value

type Value interface {
	Evaluate(*http.Request, *auth.Token) (string, error)
}

func CreateTemplateValue

func CreateTemplateValue(value string) (Value, error)

func MustCreateTemplateValue

func MustCreateTemplateValue(value string) Value

func NewStringValue

func NewStringValue(val string) Value

func NewTemplateValue

func NewTemplateValue(tpl *template.Template) Value

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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