gfunc

package
v0.0.0-...-cefcf51 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// define Upstream type name
	UpstreamTypeGoogle = "google"
)

Variables

This section is empty.

Functions

func EncodeFunctionSpec

func EncodeFunctionSpec(spec FunctionSpec) *types.Struct

Types

type FunctionSpec

type FunctionSpec struct {
	URL string `json:"URL"`
	// contains filtered or unexported fields
}

func DecodeFunctionSpec

func DecodeFunctionSpec(generic v1.FunctionSpec) (*FunctionSpec, error)

func (*FunctionSpec) ValidateGFunc

func (s *FunctionSpec) ValidateGFunc() error

TODO(ashish) - is this being called from outside this package? can this be merged into DecodeFuncionSpec

type Plugin

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

func (*Plugin) GetDependencies

func (p *Plugin) GetDependencies(cfg *v1.Config) *plugin.Dependencies

func (*Plugin) HttpFilters

func (p *Plugin) HttpFilters(params *plugin.FilterPluginParams) []plugin.StagedFilter

func (*Plugin) ParseFunctionSpec

func (p *Plugin) ParseFunctionSpec(params *plugin.FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)

func (*Plugin) ProcessRoute

func (p *Plugin) ProcessRoute(_ *plugin.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error

func (*Plugin) ProcessUpstream

func (p *Plugin) ProcessUpstream(params *plugin.UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error

type UpstreamSpec

type UpstreamSpec struct {
	Region    string `json:"region"`
	ProjectId string `json:"project_id"`
}

func DecodeUpstreamSpec

func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)

func (*UpstreamSpec) GetGFuncHostname

func (s *UpstreamSpec) GetGFuncHostname() string

Jump to

Keyboard shortcuts

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