v1alpha1

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the meridio v1alpha1 API group

Index

Constants

View Source
const (
	NSMVlan = "nsm-vlan"
)
View Source
const (
	StatelessLB = "stateless-lb"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "meridio.nordix.org", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Attractor

type Attractor struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AttractorSpec   `json:"spec,omitempty"`
	Status AttractorStatus `json:"status,omitempty"`
}

Attractor is the Schema for the attractors API

func (*Attractor) DeepCopy

func (in *Attractor) DeepCopy() *Attractor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Attractor.

func (*Attractor) DeepCopyInto

func (in *Attractor) DeepCopyInto(out *Attractor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Attractor) DeepCopyObject

func (in *Attractor) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Attractor) Default

func (r *Attractor) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Attractor) GroupKind

func (r *Attractor) GroupKind() schema.GroupKind

func (*Attractor) GroupResource

func (r *Attractor) GroupResource() schema.GroupResource

func (*Attractor) SetupWebhookWithManager

func (r *Attractor) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Attractor) ValidateCreate

func (r *Attractor) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Attractor) ValidateDelete

func (r *Attractor) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Attractor) ValidateUpdate

func (r *Attractor) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type AttractorList

type AttractorList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Attractor `json:"items"`
}

AttractorList contains a list of Attractor

func (*AttractorList) DeepCopy

func (in *AttractorList) DeepCopy() *AttractorList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttractorList.

func (*AttractorList) DeepCopyInto

func (in *AttractorList) DeepCopyInto(out *AttractorList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AttractorList) DeepCopyObject

func (in *AttractorList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AttractorSpec

type AttractorSpec struct {
	// gateways that attractor expect to use
	// +optional
	Gateways []string `json:"gateways,omitempty"`

	// vips that attractor expect to use
	// +optional
	Vips []string `json:"vips,omitempty"`

	// defines the interface information that attractor use
	Interface InterfaceSpec `json:"interface"`
}

AttractorSpec defines the desired state of Attractor

func (*AttractorSpec) DeepCopy

func (in *AttractorSpec) DeepCopy() *AttractorSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttractorSpec.

func (*AttractorSpec) DeepCopyInto

func (in *AttractorSpec) DeepCopyInto(out *AttractorSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AttractorStatus

type AttractorStatus struct {
}

AttractorStatus defines the observed state of Attractor

func (*AttractorStatus) DeepCopy

func (in *AttractorStatus) DeepCopy() *AttractorStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AttractorStatus.

func (*AttractorStatus) DeepCopyInto

func (in *AttractorStatus) DeepCopyInto(out *AttractorStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BfdSpec

type BfdSpec struct {
	// BFD monitoring.
	// Valid values are:
	// - false (default): no BFD monitoring
	// - true: turns on the BFD monitoring
	// +optional
	Switch *bool `json:"switch,omitempty"`

	// min-tx timer of bfd session. Please refere to BFD material to understand what this implies.
	// The value must be a valid duration format. For example, 300ms, 90s, 1m, 1h.
	// The duration will be rounded by millisecond
	MinTx string `json:"min-tx,omitempty"`

	// min-rx timer of bfd session. Please refere to BFD material to understand what this implies.
	// The value must be a valid duration format. For example, 300ms, 90s, 1m, 1h.
	// The duration will be rounded by millisecond
	MinRx string `json:"min-rx,omitempty"`

	// multiplier of bfd session
	// when this number of bfd packets failed to receive, bfd session will go down
	Multiplier *uint16 `json:"multiplier,omitempty"`
}

Bfd defines the parameters to configure the BFD session The static gateways shares the same interface shall define the same bfd configuration

func (*BfdSpec) DeepCopy

func (in *BfdSpec) DeepCopy() *BfdSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BfdSpec.

func (*BfdSpec) DeepCopyInto

func (in *BfdSpec) DeepCopyInto(out *BfdSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type BgpSpec

type BgpSpec struct {
	// The ASN number of the Gateway
	RemoteASN *uint32 `json:"remote-asn,omitempty"`

	// The ASN number of the system where the FrontEnd locates
	LocalASN *uint32 `json:"local-asn,omitempty"`

	// BFD monitoring of BGP session.
	// +optional
	BFD BfdSpec `json:"bfd,omitempty"`

	// Hold timer of the BGP session. Please refere to BGP material to understand what this implies.
	// The value must be a valid duration format. For example, 90s, 1m, 1h.
	// The duration will be rounded by second
	// Minimum duration is 3s. Default: 240s
	// +optional
	HoldTime string `json:"hold-time,omitempty"`

	// BGP listening port of the gateway. Default 179
	// +optional
	RemotePort *uint16 `json:"remote-port,omitempty"`

	// BGP listening port of the frontend. Default 179
	// +optional
	LocalPort *uint16 `json:"local-port,omitempty"`
}

BgpSpec defines the parameters to set up a BGP session

func (*BgpSpec) DeepCopy

func (in *BgpSpec) DeepCopy() *BgpSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BgpSpec.

func (*BgpSpec) DeepCopyInto

func (in *BgpSpec) DeepCopyInto(out *BgpSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Conduit

type Conduit struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConduitSpec   `json:"spec,omitempty"`
	Status ConduitStatus `json:"status,omitempty"`
}

Conduit is the Schema for the conduits API

func (*Conduit) DeepCopy

func (in *Conduit) DeepCopy() *Conduit

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Conduit.

func (*Conduit) DeepCopyInto

func (in *Conduit) DeepCopyInto(out *Conduit)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Conduit) DeepCopyObject

func (in *Conduit) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Conduit) Default

func (r *Conduit) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Conduit) GroupKind

func (r *Conduit) GroupKind() schema.GroupKind

func (*Conduit) GroupResource

func (r *Conduit) GroupResource() schema.GroupResource

func (*Conduit) SetupWebhookWithManager

func (r *Conduit) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Conduit) ValidateCreate

