v1

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2016 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const GroupName = ""

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)
View Source
var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme)

func Convert_api_RouteIngressCondition_To_v1_RouteIngressCondition

func Convert_api_RouteIngressCondition_To_v1_RouteIngressCondition(in *route_api.RouteIngressCondition, out *RouteIngressCondition, s conversion.Scope) error

func Convert_api_RouteIngress_To_v1_RouteIngress

func Convert_api_RouteIngress_To_v1_RouteIngress(in *route_api.RouteIngress, out *RouteIngress, s conversion.Scope) error

func Convert_api_RouteList_To_v1_RouteList

func Convert_api_RouteList_To_v1_RouteList(in *route_api.RouteList, out *RouteList, s conversion.Scope) error

func Convert_api_RoutePort_To_v1_RoutePort

func Convert_api_RoutePort_To_v1_RoutePort(in *route_api.RoutePort, out *RoutePort, s conversion.Scope) error

func Convert_api_RouteSpec_To_v1_RouteSpec

func Convert_api_RouteSpec_To_v1_RouteSpec(in *route_api.RouteSpec, out *RouteSpec, s conversion.Scope) error

func Convert_api_RouteStatus_To_v1_RouteStatus

func Convert_api_RouteStatus_To_v1_RouteStatus(in *route_api.RouteStatus, out *RouteStatus, s conversion.Scope) error

func Convert_api_RouteTargetReference_To_v1_RouteTargetReference

func Convert_api_RouteTargetReference_To_v1_RouteTargetReference(in *route_api.RouteTargetReference, out *RouteTargetReference, s conversion.Scope) error

func Convert_api_Route_To_v1_Route

func Convert_api_Route_To_v1_Route(in *route_api.Route, out *Route, s conversion.Scope) error

func Convert_api_RouterShard_To_v1_RouterShard

func Convert_api_RouterShard_To_v1_RouterShard(in *route_api.RouterShard, out *RouterShard, s conversion.Scope) error

func Convert_api_TLSConfig_To_v1_TLSConfig

func Convert_api_TLSConfig_To_v1_TLSConfig(in *route_api.TLSConfig, out *TLSConfig, s conversion.Scope) error

func Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition

func Convert_v1_RouteIngressCondition_To_api_RouteIngressCondition(in *RouteIngressCondition, out *route_api.RouteIngressCondition, s conversion.Scope) error

func Convert_v1_RouteIngress_To_api_RouteIngress

func Convert_v1_RouteIngress_To_api_RouteIngress(in *RouteIngress, out *route_api.RouteIngress, s conversion.Scope) error

func Convert_v1_RouteList_To_api_RouteList

func Convert_v1_RouteList_To_api_RouteList(in *RouteList, out *route_api.RouteList, s conversion.Scope) error

func Convert_v1_RoutePort_To_api_RoutePort

func Convert_v1_RoutePort_To_api_RoutePort(in *RoutePort, out *route_api.RoutePort, s conversion.Scope) error

func Convert_v1_RouteSpec_To_api_RouteSpec

func Convert_v1_RouteSpec_To_api_RouteSpec(in *RouteSpec, out *route_api.RouteSpec, s conversion.Scope) error

func Convert_v1_RouteStatus_To_api_RouteStatus

func Convert_v1_RouteStatus_To_api_RouteStatus(in *RouteStatus, out *route_api.RouteStatus, s conversion.Scope) error

func Convert_v1_RouteTargetReference_To_api_RouteTargetReference

func Convert_v1_RouteTargetReference_To_api_RouteTargetReference(in *RouteTargetReference, out *route_api.RouteTargetReference, s conversion.Scope) error

func Convert_v1_Route_To_api_Route

func Convert_v1_Route_To_api_Route(in *Route, out *route_api.Route, s conversion.Scope) error

func Convert_v1_RouterShard_To_api_RouterShard

func Convert_v1_RouterShard_To_api_RouterShard(in *RouterShard, out *route_api.RouterShard, s conversion.Scope) error

func Convert_v1_TLSConfig_To_api_TLSConfig

func Convert_v1_TLSConfig_To_api_TLSConfig(in *TLSConfig, out *route_api.TLSConfig, s conversion.Scope) error

func DeepCopy_v1_Route

func DeepCopy_v1_Route(in Route, out *Route, c *conversion.Cloner) error

func DeepCopy_v1_RouteIngress

func DeepCopy_v1_RouteIngress(in RouteIngress, out *RouteIngress, c *conversion.Cloner) error

