Documentation
¶
Overview ¶
Package knative is a generated protocol buffer package.
It is generated from these files:
spec.proto
It has these top-level messages:
UpstreamSpec
Index ¶
- Constants
- func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
- type Plugin
- type UpstreamSpec
- func (*UpstreamSpec) Descriptor() ([]byte, []int)
- func (this *UpstreamSpec) Equal(that interface{}) bool
- func (m *UpstreamSpec) GetHostname() string
- func (m *UpstreamSpec) GetServiceName() string
- func (m *UpstreamSpec) GetServiceNamespace() string
- func (*UpstreamSpec) ProtoMessage()
- func (m *UpstreamSpec) Reset()
- func (m *UpstreamSpec) String() string
Constants ¶
View Source
const ( MetadataNamespace = "io.solo.knative" UpstreamTypeKnative = "knative" HostnameKNative = "hostname" )
Variables ¶
This section is empty.
Functions ¶
func EncodeUpstreamSpec ¶
func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) ProcessRoute ¶
func (p *Plugin) ProcessRoute(pluginParams *plugins.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
func (*Plugin) ProcessUpstream ¶
type UpstreamSpec ¶
type UpstreamSpec struct { // The name of the Kubernetes Service ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The namespace where the Service lives ServiceNamespace string `protobuf:"bytes,2,opt,name=service_namespace,json=serviceNamespace,proto3" json:"service_namespace,omitempty"` // The domain name for the knative service. Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` }
Upstream Spec for Kubernetes Upstreams Kubernetes Upstreams represent a set of one or more addressable pods for a Kubernetes Service the Gloo Kubernetes Upstream maps to a single service port. Because Kubernetes Services support mulitple ports, Gloo requires that a different upstream be created for each port Kubernetes Upstreams are typically generated automatically by Gloo from the Kubernetes API
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) GetHostname ¶
func (m *UpstreamSpec) GetHostname() string
func (*UpstreamSpec) GetServiceName ¶
func (m *UpstreamSpec) GetServiceName() string
func (*UpstreamSpec) GetServiceNamespace ¶
func (m *UpstreamSpec) GetServiceNamespace() 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.