func (r *Conduit) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Conduit) ValidateDelete

func (r *Conduit) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Conduit) ValidateUpdate

func (r *Conduit) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ConduitList

type ConduitList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Conduit `json:"items"`
}

ConduitList contains a list of Conduit

func (*ConduitList) DeepCopy

func (in *ConduitList) DeepCopy() *ConduitList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConduitList.

func (*ConduitList) DeepCopyInto

func (in *ConduitList) DeepCopyInto(out *ConduitList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConduitList) DeepCopyObject

func (in *ConduitList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ConduitSpec

type ConduitSpec struct {

	// replicas of the lb-fe deployment
	// +optional
	Replicas *int32 `json:"replicas,omitempty"`

	// Type is the type of network service for this conduit
	// +optional
	Type string `json:"type,omitempty"`
}

ConduitSpec defines the desired state of Conduit

func (*ConduitSpec) DeepCopy

func (in *ConduitSpec) DeepCopy() *ConduitSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConduitSpec.

func (*ConduitSpec) DeepCopyInto

func (in *ConduitSpec) DeepCopyInto(out *ConduitSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConduitStatus

type ConduitStatus struct {
}

ConduitStatus defines the observed state of Conduit

func (*ConduitStatus) DeepCopy

func (in *ConduitStatus) DeepCopy() *ConduitStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConduitStatus.

func (*ConduitStatus) DeepCopyInto

func (in *ConduitStatus) DeepCopyInto(out *ConduitStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConfigStatus

type ConfigStatus string

ConfigStatus describes the status of a meridio operator resource to indicate if the resource is ready to use or not

const (
	// Normally when a resouce is not processed by the corresponding controller, the status will be NoStatus
	NoPhase ConfigStatus = ""

	// If the validation of a resource does not pass in the controller, the status will be Error
	Error ConfigStatus = "error"

	// Normally when a resource is not created in a correct sequence, the status will be Disengaged
	Disengaged ConfigStatus = "disengaged"

	// Engaged indicates the resouce is readly to be used.
	Engaged ConfigStatus = "engaged"
)

type Flow

type Flow struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   FlowSpec   `json:"spec,omitempty"`
	Status FlowStatus `json:"status,omitempty"`
}

Flow is the Schema for the flows API

func (*Flow) DeepCopy

func (in *Flow) DeepCopy() *Flow

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Flow.

func (*Flow) DeepCopyInto

func (in *Flow) DeepCopyInto(out *Flow)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Flow) DeepCopyObject

func (in *Flow) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Flow) Default