func DeepCopy_v1_RouteIngressCondition

func DeepCopy_v1_RouteIngressCondition(in RouteIngressCondition, out *RouteIngressCondition, c *conversion.Cloner) error

func DeepCopy_v1_RouteList

func DeepCopy_v1_RouteList(in RouteList, out *RouteList, c *conversion.Cloner) error

func DeepCopy_v1_RoutePort

func DeepCopy_v1_RoutePort(in RoutePort, out *RoutePort, c *conversion.Cloner) error

func DeepCopy_v1_RouteSpec

func DeepCopy_v1_RouteSpec(in RouteSpec, out *RouteSpec, c *conversion.Cloner) error

func DeepCopy_v1_RouteStatus

func DeepCopy_v1_RouteStatus(in RouteStatus, out *RouteStatus, c *conversion.Cloner) error

func DeepCopy_v1_RouteTargetReference

func DeepCopy_v1_RouteTargetReference(in RouteTargetReference, out *RouteTargetReference, c *conversion.Cloner) error

func DeepCopy_v1_RouterShard

func DeepCopy_v1_RouterShard(in RouterShard, out *RouterShard, c *conversion.Cloner) error

func DeepCopy_v1_TLSConfig

func DeepCopy_v1_TLSConfig(in TLSConfig, out *TLSConfig, c *conversion.Cloner) error

func SetDefaults_RouteTargetReference

func SetDefaults_RouteTargetReference(obj *RouteTargetReference)

func SetDefaults_TLSConfig

func SetDefaults_TLSConfig(obj *TLSConfig)

Types

type InsecureEdgeTerminationPolicyType

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

func (obj *Route) GetObjectKind() unversioned.ObjectKind

func (*Route) Marshal

func (m *Route) Marshal() (data []byte, err error)

func (*Route) MarshalTo

func (m *Route) MarshalTo(data []byte) (int, error)

func (*Route) ProtoMessage

func (*Route) ProtoMessage()

func (*Route) Reset

func (m *Route) Reset()

func (*Route) Size

func (m *Route) Size() (n int)

func (*Route) String

func (m *Route) String() string

func (Route) SwaggerDoc

func (Route) SwaggerDoc() map[string]string

func (*Route) Unmarshal

func (m *Route) Unmarshal(data []byte) error

type RouteIngress

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

func (m *RouteIngress) Marshal() (data []byte, err error)

func (*RouteIngress) MarshalTo

func (m *RouteIngress) MarshalTo(data []byte) (int, error)

func (*RouteIngress) ProtoMessage

func (*RouteIngress) ProtoMessage()

func (*RouteIngress) Reset

func (m *RouteIngress) Reset()

func (*RouteIngress) Size

func (m *RouteIngress) Size() (n int)

func (*RouteIngress) String

func (m *RouteIngress) String() string

func (RouteIngress) SwaggerDoc

func (RouteIngress) SwaggerDoc() map[string]string

func (*RouteIngress) Unmarshal

func (m *RouteIngress) Unmarshal(data []byte) error

type RouteIngressCondition

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

func (m *RouteIngressCondition) Marshal() (data []byte, err error)

func (*RouteIngressCondition) MarshalTo

func (m *RouteIngressCondition) MarshalTo(data []byte) (int, error)

func (*RouteIngressCondition) ProtoMessage

func (*RouteIngressCondition) ProtoMessage()

func (*RouteIngressCondition) Reset

func (m *RouteIngressCondition) Reset()

func (*RouteIngressCondition) Size

func (m *RouteIngressCondition) Size() (n int)

func (*RouteIngressCondition) String

func (m *RouteIngressCondition) String() string

func (RouteIngressCondition) SwaggerDoc

func (RouteIngressCondition) SwaggerDoc() map[string]string

func (*RouteIngressCondition) Unmarshal

func (m *RouteIngressCondition) Unmarshal(data []byte) error

type RouteIngressConditionType

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

func (obj *RouteList) GetObjectKind() unversioned.ObjectKind

func (*RouteList) Marshal

func (m *RouteList) Marshal() (data []byte, err error)

func (*RouteList) MarshalTo

func (m *RouteList) MarshalTo(data []byte) (int, error)

func (*RouteList) ProtoMessage

func (*RouteList) ProtoMessage()

func (*RouteList) Reset

func (m *RouteList) Reset()

func (*RouteList) Size

func (m *RouteList) Size() (n int)

func (*RouteList) String

