manager

package
v0.0.0-...-4c8d886 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CattleURL          string
	DefaultDestination string
	ConfigFields       ConfigFileFields
	//PathPreFilters is the map storing path -> prefilters[]
	PathPreFilters map[string][]model.FilterData
	//PathDestinations is the map storing path -> prefilters[]
	PathDestinations map[string]Destination
)

Functions

func ProcessPreFilters

func ProcessPreFilters(path string, api string, body map[string]interface{}, headers map[string][]string) (map[string]interface{}, map[string][]string, string, model.ProxyError)

func Reload

func Reload() error

func SetEnv

func SetEnv(c *cli.Context)

SetEnv sets the parameters necessary

Types

type ConfigFileFields

type ConfigFileFields struct {
	Prefilters   []model.FilterData
	Destinations []Destination
}

ConfigFileFields stores filter config

type Destination

type Destination struct {
	DestinationURL string   `json:"destinationURL"`
	Paths          []string `json:"paths"`
}

Destination defines the properties of a Destination

Jump to

Keyboard shortcuts

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