func (r *Flow) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Flow) GroupKind

func (r *Flow) GroupKind() schema.GroupKind

func (*Flow) GroupResource

func (r *Flow) GroupResource() schema.GroupResource

func (*Flow) SetupWebhookWithManager

func (r *Flow) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Flow) ValidateCreate

func (r *Flow) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Flow) ValidateDelete

func (r *Flow) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Flow) ValidateUpdate

func (r *Flow) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type FlowList

type FlowList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Flow `json:"items"`
}

FlowList contains a list of Flow

func (*FlowList) DeepCopy

func (in *FlowList) DeepCopy() *FlowList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowList.

func (*FlowList) DeepCopyInto

func (in *FlowList) DeepCopyInto(out *FlowList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*FlowList) DeepCopyObject

func (in *FlowList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type FlowSpec

type FlowSpec struct {
	// Stream that this flow will sign up
	// +optional
	Stream string `json:"stream,omitempty"`

	// Vips that this flow will send traffic to
	// The vips should not have overlapping
	Vips []string `json:"vips"`

	// Source subnets allowed in the flow
	// The subnets should not have overlapping
	SourceSubnets []string `json:"source-subnets"`

	// Source port ranges allowed in the flow
	// The ports should not have overlapping
	// Ports can be defined by:
	//  - a single port, such as 3000
	//  - a port range, such as 3000-4000
	//  - "any", which is equivalent to port range 0-65535
	SourcePorts []string `json:"source-ports"`

	// Destination port ranges allowed in the flow
	// The ports should not have overlapping
	// Ports can be defined by:
	//  - a single port, such as 3000
	//  - a port range, such as 3000-4000
	//  - "any", which is equivalent to port range 0-65535
	DestinationPorts []string `json:"destination-ports"`

	// Protocols allowed in this flow
	// The protocols should not have overlapping
	Protocols []string `json:"protocols"`

	// Priority of the flow
	Priority int32 `json:"priority"`
}

FlowSpec defines the desired state of Flow

func (*FlowSpec) DeepCopy

func (in *FlowSpec) DeepCopy() *FlowSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowSpec.

func (*FlowSpec) DeepCopyInto

func (in *FlowSpec) DeepCopyInto(out *FlowSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FlowStatus

type FlowStatus struct {
}

FlowStatus defines the observed state of Flow

func (*FlowStatus) DeepCopy

func (in *FlowStatus) DeepCopy() *FlowStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlowStatus.

func (*FlowStatus) DeepCopyInto

func (in *FlowStatus) DeepCopyInto(out *FlowStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Gateway

type Gateway struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GatewaySpec   `json:"spec,omitempty"`
	Status GatewayStatus `json:"status,omitempty"`
}

Gateway is the Schema for the gateways API

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway.

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Gateway) DeepCopyObject

func (in *Gateway) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Gateway) Default

func (r *Gateway) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Gateway) GroupKind

func (r *Gateway) GroupKind() schema.GroupKind

func (*Gateway) GroupResource

func (r *Gateway) GroupResource() schema.GroupResource

func (*Gateway) SetupWebhookWithManager

func (r *Gateway) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Gateway) ValidateCreate

func (r *Gateway) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Gateway) ValidateDelete

func (r *Gateway) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Gateway) ValidateUpdate

func (r *Gateway) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type GatewayList

type GatewayList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Gateway `json:"items"`
}

GatewayList contains a list of Gateway

