test

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanVault

func CleanVault()

func PopulateVault

func PopulateVault()

Types

type Role

type Role map[string]*Service

type Service

type Service struct {
	Meta                  *TestServiceMetadata `json:"meta"`
	ShortDescription      string               `json:"shortDescription"`
	LongDescription       string
	ProxyCode             string
	ProxyLanguage         string
	ImpersonateWithinRole bool
	Proxy                 bool
	IsActive              bool
	SecretPaths           []string
	CSRF                  bool
	Strategy              *TestServiceStrategy `json:"strategy"`
	Resolver              *TestServiceResolver `json:"resolver"`
}

Service service definition struct

type TestServiceCache

type TestServiceCache struct {
	// time to live seconds
	TTL    int  `json:"ttl"`
	Active bool `json:"active"`
}

type TestServiceMetadata

type TestServiceMetadata struct {
	ID        string `json:"id"`
	RoleID    string `json:"roleId"`
	SubDomain string `json:"subDomain"`
	Name      string `json:"name"`
}

type TestServiceResolver

type TestServiceResolver struct {
	Yaml  *resolvers.YAMLResolver `json:"yaml"`
	Lua   *resolvers.LuaResolver  `json:"lua"`
	Cache *TestServiceCache       `json:"cache"`
}

type TestServiceStrategy

type TestServiceStrategy struct {
	Proxy       *strategy.Proxy       `json:"proxy"`
	PortForward *strategy.PortForward `json:"portForward"`
	Redirect    *strategy.Redirect    `json:"redirect"`
}

Jump to

Keyboard shortcuts

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