Documentation
¶
Overview ¶
Package azure is a generated protocol buffer package.
It is generated from these files:
spec.proto
It has these top-level messages:
UpstreamSpec FunctionSpec
Index ¶
- Constants
- func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
- func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
- type FunctionSpec
- func (*FunctionSpec) Descriptor() ([]byte, []int)
- func (this *FunctionSpec) Equal(that interface{}) bool
- func (m *FunctionSpec) GetAuthLevel() string
- func (m *FunctionSpec) GetFunctionName() string
- func (*FunctionSpec) ProtoMessage()
- func (m *FunctionSpec) Reset()
- func (m *FunctionSpec) String() string
- func (s *FunctionSpec) Validate() error
- type Plugin
- func (p *Plugin) GetDependencies(cfg *v1.Config) *plugins.Dependencies
- func (p *Plugin) HttpFilters(_ *plugins.HttpFilterPluginParams) []plugins.StagedHttpFilter
- 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 (m *UpstreamSpec) GetFunctionAppName() string
- func (s *UpstreamSpec) GetHostname() string
- func (m *UpstreamSpec) GetSecretRef() string
- func (*UpstreamSpec) ProtoMessage()
- func (m *UpstreamSpec) Reset()
- func (m *UpstreamSpec) String() string
- func (s *UpstreamSpec) Validate() error
Constants ¶
View Source
const (
// define Upstream type name
UpstreamTypeAzure = "azure"
)
Variables ¶
This section is empty.
Functions ¶
func EncodeFunctionSpec ¶
func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
func EncodeUpstreamSpec ¶
func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
Types ¶
type FunctionSpec ¶
type FunctionSpec struct { // The Name of the Azure Function as it appears in the Azure Functions Portal FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"` // Auth Level can bve either "anonymous" "function" or "admin" // See https://vincentlauzon.com/2017/12/04/azure-functions-http-authorization-levels/ for more details AuthLevel string `protobuf:"bytes,2,opt,name=auth_level,json=authLevel,proto3" json:"auth_level,omitempty"` }
Function Spec for Functions on Azure Functions Upstreams The Function Spec contains data necessary for Gloo to invoke Azure functions
func DecodeFunctionSpec ¶
func DecodeFunctionSpec(generic v1.FunctionSpec) (*FunctionSpec, error)
func (*FunctionSpec) Descriptor ¶
func (*FunctionSpec) Descriptor() ([]byte, []int)
func (*FunctionSpec) Equal ¶
func (this *FunctionSpec) Equal(that interface{}) bool
func (*FunctionSpec) GetAuthLevel ¶
func (m *FunctionSpec) GetAuthLevel() string
func (*FunctionSpec) GetFunctionName ¶
func (m *FunctionSpec) GetFunctionName() string
func (*FunctionSpec) ProtoMessage ¶
func (*FunctionSpec) ProtoMessage()
func (*FunctionSpec) Reset ¶
func (m *FunctionSpec) Reset()
func (*FunctionSpec) String ¶
func (m *FunctionSpec) String() string
func (*FunctionSpec) Validate ¶
func (s *FunctionSpec) Validate() error
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetDependencies ¶
func (p *Plugin) GetDependencies(cfg *v1.Config) *plugins.Dependencies
func (*Plugin) HttpFilters ¶
func (p *Plugin) HttpFilters(_ *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 Name of the Azure Function App where the functions are grouped FunctionAppName string `protobuf:"bytes,1,opt,name=function_app_name,json=functionAppName,proto3" json:"function_app_name,omitempty"` // A [Gloo Secret Ref](https://gloo.solo.io/introduction/concepts/#Secrets) to an [Azure Publish Profile JSON file](https://azure.microsoft.com/en-us/downloads/publishing-profile-overview/). // {{ hide_not_implemented "Azure Secrets can be created with `glooctl secret create azure ...`" }} // Note that this secret is not required unless Function Discovery is enabled SecretRef string `protobuf:"bytes,2,opt,name=secret_ref,json=secretRef,proto3" json:"secret_ref,omitempty"` }
Upstream Spec for Azure Functions Upstreams AWS Upstreams represent a collection of Azure Functions for a particular Azure Account (IAM Role or User account) within a particular Function App
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) GetFunctionAppName ¶
func (m *UpstreamSpec) GetFunctionAppName() string
func (*UpstreamSpec) GetHostname ¶
func (s *UpstreamSpec) GetHostname() string
func (*UpstreamSpec) GetSecretRef ¶
func (m *UpstreamSpec) GetSecretRef() string
func (*UpstreamSpec) ProtoMessage ¶
func (*UpstreamSpec) ProtoMessage()
func (*UpstreamSpec) Reset ¶
func (m *UpstreamSpec) Reset()
func (*UpstreamSpec) String ¶
func (m *UpstreamSpec) String() string
func (*UpstreamSpec) Validate ¶
func (s *UpstreamSpec) Validate() error
Click to show internal directories.
Click to hide internal directories.