func (*GatewayList) DeepCopy

func (in *GatewayList) DeepCopy() *GatewayList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayList.

func (*GatewayList) DeepCopyInto

func (in *GatewayList) DeepCopyInto(out *GatewayList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GatewayList) DeepCopyObject

func (in *GatewayList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GatewaySpec

type GatewaySpec struct {
	// Address of the Edge Router
	Address string `json:"address"`

	// The routing choice between the gateway and frontend
	// +optional
	Protocol string `json:"protocol,omitempty"`

	// Parameters to set up the BGP session to specified Address.
	// If the Protocol is static, this property must be empty.
	// If the Protocol is bgp, the minimal parameters to be defined in BgpSpec are RemoteASN and LocalASN.
	// +optional
	Bgp BgpSpec `json:"bgp,omitempty"`

	// Parameters to work with the static routing configured on the Edge Router with specified Address
	// If the Protocol is bgp, this property must be empty.
	// +optional
	Static StaticSpec `json:"static,omitempty"`
}

GatewaySpec defines the desired state of Gateway

func (*GatewaySpec) DeepCopy

func (in *GatewaySpec) DeepCopy() *GatewaySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewaySpec.

func (*GatewaySpec) DeepCopyInto

func (in *GatewaySpec) DeepCopyInto(out *GatewaySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GatewayStatus

type GatewayStatus struct {
}

GatewayStatus defines the observed state of Gateway

func (*GatewayStatus) DeepCopy

func (in *GatewayStatus) DeepCopy() *GatewayStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GatewayStatus.

func (*GatewayStatus) DeepCopyInto

func (in *GatewayStatus) DeepCopyInto(out *GatewayStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IPFamily

type IPFamily string

IPFamily describes the traffic type in the trench Only one of the following ip family can be specified. If the traffic is IPv4 only, use IPv4, similarly, use IPv6 if the traffic is IPv6 only, otherwise, use dualstack which handles both IPv4 and IPv6 traffic.

const (
	IPv4      IPFamily = "ipv4"
	IPv6      IPFamily = "ipv6"
	Dualstack IPFamily = "dualstack"
)

func (IPFamily) IsValid

func (f IPFamily) IsValid() bool

IsValid returns true if the receiver is a valid ipFamily type

type InterfaceSpec

type InterfaceSpec struct {
	// name of the interface
	Name string `json:"name"`

	// (immutable) ipv4 prefix of the vlan interface, which is used for frontend to set up communication with the ipv4 gateways
	PrefixIPv4 string `json:"ipv4-prefix"`

	// (immutable) ipv6 prefix of the vlan interface, which is used for frontend to set up communication with the ipv6 gateways
	PrefixIPv6 string `json:"ipv6-prefix"`

	// interface choice. Supported choice: "nsm-vlan"
	Type string `json:"type"`

	// if the type is "nsm-vlan", this information must be specified
	NSMVlan NSMVlanSpec `json:"nsm-vlan,omitempty"`
}

func (*InterfaceSpec) DeepCopy

func (in *InterfaceSpec) DeepCopy() *InterfaceSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceSpec.

func (*InterfaceSpec) DeepCopyInto

func (in *InterfaceSpec) DeepCopyInto(out *InterfaceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InterfaceType

type InterfaceType string

func (InterfaceType) IsValid

func (i InterfaceType) IsValid() bool

type NSMVlanSpec

type NSMVlanSpec struct {
	// (immutable) master interface of the vlan interface to be used for external connectivity
	BaseInterface string `json:"base-interface,omitempty"`

	// (immutable) vlan ID of the vlan interface to be used for external connectivity
	VlanID *int32 `json:"vlan-id,omitempty"`
}

func (*NSMVlanSpec) DeepCopy

func (in *NSMVlanSpec) DeepCopy() *NSMVlanSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NSMVlanSpec.

func (*NSMVlanSpec) DeepCopyInto

func (in *NSMVlanSpec) DeepCopyInto(out *NSMVlanSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NetworkServiceType

type NetworkServiceType string

func (NetworkServiceType) IsValid

func (t NetworkServiceType) IsValid() bool

IsValid returns true if the receiver is a valid network service type

type Ports

type Ports struct {
	Start uint64
	End   uint64
}

func NewPort

func NewPort(start, end uint64) (Ports, error)

func NewPortFromString

func NewPortFromString(start, end string) (Ports, error)

func (*Ports) DeepCopy

func (in *Ports) DeepCopy() *Ports

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ports.

func (*Ports) DeepCopyInto

func (in *Ports) DeepCopyInto(out *Ports)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Protocol

type Protocol string

Protocol describes the routing choice of the frontend

const (
	// Static instructs the frontend to work with the static routing configured on the Edge Routers
	Static Protocol = "static"

	// BGP instructs the frontend to setup BGP sessions with the Edge Routers
	BGP Protocol = "bgp"
)

func (Protocol) IsValid

func (p Protocol) IsValid() bool

IsValid returns true if the receiver is a valid ipFamily type

type StaticSpec

type StaticSpec struct {
	// BFD monitoring of Static session.
	// +optional
	BFD BfdSpec `json:"bfd,omitempty"`
}

StaticSpec defines the parameters to set up static routes

func (*StaticSpec) DeepCopy

func (in *StaticSpec) DeepCopy() *StaticSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StaticSpec.

func (*StaticSpec) DeepCopyInto

func (in *StaticSpec) DeepCopyInto(out *StaticSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Stream

type Stream struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StreamSpec   `json:"spec,omitempty"`
	Status StreamStatus `json:"status,omitempty"`
}

Stream is the Schema for the streams API

func (*Stream) DeepCopy

func (in *Stream) DeepCopy() *Stream

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stream.

func (*Stream) DeepCopyInto

func (in *Stream) DeepCopyInto(out *Stream)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Stream) DeepCopyObject

func (in *Stream) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Stream) Default

func (r *Stream) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Stream) GroupKind

func (r *Stream) GroupKind() schema.GroupKind

func (*Stream) GroupResource

func (r *Stream) GroupResource() schema.GroupResource

func (*Stream) SetupWebhookWithManager

func (r *Stream) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Stream) ValidateCreate

func (r *Stream) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Stream) ValidateDelete