func (m *RouteList) String() string

func (RouteList) SwaggerDoc

func (RouteList) SwaggerDoc() map[string]string

func (*RouteList) Unmarshal

func (m *RouteList) Unmarshal(data []byte) error

type RoutePort

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) Marshal

func (m *RoutePort) Marshal() (data []byte, err error)

func (*RoutePort) MarshalTo

func (m *RoutePort) MarshalTo(data []byte) (int, error)

func (*RoutePort) ProtoMessage

func (*RoutePort) ProtoMessage()

func (*RoutePort) Reset

func (m *RoutePort) Reset()

func (*RoutePort) Size

func (m *RoutePort) Size() (n int)

func (*RoutePort) String

func (m *RoutePort) String() string

func (RoutePort) SwaggerDoc

func (RoutePort) SwaggerDoc() map[string]string

func (*RoutePort) Unmarshal

func (m *RoutePort) Unmarshal(data []byte) error

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) Marshal

func (m *RouteSpec) Marshal() (data []byte, err error)

func (*RouteSpec) MarshalTo

func (m *RouteSpec) MarshalTo(data []byte) (int, error)

func (*RouteSpec) ProtoMessage

func (*RouteSpec) ProtoMessage()

func (*RouteSpec) Reset

func (m *RouteSpec) Reset()

func (*RouteSpec) Size

func (m *RouteSpec) Size() (n int)

func (*RouteSpec) String

func (m *RouteSpec) String() string

func (RouteSpec) SwaggerDoc

func (RouteSpec) SwaggerDoc() map[string]string

func (*RouteSpec) Unmarshal

func (m *RouteSpec) Unmarshal(data []byte) error

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

func (m *RouteStatus) Marshal() (data []byte, err error)

func (*RouteStatus) MarshalTo

func (m *RouteStatus) MarshalTo(data []byte) (int, error)

func (*RouteStatus) ProtoMessage

func (*RouteStatus) ProtoMessage()

func (*RouteStatus) Reset

func (m *RouteStatus) Reset()

func (*RouteStatus) Size

func (m *RouteStatus) Size() (n int)

func (*RouteStatus) String

func (m *RouteStatus) String() string

func (RouteStatus) SwaggerDoc

func (RouteStatus) SwaggerDoc() map[string]string

func (*RouteStatus) Unmarshal

func (m *RouteStatus) Unmarshal(data []byte) error

type RouteTargetReference

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

func (m *RouteTargetReference) Marshal() (data []byte, err error)

func (*RouteTargetReference) MarshalTo

func (m *RouteTargetReference) MarshalTo(data []byte) (int, error)

func (*RouteTargetReference) ProtoMessage

func (*RouteTargetReference) ProtoMessage()

func (*RouteTargetReference) Reset

func (m *RouteTargetReference) Reset()

func (*RouteTargetReference) Size

func (m *RouteTargetReference) Size() (n int)

func (*RouteTargetReference) String

func (m *RouteTargetReference) String() string

func (RouteTargetReference) SwaggerDoc

func (RouteTargetReference) SwaggerDoc() map[string]string

func (*RouteTargetReference) Unmarshal

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

func (m *RouterShard) Marshal() (data []byte, err error)

func (*RouterShard) MarshalTo

func (m *RouterShard) MarshalTo(data []byte) (int, error)

func (*RouterShard) ProtoMessage

func (*RouterShard) ProtoMessage()

func (*RouterShard) Reset

func (m *RouterShard) Reset()

func (*RouterShard) Size

func (m *RouterShard) Size() (n int)

func (*RouterShard) String

func (m *RouterShard) String() string

func (RouterShard) SwaggerDoc

func (RouterShard) SwaggerDoc() map[string]string

func (*RouterShard) Unmarshal

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) Marshal

func (m *TLSConfig) Marshal() (data []byte, err error)

func (*TLSConfig) MarshalTo

func (m *TLSConfig) MarshalTo(data []byte) (int, error)

func (*TLSConfig) ProtoMessage

func (*TLSConfig) ProtoMessage()

func (*TLSConfig) Reset

func (m *TLSConfig) Reset()

func (*TLSConfig) Size

func (m *TLSConfig) Size() (n int)

func (*TLSConfig) String

func (m *TLSConfig) String() string

func (TLSConfig) SwaggerDoc

func (TLSConfig) SwaggerDoc() map[string]string

func (*TLSConfig) Unmarshal

func (m *TLSConfig) Unmarshal(data []byte) error

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL