v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the network v1alpha1 API group +kubebuilder:object:generate=true +groupName=network.kubesphere.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "network.kubesphere.io", 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 AddPaths

type AddPaths struct {
	// original -> bgp:send-max
	// The maximum number of paths to advertise to neighbors
	// for a single NLRI.
	SendMax uint8 `mapstructure:"send-max" json:"sendMax,omitempty"`
}

struct for container bgp:add-paths. Parameters relating to the advertisement and receipt of multiple paths for a single NLRI (add-paths).

func (*AddPaths) DeepCopy

func (in *AddPaths) DeepCopy() *AddPaths

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

func (*AddPaths) DeepCopyInto

func (in *AddPaths) DeepCopyInto(out *AddPaths)

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

type BgpConf

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

	Spec   BgpConfSpec   `json:"spec,omitempty"`
	Status BgpConfStatus `json:"status,omitempty"`
}

BgpConf is the Schema for the bgpconfs API

func (*BgpConf) DeepCopy

func (in *BgpConf) DeepCopy() *BgpConf

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

func (*BgpConf) DeepCopyInto

func (in *BgpConf) DeepCopyInto(out *BgpConf)

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

func (*BgpConf) DeepCopyObject

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

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

type BgpConfList

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

BgpConfList contains a list of BgpConf

func (*BgpConfList) DeepCopy

func (in *BgpConfList) DeepCopy() *BgpConfList

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

func (*BgpConfList) DeepCopyInto

func (in *BgpConfList) DeepCopyInto(out *BgpConfList)

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

func (*BgpConfList) DeepCopyObject

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

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

type BgpConfSpec

type BgpConfSpec struct {
	// original -> bgp:as
	// bgp:as's original type is inet:as-number.
	// Local autonomous system number of the router.  Uses
	// the 32-bit as-number type from the model in RFC 6991.
	As uint32 `mapstructure:"as" json:"as,required"`
	// original -> bgp:router-id
	// bgp:router-id's original type is inet:ipv4-address.
	// Router id of the router, expressed as an
	// 32-bit value, IPv4 address.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9]{1,3}\.){3}[0-9]{1,3}$`
	RouterId string `mapstructure:"router-id" json:"routerID,required"`
	// original -> gobgp:port
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	Port int32 `mapstructure:"port" json:"port,required"`
}

struct for container bgp:config. Configuration parameters relating to the global BGP router.

func (*BgpConfSpec) DeepCopy

func (in *BgpConfSpec) DeepCopy() *BgpConfSpec

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

func (*BgpConfSpec) DeepCopyInto

func (in *BgpConfSpec) DeepCopyInto(out *BgpConfSpec)

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

type BgpConfStatus

type BgpConfStatus struct {
}

BgpConfStatus defines the observed state of BgpConf

func (*BgpConfStatus) DeepCopy

func (in *BgpConfStatus) DeepCopy() *BgpConfStatus

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

func (*BgpConfStatus) DeepCopyInto

func (in *BgpConfStatus) DeepCopyInto(out *BgpConfStatus)

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

type BgpPeer

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

	Spec   BgpPeerSpec   `json:"spec,omitempty"`
	Status BgpPeerStatus `json:"status,omitempty"`
}

BgpPeer is the Schema for the bgppeers API

func (*BgpPeer) DeepCopy

func (in *BgpPeer) DeepCopy() *BgpPeer

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

func (*BgpPeer) DeepCopyInto

func (in *BgpPeer) DeepCopyInto(out *BgpPeer)

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

func (*BgpPeer) DeepCopyObject

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

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

type BgpPeerList

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

BgpPeerList contains a list of BgpPeer

func (*BgpPeerList) DeepCopy

func (in *BgpPeerList) DeepCopy() *BgpPeerList

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

func (*BgpPeerList) DeepCopyInto

func (in *BgpPeerList) DeepCopyInto(out *BgpPeerList)

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

func (*BgpPeerList) DeepCopyObject

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

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

type BgpPeerSpec

type BgpPeerSpec struct {
	// original -> bgp:neighbor-address
	// original -> bgp:neighbor-config
	// Configuration parameters relating to the BGP neighbor or
	// group.
	Config NeighborConfig `mapstructure:"config" json:"config,omitempty"`

	// original -> bgp:add-paths
	// Parameters relating to the advertisement and receipt of
	// multiple paths for a single NLRI (add-paths).
	AddPaths AddPaths `mapstructure:"add-paths" json:"addPaths,omitempty"`

	// original -> bgp:transport
	// Transport session parameters for the BGP neighbor or group.
	Transport Transport `mapstructure:"transport" json:"transport,omitempty"`

	UsingPortForward bool `json:"usingPortForward,omitempty" mapstructure:"using-port-forward"`
}