func (r *Stream) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Stream) ValidateUpdate

func (r *Stream) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type StreamList

type StreamList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Stream `json:"items"`
}

StreamList contains a list of Stream

func (*StreamList) DeepCopy

func (in *StreamList) DeepCopy() *StreamList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StreamList.

func (*StreamList) DeepCopyInto

func (in *StreamList) DeepCopyInto(out *StreamList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StreamList) DeepCopyObject

func (in *StreamList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StreamSpec

type StreamSpec struct {
	// The conduit that this stream sign up for
	// +optional
	Conduit string `json:"conduit,omitempty"`
}

StreamSpec defines the desired state of Stream

func (*StreamSpec) DeepCopy

func (in *StreamSpec) DeepCopy() *StreamSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StreamSpec.

func (*StreamSpec) DeepCopyInto

func (in *StreamSpec) DeepCopyInto(out *StreamSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StreamStatus

type StreamStatus struct {
}

StreamStatus defines the observed state of Stream

func (*StreamStatus) DeepCopy

func (in *StreamStatus) DeepCopy() *StreamStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StreamStatus.

func (*StreamStatus) DeepCopyInto

func (in *StreamStatus) DeepCopyInto(out *StreamStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TransportProtocol

type TransportProtocol string
const (
	TCP TransportProtocol = "tcp"
	UDP TransportProtocol = "udp"
)

func (TransportProtocol) IsValid

func (p TransportProtocol) IsValid() bool

IsValid returns true if the receiver is a valid TransportProtocol type

type Trench

type Trench struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TrenchSpec   `json:"spec,omitempty"`
	Status TrenchStatus `json:"status,omitempty"`
}

Trench is the Schema for the trenches API

func (*Trench) DeepCopy

func (in *Trench) DeepCopy() *Trench

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trench.

func (*Trench) DeepCopyInto

func (in *Trench) DeepCopyInto(out *Trench)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Trench) DeepCopyObject

func (in *Trench) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Trench) Default

