resolvers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	BaseUrl() string
	Headers() map[string]string
	Passed() bool
	Error() error
}

type LuaResolver

type LuaResolver struct {
	Content           string            `json:"content"`
	Request           map[string]string `json:"-"`
	MakeBodyAvailable bool              `json:"makeBodyAvailable"`
}

func (*LuaResolver) NeedBody

func (lr *LuaResolver) NeedBody() bool

func (*LuaResolver) Resolve

func (lr *LuaResolver) Resolve(v *vault.Secret) Backend

func (*LuaResolver) SetRequest

func (lr *LuaResolver) SetRequest(method string, body string)

type Resolver

type Resolver interface {
	Resolve(tokenData *vault.Secret) Backend
	SetRequest(method string, body string)
	NeedBody() bool
}

type SimpleBackend

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

func (*SimpleBackend) BaseUrl

func (ym *SimpleBackend) BaseUrl() string

func (*SimpleBackend) Error

func (ym *SimpleBackend) Error() error

func (*SimpleBackend) Headers

func (ym *SimpleBackend) Headers() map[string]string

func (*SimpleBackend) Passed

func (ym *SimpleBackend) Passed() bool

type YAMLResolver

type YAMLResolver struct {
	Content string `json:"content"`
}

func (*YAMLResolver) NeedBody

func (yr *YAMLResolver) NeedBody() bool

func (*YAMLResolver) Resolve

func (yr *YAMLResolver) Resolve(u *vault.Secret) Backend

func (*YAMLResolver) SetRequest

func (yr *YAMLResolver) SetRequest(method string, body string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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