Documentation
¶
Index ¶
- Variables
- type ClusterWeight
- func (*ClusterWeight) Descriptor() ([]byte, []int)deprecated
- func (x *ClusterWeight) GetName() string
- func (x *ClusterWeight) GetWeight() uint32
- func (*ClusterWeight) ProtoMessage()
- func (x *ClusterWeight) ProtoReflect() protoreflect.Message
- func (x *ClusterWeight) Reset()
- func (x *ClusterWeight) String() string
- type HeaderMatcher
- func (*HeaderMatcher) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderMatcher) GetExactMatch() string
- func (m *HeaderMatcher) GetHeaderMatchSpecifier() isHeaderMatcher_HeaderMatchSpecifier
- func (x *HeaderMatcher) GetName() string
- func (x *HeaderMatcher) GetPrefixMatch() string
- func (*HeaderMatcher) ProtoMessage()
- func (x *HeaderMatcher) ProtoReflect() protoreflect.Message
- func (x *HeaderMatcher) Reset()
- func (x *HeaderMatcher) String() string
- type HeaderMatcher_ExactMatch
- type HeaderMatcher_PrefixMatch
- type RetryPolicy
- type Route
- func (*Route) Descriptor() ([]byte, []int)deprecated
- func (x *Route) GetMatch() *RouteMatch
- func (x *Route) GetName() string
- func (x *Route) GetRoute() *RouteAction
- func (*Route) ProtoMessage()
- func (x *Route) ProtoReflect() protoreflect.Message
- func (x *Route) Reset()
- func (x *Route) String() string
- type RouteAction
- func (*RouteAction) Descriptor() ([]byte, []int)deprecated
- func (x *RouteAction) GetCluster() string
- func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier
- func (x *RouteAction) GetPrefixRewrite() string
- func (x *RouteAction) GetRetryPolicy() *RetryPolicy
- func (x *RouteAction) GetTimeout() uint32
- func (x *RouteAction) GetWeightedClusters() *WeightedCluster
- func (*RouteAction) ProtoMessage()
- func (x *RouteAction) ProtoReflect() protoreflect.Message
- func (x *RouteAction) Reset()
- func (x *RouteAction) String() string
- type RouteAction_Cluster
- type RouteAction_WeightedClusters
- type RouteConfiguration
- func (*RouteConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *RouteConfiguration) GetApiStatus() core.ApiStatus
- func (x *RouteConfiguration) GetName() string
- func (x *RouteConfiguration) GetVirtualHosts() []*VirtualHost
- func (*RouteConfiguration) ProtoMessage()
- func (x *RouteConfiguration) ProtoReflect() protoreflect.Message
- func (x *RouteConfiguration) Reset()
- func (x *RouteConfiguration) String() string
- type RouteMatch
- func (*RouteMatch) Descriptor() ([]byte, []int)deprecated
- func (x *RouteMatch) GetCaseSensitive() bool
- func (x *RouteMatch) GetHeaders() []*HeaderMatcher
- func (x *RouteMatch) GetPrefix() string
- func (*RouteMatch) ProtoMessage()
- func (x *RouteMatch) ProtoReflect() protoreflect.Message
- func (x *RouteMatch) Reset()
- func (x *RouteMatch) String() string
- type VirtualHost
- func (*VirtualHost) Descriptor() ([]byte, []int)deprecated
- func (x *VirtualHost) GetDomains() []string
- func (x *VirtualHost) GetName() string
- func (x *VirtualHost) GetRoutes() []*Route
- func (*VirtualHost) ProtoMessage()
- func (x *VirtualHost) ProtoReflect() protoreflect.Message
- func (x *VirtualHost) Reset()
- func (x *VirtualHost) String() string
- type WeightedCluster
Constants ¶
This section is empty.
Variables ¶
View Source
var File_api_route_route_components_proto protoreflect.FileDescriptor
View Source
var File_api_route_route_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClusterWeight ¶
type ClusterWeight struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Weight uint32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
// contains filtered or unexported fields
}
func (*ClusterWeight) Descriptor
deprecated
func (*ClusterWeight) Descriptor() ([]byte, []int)
Deprecated: Use ClusterWeight.ProtoReflect.Descriptor instead.
func (*ClusterWeight) GetName ¶
func (x *ClusterWeight) GetName() string
func (*ClusterWeight) GetWeight ¶
func (x *ClusterWeight) GetWeight() uint32
func (*ClusterWeight) ProtoMessage ¶
func (*ClusterWeight) ProtoMessage()
func (*ClusterWeight) ProtoReflect ¶
func (x *ClusterWeight) ProtoReflect() protoreflect.Message
func (*ClusterWeight) Reset ¶
func (x *ClusterWeight) Reset()
func (*ClusterWeight) String ¶
func (x *ClusterWeight) String() string
type HeaderMatcher ¶
type HeaderMatcher struct {
// Specifies the name of the header in the request.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are assignable to HeaderMatchSpecifier:
//
// *HeaderMatcher_ExactMatch
// *HeaderMatcher_PrefixMatch
HeaderMatchSpecifier isHeaderMatcher_HeaderMatchSpecifier `protobuf_oneof:"header_match_specifier"`
// contains filtered or unexported fields
}
func (*HeaderMatcher) Descriptor
deprecated
func (*HeaderMatcher) Descriptor() ([]byte, []int)
Deprecated: Use HeaderMatcher.ProtoReflect.Descriptor instead.
func (*HeaderMatcher) GetExactMatch ¶
func (x *HeaderMatcher) GetExactMatch() string
func (*HeaderMatcher) GetHeaderMatchSpecifier ¶
func (m *HeaderMatcher) GetHeaderMatchSpecifier() isHeaderMatcher_HeaderMatchSpecifier
func (*HeaderMatcher) GetName ¶
func (x *HeaderMatcher) GetName() string
func (*HeaderMatcher) GetPrefixMatch ¶
func (x *HeaderMatcher) GetPrefixMatch() string
func (*HeaderMatcher) ProtoMessage ¶
func (*HeaderMatcher) ProtoMessage()
func (*HeaderMatcher) ProtoReflect ¶
func (x *HeaderMatcher) ProtoReflect() protoreflect.Message
func (*HeaderMatcher) Reset ¶
func (x *HeaderMatcher) Reset()
func (*HeaderMatcher) String ¶
func (x *HeaderMatcher) String() string
type HeaderMatcher_ExactMatch ¶
type HeaderMatcher_ExactMatch struct {
// If specified, header match will be performed based on the value of the header.
ExactMatch string `protobuf:"bytes,4,opt,name=exact_match,json=exactMatch,proto3,oneof"`
}
type HeaderMatcher_PrefixMatch ¶
type HeaderMatcher_PrefixMatch struct {
// If specified, header match will be performed based on the prefix of the header value.
PrefixMatch string `protobuf:"bytes,9,opt,name=prefix_match,json=prefixMatch,proto3,oneof"`
}
type RetryPolicy ¶
type RetryPolicy struct {
NumRetries uint32 `protobuf:"varint,2,opt,name=num_retries,json=numRetries,proto3" json:"num_retries,omitempty"` //RetryPriority retry_priority = 4;
// contains filtered or unexported fields
}
func (*RetryPolicy) Descriptor
deprecated
func (*RetryPolicy) Descriptor() ([]byte, []int)
Deprecated: Use RetryPolicy.ProtoReflect.Descriptor instead.
func (*RetryPolicy) GetNumRetries ¶
func (x *RetryPolicy) GetNumRetries() uint32
func (*RetryPolicy) ProtoMessage ¶
func (*RetryPolicy) ProtoMessage()
func (*RetryPolicy) ProtoReflect ¶
func (x *RetryPolicy) ProtoReflect() protoreflect.Message
func (*RetryPolicy) Reset ¶
func (x *RetryPolicy) Reset()
func (*RetryPolicy) String ¶
func (x *RetryPolicy) String() string
type Route ¶
type Route struct {
Name string `protobuf:"bytes,14,opt,name=name,proto3" json:"name,omitempty"`
Match *RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
Route *RouteAction `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
// contains filtered or unexported fields
}
func (*Route) Descriptor
deprecated
func (*Route) GetMatch ¶
func (x *Route) GetMatch() *RouteMatch
func (*Route) GetRoute ¶
func (x *Route) GetRoute() *RouteAction
func (*Route) ProtoMessage ¶
func (*Route) ProtoMessage()
func (*Route) ProtoReflect ¶
func (x *Route) ProtoReflect() protoreflect.Message
type RouteAction ¶
type RouteAction struct {
// Types that are assignable to ClusterSpecifier:
//
// *RouteAction_Cluster
// *RouteAction_WeightedClusters
ClusterSpecifier isRouteAction_ClusterSpecifier `protobuf_oneof:"cluster_specifier"`
// the matched prefix (or path) should be swapped with this value.
PrefixRewrite string `protobuf:"bytes,5,opt,name=prefix_rewrite,json=prefixRewrite,proto3" json:"prefix_rewrite,omitempty"`
Timeout uint32 `protobuf:"varint,8,opt,name=timeout,proto3" json:"timeout,omitempty"`
RetryPolicy *RetryPolicy `protobuf:"bytes,9,opt,name=retry_policy,json=retryPolicy,proto3" json:"retry_policy,omitempty"`
// contains filtered or unexported fields
}
func (*RouteAction) Descriptor
deprecated
func (*RouteAction) Descriptor() ([]byte, []int)
Deprecated: Use RouteAction.ProtoReflect.Descriptor instead.
func (*RouteAction) GetCluster ¶
func (x *RouteAction) GetCluster() string
func (*RouteAction) GetClusterSpecifier ¶
func (m *RouteAction) GetClusterSpecifier() isRouteAction_ClusterSpecifier
func (*RouteAction) GetPrefixRewrite ¶
func (x *RouteAction) GetPrefixRewrite() string
func (*RouteAction) GetRetryPolicy ¶
func (x *RouteAction) GetRetryPolicy() *RetryPolicy
func (*RouteAction) GetTimeout ¶
func (x *RouteAction) GetTimeout() uint32
func (*RouteAction) GetWeightedClusters ¶
func (x *RouteAction) GetWeightedClusters() *WeightedCluster
func (*RouteAction) ProtoMessage ¶
func (*RouteAction) ProtoMessage()
func (*RouteAction) ProtoReflect ¶
func (x *RouteAction) ProtoReflect() protoreflect.Message
func (*RouteAction) Reset ¶
func (x *RouteAction) Reset()
func (*RouteAction) String ¶
func (x *RouteAction) String() string
type RouteAction_Cluster ¶
type RouteAction_Cluster struct {
// Indicates the upstream cluster to which the request should be routed to.
Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3,oneof"`
}
type RouteAction_WeightedClusters ¶
type RouteAction_WeightedClusters struct {
// Multiple upstream clusters can be specified for a given route. The
// request is routed to one of the upstream clusters based on weights
// assigned to each cluster.
WeightedClusters *WeightedCluster `protobuf:"bytes,3,opt,name=weighted_clusters,json=weightedClusters,proto3,oneof"`
}
type RouteConfiguration ¶
type RouteConfiguration struct {
ApiStatus core.ApiStatus `protobuf:"varint,128,opt,name=api_status,json=apiStatus,proto3,enum=core.ApiStatus" json:"api_status,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
VirtualHosts []*VirtualHost `protobuf:"bytes,2,rep,name=virtual_hosts,json=virtualHosts,proto3" json:"virtual_hosts,omitempty"`
// contains filtered or unexported fields
}
func (*RouteConfiguration) Descriptor
deprecated
func (*RouteConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use RouteConfiguration.ProtoReflect.Descriptor instead.
func (*RouteConfiguration) GetApiStatus ¶
func (x *RouteConfiguration) GetApiStatus() core.ApiStatus
func (*RouteConfiguration) GetName ¶
func (x *RouteConfiguration) GetName() string
func (*RouteConfiguration) GetVirtualHosts ¶
func (x *RouteConfiguration) GetVirtualHosts() []*VirtualHost
func (*RouteConfiguration) ProtoMessage ¶
func (*RouteConfiguration) ProtoMessage()
func (*RouteConfiguration) ProtoReflect ¶
func (x *RouteConfiguration) ProtoReflect() protoreflect.Message
func (*RouteConfiguration) Reset ¶
func (x *RouteConfiguration) Reset()
func (*RouteConfiguration) String ¶
func (x *RouteConfiguration) String() string
type RouteMatch ¶
type RouteMatch struct {
Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
CaseSensitive bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
Headers []*HeaderMatcher `protobuf:"bytes,6,rep,name=headers,proto3" json:"headers,omitempty"`
// contains filtered or unexported fields
}
func (*RouteMatch) Descriptor
deprecated
func (*RouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use RouteMatch.ProtoReflect.Descriptor instead.
func (*RouteMatch) GetCaseSensitive ¶
func (x *RouteMatch) GetCaseSensitive() bool
func (*RouteMatch) GetHeaders ¶
func (x *RouteMatch) GetHeaders() []*HeaderMatcher
func (*RouteMatch) GetPrefix ¶
func (x *RouteMatch) GetPrefix() string
func (*RouteMatch) ProtoMessage ¶
func (*RouteMatch) ProtoMessage()
func (*RouteMatch) ProtoReflect ¶
func (x *RouteMatch) ProtoReflect() protoreflect.Message
func (*RouteMatch) Reset ¶
func (x *RouteMatch) Reset()
func (*RouteMatch) String ¶
func (x *RouteMatch) String() string
type VirtualHost ¶
type VirtualHost struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Domains []string `protobuf:"bytes,2,rep,name=domains,proto3" json:"domains,omitempty"`
Routes []*Route `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"`
// contains filtered or unexported fields
}
func (*VirtualHost) Descriptor
deprecated
func (*VirtualHost) Descriptor() ([]byte, []int)
Deprecated: Use VirtualHost.ProtoReflect.Descriptor instead.
func (*VirtualHost) GetDomains ¶
func (x *VirtualHost) GetDomains() []string
func (*VirtualHost) GetName ¶
func (x *VirtualHost) GetName() string
func (*VirtualHost) GetRoutes ¶
func (x *VirtualHost) GetRoutes() []*Route
func (*VirtualHost) ProtoMessage ¶
func (*VirtualHost) ProtoMessage()
func (*VirtualHost) ProtoReflect ¶
func (x *VirtualHost) ProtoReflect() protoreflect.Message
func (*VirtualHost) Reset ¶
func (x *VirtualHost) Reset()
func (*VirtualHost) String ¶
func (x *VirtualHost) String() string
type WeightedCluster ¶
type WeightedCluster struct {
Clusters []*ClusterWeight `protobuf:"bytes,1,rep,name=clusters,proto3" json:"clusters,omitempty"`
// contains filtered or unexported fields
}
func (*WeightedCluster) Descriptor
deprecated
func (*WeightedCluster) Descriptor() ([]byte, []int)
Deprecated: Use WeightedCluster.ProtoReflect.Descriptor instead.
func (*WeightedCluster) GetClusters ¶
func (x *WeightedCluster) GetClusters() []*ClusterWeight
func (*WeightedCluster) ProtoMessage ¶
func (*WeightedCluster) ProtoMessage()
func (*WeightedCluster) ProtoReflect ¶
func (x *WeightedCluster) ProtoReflect() protoreflect.Message
func (*WeightedCluster) Reset ¶
func (x *WeightedCluster) Reset()
func (*WeightedCluster) String ¶
func (x *WeightedCluster) String() string
Click to show internal directories.
Click to hide internal directories.