Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +genconversion=true
Package v1 is a generated protocol buffer package. It is generated from these files: github.com/openshift/origin/pkg/route/api/v1/generated.proto It has these top-level messages: Route RouteIngress RouteIngressCondition RouteList RoutePort RouteSpec RouteStatus RouteTargetReference RouterShard TLSConfig
Index ¶
- Constants
- Variables
- func AddToScheme(scheme *runtime.Scheme)
- func Convert_api_RouteIngressCondition_To_v1_RouteIngressCondition(in *route_api.RouteIngressCondition, out *RouteIngressCondition, ...) error
- func Convert_api_RouteIngress_To_v1_RouteIngress(in *route_api.RouteIngress, out *RouteIngress, s conversion.Scope) error
- func Convert_api_RouteList_To_v1_RouteList(in *route_api.RouteList, out *RouteList, s conversion.Scope) error
- func Convert_api_RoutePort_To_v1_RoutePort(in *route_api.RoutePort, out *RoutePort, s conversion.Scope) error
- func Convert_api_RouteSpec_To_v1_RouteSpec(in *route_api.RouteSpec, out *RouteSpec, s conversion.Scope) error
- func Convert_api_RouteStatus_To_v1_RouteStatus(in *route_api.RouteStatus, out *RouteStatus, s conversion.Scope) error
- func Convert_api_RouteTargetReference_To_v1_RouteTargetReference(in *route_api.RouteTargetReference, out *RouteTargetReference, ...) error
- func Convert_api_Route_To_v1_Route(in *route_api.Route, out *Route, s conversion.Scope) error
- func Convert_api_RouterShard_To_v1_RouterShard(in *route_api.RouterShard, out *RouterShard, s conversion.Scope) error
- func Convert_api_TLSConfig_To_v1_TLSConfig(in *route_api.TLSConfig, out *TLSConfig, s conversion.Scope) error
- func Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(in *RouteIngressCondition, out *route_api.RouteIngressCondition, ...) error
- func Convert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *route_api.RouteIngress, s conversion.Scope) error
- func Convert_v1_RouteList_To_api_RouteList(in *RouteList, out *route_api.RouteList, s conversion.Scope) error
- func Convert_v1_RoutePort_To_api_RoutePort(in *RoutePort, out *route_api.RoutePort, s conversion.Scope) error
- func Convert_v1_RouteSpec_To_api_RouteSpec(in *RouteSpec, out *route_api.RouteSpec, s conversion.Scope) error
- func Convert_v1_RouteStatus_To_api_RouteStatus(in *RouteStatus, out *route_api.RouteStatus, s conversion.Scope) error
- func Convert_v1_RouteTargetReference_To_api_RouteTargetReference(in *RouteTargetReference, out *route_api.RouteTargetReference, ...) error
- func Convert_v1_Route_To_api_Route(in *Route, out *route_api.Route, s conversion.Scope) error
- func Convert_v1_RouterShard_To_api_RouterShard(in *RouterShard, out *route_api.RouterShard, s conversion.Scope) error
- func Convert_v1_TLSConfig_To_api_TLSConfig(in *TLSConfig, out *route_api.TLSConfig, s conversion.Scope) error
- func DeepCopy_v1_Route(in Route, out *Route, c *conversion.Cloner) error
- func DeepCopy_v1_RouteIngress(in RouteIngress, out *RouteIngress, c *conversion.Cloner) error
- func DeepCopy_v1_RouteIngressCondition(in RouteIngressCondition, out *RouteIngressCondition, c *conversion.Cloner) error
- func DeepCopy_v1_RouteList(in RouteList, out *RouteList, c *conversion.Cloner) error
- func DeepCopy_v1_RoutePort(in RoutePort, out *RoutePort, c *conversion.Cloner) error
- func DeepCopy_v1_RouteSpec(in RouteSpec, out *RouteSpec, c *conversion.Cloner) error
- func DeepCopy_v1_RouteStatus(in RouteStatus, out *RouteStatus, c *conversion.Cloner) error
- func DeepCopy_v1_RouteTargetReference(in RouteTargetReference, out *RouteTargetReference, c *conversion.Cloner) error
- func DeepCopy_v1_RouterShard(in RouterShard, out *RouterShard, c *conversion.Cloner) error
- func DeepCopy_v1_TLSConfig(in TLSConfig, out *TLSConfig, c *conversion.Cloner) error
- func SetDefaults_RouteTargetReference(obj *RouteTargetReference)
- func SetDefaults_TLSConfig(obj *TLSConfig)
- type InsecureEdgeTerminationPolicyType
- type Route
- func (obj *Route) GetObjectKind() unversioned.ObjectKind
- func (m *Route) Marshal() (data []byte, err error)
- func (m *Route) MarshalTo(data []byte) (int, error)
- func (*Route) ProtoMessage()
- func (m *Route) Reset()
- func (m *Route) Size() (n int)
- func (m *Route) String() string
- func (Route) SwaggerDoc() map[string]string
- func (m *Route) Unmarshal(data []byte) error
- type RouteIngress
- func (m *RouteIngress) Marshal() (data []byte, err error)
- func (m *RouteIngress) MarshalTo(data []byte) (int, error)
- func (*RouteIngress) ProtoMessage()
- func (m *RouteIngress) Reset()
- func (m *RouteIngress) Size() (n int)
- func (m *RouteIngress) String() string
- func (RouteIngress) SwaggerDoc() map[string]string
- func (m *RouteIngress) Unmarshal(data []byte) error
- type RouteIngressCondition
- func (m *RouteIngressCondition) Marshal() (data []byte, err error)
- func (m *RouteIngressCondition) MarshalTo(data []byte) (int, error)
- func (*RouteIngressCondition) ProtoMessage()
- func (m *RouteIngressCondition) Reset()
- func (m *RouteIngressCondition) Size() (n int)
- func (m *RouteIngressCondition) String() string
- func (RouteIngressCondition) SwaggerDoc() map[string]string
- func (m *RouteIngressCondition) Unmarshal(data []byte) error
- type RouteIngressConditionType
- type RouteList
- func (obj *RouteList) GetObjectKind() unversioned.ObjectKind
- func (m *RouteList) Marshal() (data []byte, err error)
- func (m *RouteList) MarshalTo(data []byte) (int, error)
- func (*RouteList) ProtoMessage()
- func (m *RouteList) Reset()
- func (m *RouteList) Size() (n int)
- func (m *RouteList) String() string
- func (RouteList) SwaggerDoc() map[string]string
- func (m *RouteList) Unmarshal(data []byte) error
- type RoutePort
- func (m *RoutePort) Marshal() (data []byte, err error)
- func (m *RoutePort) MarshalTo(data []byte) (int, error)
- func (*RoutePort) ProtoMessage()
- func (m *RoutePort) Reset()
- func (m *RoutePort) Size() (n int)
- func (m *RoutePort) String() string
- func (RoutePort) SwaggerDoc() map[string]string
- func (m *RoutePort) Unmarshal(data []byte) error
- type RouteSpec
- func (m *RouteSpec) Marshal() (data []byte, err error)
- func (m *RouteSpec) MarshalTo(data []byte) (int, error)
- func (*RouteSpec) ProtoMessage()
- func (m *RouteSpec) Reset()
- func (m *RouteSpec) Size() (n int)
- func (m *RouteSpec) String() string
- func (RouteSpec) SwaggerDoc() map[string]string
- func (m *RouteSpec) Unmarshal(data []byte) error
- type RouteStatus
- func (m *RouteStatus) Marshal() (data []byte, err error)
- func (m *RouteStatus) MarshalTo(data []byte) (int, error)
- func (*RouteStatus) ProtoMessage()
- func (m *RouteStatus) Reset()
- func (m *RouteStatus) Size() (n int)
- func (m *RouteStatus) String() string
- func (RouteStatus) SwaggerDoc() map[string]string
- func (m *RouteStatus) Unmarshal(data []byte) error
- type RouteTargetReference
- func (m *RouteTargetReference) Marshal() (data []byte, err error)
- func (m *RouteTargetReference) MarshalTo(data []byte) (int, error)
- func (*RouteTargetReference) ProtoMessage()
- func (m *RouteTargetReference) Reset()
- func (m *RouteTargetReference) Size() (n int)
- func (m *RouteTargetReference) String() string
- func (RouteTargetReference) SwaggerDoc() map[string]string
- func (m *RouteTargetReference) Unmarshal(data []byte) error
- type RouterShard
- func (m *RouterShard) Marshal() (data []byte, err error)
- func (m *RouterShard) MarshalTo(data []byte) (int, error)
- func (*RouterShard) ProtoMessage()
- func (m *RouterShard) Reset()
- func (m *RouterShard) Size() (n int)
- func (m *RouterShard) String() string
- func (RouterShard) SwaggerDoc() map[string]string
- func (m *RouterShard) Unmarshal(data []byte) error
- type TLSConfig
- func (m *TLSConfig) Marshal() (data []byte, err error)
- func (m *TLSConfig) MarshalTo(data []byte) (int, error)
- func (*TLSConfig) ProtoMessage()
- func (m *TLSConfig) Reset()
- func (m *TLSConfig) Size() (n int)
- func (m *TLSConfig) String() string
- func (TLSConfig) SwaggerDoc() map[string]string
- func (m *TLSConfig) Unmarshal(data []byte) error
- type TLSTerminationType
Constants ¶
const GroupName = ""
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") )
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func AddToScheme ¶ added in v1.1.3
func Convert_api_RouteIngressCondition_To_v1_RouteIngressCondition ¶ added in v1.3.0
func Convert_api_RouteIngressCondition_To_v1_RouteIngressCondition(in *route_api.RouteIngressCondition, out *RouteIngressCondition, s conversion.Scope) error
func Convert_api_RouteIngress_To_v1_RouteIngress ¶ added in v1.3.0
func Convert_api_RouteIngress_To_v1_RouteIngress(in *route_api.RouteIngress, out *RouteIngress, s conversion.Scope) error
func Convert_api_RouteList_To_v1_RouteList ¶ added in v1.3.0
func Convert_api_RoutePort_To_v1_RoutePort ¶ added in v1.3.0
func Convert_api_RouteSpec_To_v1_RouteSpec ¶ added in v1.3.0
func Convert_api_RouteStatus_To_v1_RouteStatus ¶ added in v1.3.0
func Convert_api_RouteStatus_To_v1_RouteStatus(in *route_api.RouteStatus, out *RouteStatus, s conversion.Scope) error
func Convert_api_RouteTargetReference_To_v1_RouteTargetReference ¶ added in v1.3.0
func Convert_api_RouteTargetReference_To_v1_RouteTargetReference(in *route_api.RouteTargetReference, out *RouteTargetReference, s conversion.Scope) error
func Convert_api_Route_To_v1_Route ¶ added in v1.3.0
func Convert_api_RouterShard_To_v1_RouterShard ¶ added in v1.3.0
func Convert_api_RouterShard_To_v1_RouterShard(in *route_api.RouterShard, out *RouterShard, s conversion.Scope) error
func Convert_api_TLSConfig_To_v1_TLSConfig ¶ added in v1.3.0
func Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition ¶ added in v1.3.0
func Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(in *RouteIngressCondition, out *route_api.RouteIngressCondition, s conversion.Scope) error
func Convert_v1_RouteIngress_To_api_RouteIngress ¶ added in v1.3.0
func Convert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *route_api.RouteIngress, s conversion.Scope) error
func Convert_v1_RouteList_To_api_RouteList ¶ added in v1.3.0
func Convert_v1_RoutePort_To_api_RoutePort ¶ added in v1.3.0
func Convert_v1_RouteSpec_To_api_RouteSpec ¶ added in v1.3.0
func Convert_v1_RouteStatus_To_api_RouteStatus ¶ added in v1.3.0
func Convert_v1_RouteStatus_To_api_RouteStatus(in *RouteStatus, out *route_api.RouteStatus, s conversion.Scope) error
func Convert_v1_RouteTargetReference_To_api_RouteTargetReference ¶ added in v1.3.0
func Convert_v1_RouteTargetReference_To_api_RouteTargetReference(in *RouteTargetReference, out *route_api.RouteTargetReference, s conversion.Scope) error
func Convert_v1_Route_To_api_Route ¶ added in v1.3.0
func Convert_v1_RouterShard_To_api_RouterShard ¶ added in v1.3.0
func Convert_v1_RouterShard_To_api_RouterShard(in *RouterShard, out *route_api.RouterShard, s conversion.Scope) error
func Convert_v1_TLSConfig_To_api_TLSConfig ¶ added in v1.3.0
func DeepCopy_v1_Route ¶ added in v1.3.0
func DeepCopy_v1_Route(in Route, out *Route, c *conversion.Cloner) error
func DeepCopy_v1_RouteIngress ¶ added in v1.3.0
func DeepCopy_v1_RouteIngress(in RouteIngress, out *RouteIngress, c *conversion.Cloner) error
func DeepCopy_v1_RouteIngressCondition ¶ added in v1.3.0
func DeepCopy_v1_RouteIngressCondition(in RouteIngressCondition, out *RouteIngressCondition, c *conversion.Cloner) error
func DeepCopy_v1_RouteList ¶ added in v1.3.0
func DeepCopy_v1_RouteList(in RouteList, out *RouteList, c *conversion.Cloner) error
func DeepCopy_v1_RoutePort ¶ added in v1.3.0
func DeepCopy_v1_RoutePort(in RoutePort, out *RoutePort, c *conversion.Cloner) error
func DeepCopy_v1_RouteSpec ¶ added in v1.3.0
func DeepCopy_v1_RouteSpec(in RouteSpec, out *RouteSpec, c *conversion.Cloner) error
func DeepCopy_v1_RouteStatus ¶ added in v1.3.0
func DeepCopy_v1_RouteStatus(in RouteStatus, out *RouteStatus, c *conversion.Cloner) error
func DeepCopy_v1_RouteTargetReference ¶ added in v1.3.0
func DeepCopy_v1_RouteTargetReference(in RouteTargetReference, out *RouteTargetReference, c *conversion.Cloner) error
func DeepCopy_v1_RouterShard ¶ added in v1.3.0
func DeepCopy_v1_RouterShard(in RouterShard, out *RouterShard, c *conversion.Cloner) error
func DeepCopy_v1_TLSConfig ¶ added in v1.3.0
func DeepCopy_v1_TLSConfig(in TLSConfig, out *TLSConfig, c *conversion.Cloner) error
func SetDefaults_RouteTargetReference ¶ added in v1.3.0
func SetDefaults_RouteTargetReference(obj *RouteTargetReference)
func SetDefaults_TLSConfig ¶ added in v1.3.0
func SetDefaults_TLSConfig(obj *TLSConfig)
Types ¶
type InsecureEdgeTerminationPolicyType ¶ added in v1.0.8
type InsecureEdgeTerminationPolicyType string
InsecureEdgeTerminationPolicyType dictates the behavior of insecure connections to an edge-terminated route.
type Route ¶
type Route struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. kapi.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Spec is the desired state of the route Spec RouteSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // Status is the current state of the route Status RouteStatus `json:"status" protobuf:"bytes,3,opt,name=status"` }
Route encapsulates the inputs needed to connect an alias to endpoints.
func (*Route) GetObjectKind ¶ added in v1.1.3
func (obj *Route) GetObjectKind() unversioned.ObjectKind
func (*Route) ProtoMessage ¶ added in v1.3.0
func (*Route) ProtoMessage()
func (Route) SwaggerDoc ¶ added in v1.1.4
type RouteIngress ¶ added in v1.1.3
type RouteIngress struct { // Host is the host string under which the route is exposed; this value is required Host string `json:"host,omitempty" protobuf:"bytes,1,opt,name=host"` // Name is a name chosen by the router to identify itself; this value is required RouterName string `json:"routerName,omitempty" protobuf:"bytes,2,opt,name=routerName"` // Conditions is the state of the route, may be empty. Conditions []RouteIngressCondition `json:"conditions,omitempty" protobuf:"bytes,3,rep,name=conditions"` }
RouteIngress holds information about the places where a route is exposed
func (*RouteIngress) Marshal ¶ added in v1.3.0
func (m *RouteIngress) Marshal() (data []byte, err error)
func (*RouteIngress) MarshalTo ¶ added in v1.3.0
func (m *RouteIngress) MarshalTo(data []byte) (int, error)
func (*RouteIngress) ProtoMessage ¶ added in v1.3.0
func (*RouteIngress) ProtoMessage()
func (*RouteIngress) Reset ¶ added in v1.3.0
func (m *RouteIngress) Reset()
func (*RouteIngress) Size ¶ added in v1.3.0
func (m *RouteIngress) Size() (n int)
func (*RouteIngress) String ¶ added in v1.3.0
func (m *RouteIngress) String() string
func (RouteIngress) SwaggerDoc ¶ added in v1.1.4
func (RouteIngress) SwaggerDoc() map[string]string
func (*RouteIngress) Unmarshal ¶ added in v1.3.0
func (m *RouteIngress) Unmarshal(data []byte) error
type RouteIngressCondition ¶ added in v1.1.3
type RouteIngressCondition struct { // Type is the type of the condition. // Currently only Ready. Type RouteIngressConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RouteIngressConditionType"` // Status is the status of the condition. // Can be True, False, Unknown. Status kapi.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/kubernetes/pkg/api/v1.ConditionStatus"` // (brief) reason for the condition's last transition, and is usually a machine and human // readable constant Reason string `json:"reason,omitempty" protobuf:"bytes,3,opt,name=reason"` // Human readable message indicating details about last transition. Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"` // RFC 3339 date and time when this condition last transitioned LastTransitionTime *unversioned.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,5,opt,name=lastTransitionTime"` }
RouteIngressCondition contains details for the current condition of this pod. TODO: add LastTransitionTime, Reason, Message to match NodeCondition api.
func (*RouteIngressCondition) Marshal ¶ added in v1.3.0
func (m *RouteIngressCondition) Marshal() (data []byte, err error)
func (*RouteIngressCondition) MarshalTo ¶ added in v1.3.0
func (m *RouteIngressCondition) MarshalTo(data []byte) (int, error)
func (*RouteIngressCondition) ProtoMessage ¶ added in v1.3.0
func (*RouteIngressCondition) ProtoMessage()
func (*RouteIngressCondition) Reset ¶ added in v1.3.0
func (m *RouteIngressCondition) Reset()
func (*RouteIngressCondition) Size ¶ added in v1.3.0
func (m *RouteIngressCondition) Size() (n int)
func (*RouteIngressCondition) String ¶ added in v1.3.0
func (m *RouteIngressCondition) String() string
func (RouteIngressCondition) SwaggerDoc ¶ added in v1.1.4
func (RouteIngressCondition) SwaggerDoc() map[string]string
func (*RouteIngressCondition) Unmarshal ¶ added in v1.3.0
func (m *RouteIngressCondition) Unmarshal(data []byte) error
type RouteIngressConditionType ¶ added in v1.1.3
type RouteIngressConditionType string
RouteIngressConditionType is a valid value for RouteCondition
const ( // RouteAdmitted means the route is able to service requests for the provided Host RouteAdmitted RouteIngressConditionType = "Admitted" )
These are valid conditions of pod.
type RouteList ¶
type RouteList struct { unversioned.TypeMeta `json:",inline"` // Standard object's metadata. unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // Items is a list of routes Items []Route `json:"items" protobuf:"bytes,2,rep,name=items"` }
RouteList is a collection of Routes.
func (*RouteList) GetObjectKind ¶ added in v1.1.3
func (obj *RouteList) GetObjectKind() unversioned.ObjectKind
func (*RouteList) ProtoMessage ¶ added in v1.3.0
func (*RouteList) ProtoMessage()
func (RouteList) SwaggerDoc ¶ added in v1.1.4
type RoutePort ¶ added in v1.0.7
type RoutePort struct { // The target port on pods selected by the service this route points to. // If this is a string, it will be looked up as a named port in the target // endpoints port list. Required TargetPort intstr.IntOrString `json:"targetPort" protobuf:"bytes,1,opt,name=targetPort"` }
RoutePort defines a port mapping from a router to an endpoint in the service endpoints.
func (*RoutePort) ProtoMessage ¶ added in v1.3.0
func (*RoutePort) ProtoMessage()
func (RoutePort) SwaggerDoc ¶ added in v1.1.4
type RouteSpec ¶
type RouteSpec struct { // Host is an alias/DNS that points to the service. Optional // Must follow DNS952 subdomain conventions. Host string `json:"host" protobuf:"bytes,1,opt,name=host"` // Path that the router watches for, to route traffic for to the service. Optional Path string `json:"path,omitempty" protobuf:"bytes,2,opt,name=path"` // To is an object the route points to. Only the Service kind is allowed, and it will // be defaulted to Service. To RouteTargetReference `json:"to" protobuf:"bytes,3,opt,name=to"` // AlternateBackends is an extension of the 'to' field. If more than one service needs to be // pointed to, then use this field. Use the weight field in RouteTargetReference object // to specify relative preference AlternateBackends []RouteTargetReference `json:"alternateBackends,omitempty" protobuf:"bytes,4,rep,name=alternateBackends"` // If specified, the port to be used by the router. Most routers will use all // endpoints exposed by the service by default - set this value to instruct routers // which port to use. Port *RoutePort `json:"port,omitempty" protobuf:"bytes,5,opt,name=port"` // TLS provides the ability to configure certificates and termination for the route TLS *TLSConfig `json:"tls,omitempty" protobuf:"bytes,6,opt,name=tls"` }
RouteSpec describes the route the user wishes to exist.
func (*RouteSpec) ProtoMessage ¶ added in v1.3.0
func (*RouteSpec) ProtoMessage()
func (RouteSpec) SwaggerDoc ¶ added in v1.1.4
type RouteStatus ¶
type RouteStatus struct { // Ingress describes the places where the route may be exposed. The list of // ingress points may contain duplicate Host or RouterName values. Routes // are considered live once they are `Ready` Ingress []RouteIngress `json:"ingress" protobuf:"bytes,1,rep,name=ingress"` }
RouteStatus provides relevant info about the status of a route, including which routers acknowledge it.
func (*RouteStatus) Marshal ¶ added in v1.3.0
func (m *RouteStatus) Marshal() (data []byte, err error)
func (*RouteStatus) MarshalTo ¶ added in v1.3.0
func (m *RouteStatus) MarshalTo(data []byte) (int, error)
func (*RouteStatus) ProtoMessage ¶ added in v1.3.0
func (*RouteStatus) ProtoMessage()
func (*RouteStatus) Reset ¶ added in v1.3.0
func (m *RouteStatus) Reset()
func (*RouteStatus) Size ¶ added in v1.3.0
func (m *RouteStatus) Size() (n int)
func (*RouteStatus) String ¶ added in v1.3.0
func (m *RouteStatus) String() string
func (RouteStatus) SwaggerDoc ¶ added in v1.1.4
func (RouteStatus) SwaggerDoc() map[string]string
func (*RouteStatus) Unmarshal ¶ added in v1.3.0
func (m *RouteStatus) Unmarshal(data []byte) error
type RouteTargetReference ¶ added in v1.3.0
type RouteTargetReference struct { // The kind of target that the route is referring to. Currently, only 'Service' is allowed Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` // Name of the service/target that is being referred to. e.g. name of the service Name string `json:"name" protobuf:"bytes,2,opt,name=name"` // Weight as an integer between 1 and 256 that specifies the target's relative weight // against other target reference objects Weight *int32 `json:"weight" protobuf:"varint,3,opt,name=weight"` }
RouteTargetReference specifies the target that resolve into endpoints. Only the 'Service' kind is allowed. Use 'weight' field to emphasize one over others.
func (*RouteTargetReference) Marshal ¶ added in v1.3.0
func (m *RouteTargetReference) Marshal() (data []byte, err error)
func (*RouteTargetReference) MarshalTo ¶ added in v1.3.0
func (m *RouteTargetReference) MarshalTo(data []byte) (int, error)
func (*RouteTargetReference) ProtoMessage ¶ added in v1.3.0
func (*RouteTargetReference) ProtoMessage()
func (*RouteTargetReference) Reset ¶ added in v1.3.0
func (m *RouteTargetReference) Reset()
func (*RouteTargetReference) Size ¶ added in v1.3.0
func (m *RouteTargetReference) Size() (n int)
func (*RouteTargetReference) String ¶ added in v1.3.0
func (m *RouteTargetReference) String() string
func (RouteTargetReference) SwaggerDoc ¶ added in v1.3.0
func (RouteTargetReference) SwaggerDoc() map[string]string
func (*RouteTargetReference) Unmarshal ¶ added in v1.3.0
func (m *RouteTargetReference) Unmarshal(data []byte) error
type RouterShard ¶
type RouterShard struct { // ShardName uniquely identifies a router shard in the "set" of // routers used for routing traffic to the services. ShardName string `json:"shardName" protobuf:"bytes,1,opt,name=shardName"` // DNSSuffix for the shard ala: shard-1.v3.openshift.com DNSSuffix string `json:"dnsSuffix" protobuf:"bytes,2,opt,name=dnsSuffix"` }
RouterShard has information of a routing shard and is used to generate host names and routing table entries when a routing shard is allocated for a specific route. Caveat: This is WIP and will likely undergo modifications when sharding
support is added.
func (*RouterShard) Marshal ¶ added in v1.3.0
func (m *RouterShard) Marshal() (data []byte, err error)
func (*RouterShard) MarshalTo ¶ added in v1.3.0
func (m *RouterShard) MarshalTo(data []byte) (int, error)
func (*RouterShard) ProtoMessage ¶ added in v1.3.0
func (*RouterShard) ProtoMessage()
func (*RouterShard) Reset ¶ added in v1.3.0
func (m *RouterShard) Reset()
func (*RouterShard) Size ¶ added in v1.3.0
func (m *RouterShard) Size() (n int)
func (*RouterShard) String ¶ added in v1.3.0
func (m *RouterShard) String() string
func (RouterShard) SwaggerDoc ¶ added in v1.1.4
func (RouterShard) SwaggerDoc() map[string]string
func (*RouterShard) Unmarshal ¶ added in v1.3.0
func (m *RouterShard) Unmarshal(data []byte) error
type TLSConfig ¶
type TLSConfig struct { // Termination indicates termination type. Termination TLSTerminationType `json:"termination" protobuf:"bytes,1,opt,name=termination,casttype=TLSTerminationType"` // Certificate provides certificate contents Certificate string `json:"certificate,omitempty" protobuf:"bytes,2,opt,name=certificate"` // Key provides key file contents Key string `json:"key,omitempty" protobuf:"bytes,3,opt,name=key"` // CACertificate provides the cert authority certificate contents CACertificate string `json:"caCertificate,omitempty" protobuf:"bytes,4,opt,name=caCertificate"` // DestinationCACertificate provides the contents of the ca certificate of the final destination. When using reencrypt // termination this file should be provided in order to have routers use it for health checks on the secure connection DestinationCACertificate string `json:"destinationCACertificate,omitempty" protobuf:"bytes,5,opt,name=destinationCACertificate"` // InsecureEdgeTerminationPolicy indicates the desired behavior for // insecure connections to an edge-terminated route: // disable, allow or redirect InsecureEdgeTerminationPolicy InsecureEdgeTerminationPolicyType `` /* 147-byte string literal not displayed */ }
TLSConfig defines config used to secure a route and provide termination
func (*TLSConfig) ProtoMessage ¶ added in v1.3.0
func (*TLSConfig) ProtoMessage()
func (TLSConfig) SwaggerDoc ¶ added in v1.1.4
type TLSTerminationType ¶
type TLSTerminationType string
TLSTerminationType dictates where the secure communication will stop TODO: Reconsider this type in v2
const ( // TLSTerminationEdge terminate encryption at the edge router. TLSTerminationEdge TLSTerminationType = "edge" // TLSTerminationPassthrough terminate encryption at the destination, the destination is responsible for decrypting traffic TLSTerminationPassthrough TLSTerminationType = "passthrough" // TLSTerminationReencrypt terminate encryption at the edge router and re-encrypt it with a new certificate supplied by the destination TLSTerminationReencrypt TLSTerminationType = "reencrypt" )