func (*BgpPeerSpec) DeepCopy

func (in *BgpPeerSpec) DeepCopy() *BgpPeerSpec

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

func (*BgpPeerSpec) DeepCopyInto

func (in *BgpPeerSpec) DeepCopyInto(out *BgpPeerSpec)

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

type BgpPeerStatus

type BgpPeerStatus struct {
}

BgpPeerStatus defines the observed state of BgpPeer

func (*BgpPeerStatus) DeepCopy

func (in *BgpPeerStatus) DeepCopy() *BgpPeerStatus

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

func (*BgpPeerStatus) DeepCopyInto

func (in *BgpPeerStatus) DeepCopyInto(out *BgpPeerStatus)

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

type Eip

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

	Spec   EipSpec   `json:"spec,omitempty"`
	Status EipStatus `json:"status,omitempty"`
}

Eip is the Schema for the eips API

func (*Eip) DeepCopy

func (in *Eip) DeepCopy() *Eip

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

func (*Eip) DeepCopyInto

func (in *Eip) DeepCopyInto(out *Eip)

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

func (*Eip) DeepCopyObject

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

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

type EipList

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

EipList contains a list of Eip

func (*EipList) DeepCopy

func (in *EipList) DeepCopy() *EipList

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

func (*EipList) DeepCopyInto

func (in *EipList) DeepCopyInto(out *EipList)

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

func (*EipList) DeepCopyObject

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

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

type EipSpec

type EipSpec struct {
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9]{1,3}\.){3}[0-9]{1,3}((\/([0-9]|[1-2][0-9]|3[0-2]))|(\-([0-9]{1,3}\.){3}[0-9]{1,3}))?$`
	Address string `json:"address,required"`
	// +kubebuilder:validation:Enum=bgp;layer2
	Protocol      string `json:"protocol,omitempty"`
	Disable       bool   `json:"disable,omitempty"`
	UsingKnownIPs bool   `json:"usingKnownIPs,omitempty"`
}

EipSpec defines the desired state of EIP

func (*EipSpec) DeepCopy

func (in *EipSpec) DeepCopy() *EipSpec

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

func (*EipSpec) DeepCopyInto

func (in *EipSpec) DeepCopyInto(out *EipSpec)

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

type EipStatus

type EipStatus struct {
	Occupied bool `json:"occupied,omitempty"`
	Usage    int  `json:"usage,omitempty"`
	PoolSize int  `json:"poolSize,omitempty"`
}

EipStatus defines the observed state of EIP

func (*EipStatus) DeepCopy

func (in *EipStatus) DeepCopy() *EipStatus

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

func (*EipStatus) DeepCopyInto

func (in *EipStatus) DeepCopyInto(out *EipStatus)

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

type NeighborConfig

type NeighborConfig struct {
	// original -> bgp:peer-as
	// bgp:peer-as's original type is inet:as-number.
	// AS number of the peer.
	PeerAs uint32 `mapstructure:"peer-as" json:"peerAs,required"`

	// original -> bgp:neighbor-address
	// bgp:neighbor-address's original type is inet:ip-address.
	// Address of the BGP peer, either in IPv4 or IPv6.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^([0-9]{1,3}\.){3}[0-9]{1,3}$`
	NeighborAddress string `mapstructure:"neighbor-address" json:"neighborAddress,required"`
}

struct for container bgp:config. Configuration parameters relating to the BGP neighbor or group.

func (*NeighborConfig) DeepCopy

func (in *NeighborConfig) DeepCopy() *NeighborConfig

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

func (*NeighborConfig) DeepCopyInto

func (in *NeighborConfig) DeepCopyInto(out *NeighborConfig)

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

type Transport

type Transport struct {
	// original -> bgp:passive-mode
	// bgp:passive-mode's original type is boolean.
	// Wait for peers to issue requests to open a BGP session,
	// rather than initiating sessions from the local router.
	PassiveMode bool `mapstructure:"passive-mode" json:"passiveMode,omitempty"`

	// original -> gobgp:remote-port
	// gobgp:remote-port's original type is inet:port-number.
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:Maximum=65535
	RemotePort uint16 `mapstructure:"remote-port" json:"remotePort,omitempty"`
}

struct for container bgp:transport. Transport session parameters for the BGP neighbor or group.

func (*Transport) DeepCopy

func (in *Transport) DeepCopy() *Transport

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

func (*Transport) DeepCopyInto

func (in *Transport) DeepCopyInto(out *Transport)

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