func (r *Trench) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Trench) GroupKind

func (r *Trench) GroupKind() schema.GroupKind

func (*Trench) GroupResource

func (r *Trench) GroupResource() schema.GroupResource

func (*Trench) SetupWebhookWithManager

func (r *Trench) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Trench) ValidateCreate

func (r *Trench) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Trench) ValidateDelete

func (r *Trench) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Trench) ValidateUpdate

func (r *Trench) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type TrenchList

type TrenchList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Trench `json:"items"`
}

TrenchList contains a list of Trench

func (*TrenchList) DeepCopy

func (in *TrenchList) DeepCopy() *TrenchList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrenchList.

func (*TrenchList) DeepCopyInto

func (in *TrenchList) DeepCopyInto(out *TrenchList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TrenchList) DeepCopyObject

func (in *TrenchList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TrenchSpec

type TrenchSpec struct {

	// Defines the IP family of the trench. It should be set according to what type of traffic is expected in the trench.
	// Valid values:
	// - dualstack (default)
	// - ipv4
	// - ipv6
	// +optional
	IPFamily string `json:"ip-family,omitempty"`
}

TrenchSpec defines the desired state of Trench

func (*TrenchSpec) DeepCopy

func (in *TrenchSpec) DeepCopy() *TrenchSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrenchSpec.

func (*TrenchSpec) DeepCopyInto

func (in *TrenchSpec) DeepCopyInto(out *TrenchSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TrenchStatus

type TrenchStatus struct {
}

TrenchStatus defines the observed state of Trench

func (*TrenchStatus) DeepCopy

func (in *TrenchStatus) DeepCopy() *TrenchStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrenchStatus.

func (*TrenchStatus) DeepCopyInto

func (in *TrenchStatus) DeepCopyInto(out *TrenchStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Vip

type Vip struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VipSpec   `json:"spec,omitempty"`
	Status VipStatus `json:"status,omitempty"`
}

Vip is the Schema for the vips API

func (*Vip) DeepCopy

func (in *Vip) DeepCopy() *Vip

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vip.

func (*Vip) DeepCopyInto

func (in *Vip) DeepCopyInto(out *Vip)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Vip) DeepCopyObject

func (in *Vip) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Vip) GroupKind

func (r *Vip) GroupKind() schema.GroupKind

func (*Vip) GroupResource

func (r *Vip) GroupResource() schema.GroupResource

func (*Vip) SetupWebhookWithManager

func (r *Vip) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Vip) ValidateCreate

func (r *Vip) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Vip) ValidateDelete

func (r *Vip) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Vip) ValidateUpdate

func (r *Vip) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type VipList

type VipList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Vip `json:"items"`
}

VipList contains a list of Vip

func (*VipList) DeepCopy

func (in *VipList) DeepCopy() *VipList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VipList.

func (*VipList) DeepCopyInto

func (in *VipList) DeepCopyInto(out *VipList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VipList) DeepCopyObject

func (in *VipList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VipSpec

type VipSpec struct {
	// vip address
	// +optional
	Address string `json:"address,omitempty"`
}

VipSpec defines the desired state of Vip

func (*VipSpec) DeepCopy

func (in *VipSpec) DeepCopy() *VipSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VipSpec.

func (*VipSpec) DeepCopyInto

func (in *VipSpec) DeepCopyInto(out *VipSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VipStatus

type VipStatus struct {
}

VipStatus defines the observed state of Vip

func (*VipStatus) DeepCopy

func (in *VipStatus) DeepCopy() *VipStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VipStatus.

func (*VipStatus) DeepCopyInto

func (in *VipStatus) DeepCopyInto(out *VipStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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