Documentation ¶
Overview ¶
Package google is a generated protocol buffer package.
It is generated from these files:
spec.proto
It has these top-level messages:
UpstreamSpec FunctionSpec
Index ¶
- Constants
- Variables
- func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
- type FunctionSpec
- type Plugin
- func (p *Plugin) HttpFilters(params *plugins.HttpFilterPluginParams) []plugins.StagedHttpFilter
- func (p *Plugin) Init(options bootstrap.Options) error
- func (p *Plugin) ParseFunctionSpec(params *plugins.FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)
- func (p *Plugin) ProcessRoute(_ *plugins.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
- func (p *Plugin) ProcessUpstream(params *plugins.UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error
- type UpstreamSpec
- func (*UpstreamSpec) Descriptor() ([]byte, []int)
- func (this *UpstreamSpec) Equal(that interface{}) bool
- func (s *UpstreamSpec) GetGFuncHostname() string
- func (m *UpstreamSpec) GetProjectId() string
- func (m *UpstreamSpec) GetRegion() string
- func (*UpstreamSpec) ProtoMessage()
- func (m *UpstreamSpec) Reset()
- func (m *UpstreamSpec) String() string
Constants ¶
View Source
const (
// define Upstream type name
UpstreamTypeGoogle = "google"
)
Variables ¶
View Source
var ( ValidRegions = map[string]bool{ "northamerica-northeast1": true, "us-central1": true, "us-west1": true, "us-east4": true, "us-east1": true, "southamerica-east1": true, "europe-west1": true, "europe-west2": true, "europe-west3": true, "europe-west4": true, "asia-south1": true, "asia-southeast1": true, "asia-east1": true, "asia-northeast1": true, "australia-southeast1": true, } )
Functions ¶
func EncodeFunctionSpec ¶
func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
Types ¶
type FunctionSpec ¶
type FunctionSpec struct { // URL is the HTTP Trigger URL assigned to the function in the Google Cloud Functions UI Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` }
Function Spec for Functions on Google Functions Upstreams The Function Spec contains data necessary for Gloo to invoke Google Cloud Platform Functions
func DecodeFunctionSpec ¶
func DecodeFunctionSpec(generic v1.FunctionSpec) (*FunctionSpec, error)
func NewFuncFromUrl ¶
func NewFuncFromUrl(funcurl string) (*FunctionSpec, error)
func (*FunctionSpec) Descriptor ¶
func (*FunctionSpec) Descriptor() ([]byte, []int)
func (*FunctionSpec) Equal ¶
func (this *FunctionSpec) Equal(that interface{}) bool
func (*FunctionSpec) GetUrl ¶
func (m *FunctionSpec) GetUrl() string
func (*FunctionSpec) ProtoMessage ¶
func (*FunctionSpec) ProtoMessage()
func (*FunctionSpec) Reset ¶
func (m *FunctionSpec) Reset()
func (*FunctionSpec) String ¶
func (m *FunctionSpec) String() string
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) HttpFilters ¶
func (p *Plugin) HttpFilters(params *plugins.HttpFilterPluginParams) []plugins.StagedHttpFilter
func (*Plugin) ParseFunctionSpec ¶
func (p *Plugin) ParseFunctionSpec(params *plugins.FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)
func (*Plugin) ProcessRoute ¶
func (p *Plugin) ProcessRoute(_ *plugins.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
func (*Plugin) ProcessUpstream ¶
type UpstreamSpec ¶
type UpstreamSpec struct { // The Google Cloud Region in which to run Google Functions Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` // The Google Cloud Platform project id where the functions are contained ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` }
Upstream Spec for Google Functions Upstreams AWS Upstreams represent a collection of Google Functions for a particular Google Cloud Platform Account in a particular region, for a particlar project
func DecodeUpstreamSpec ¶
func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)
func (*UpstreamSpec) Descriptor ¶
func (*UpstreamSpec) Descriptor() ([]byte, []int)
func (*UpstreamSpec) Equal ¶
func (this *UpstreamSpec) Equal(that interface{}) bool
func (*UpstreamSpec) GetGFuncHostname ¶
func (s *UpstreamSpec) GetGFuncHostname() string
func (*UpstreamSpec) GetProjectId ¶
func (m *UpstreamSpec) GetProjectId() string
func (*UpstreamSpec) GetRegion ¶
func (m *UpstreamSpec) GetRegion() string
func (*UpstreamSpec) ProtoMessage ¶
func (*UpstreamSpec) ProtoMessage()
func (*UpstreamSpec) Reset ¶
func (m *UpstreamSpec) Reset()
func (*UpstreamSpec) String ¶
func (m *UpstreamSpec) String() string
Click to show internal directories.
Click to hide internal directories.