v1

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolIPv4 = "IPv4"
	ProtocolIPv6 = "IPv6"
	ProtocolDual = "Dual"

	GWDistributedType = "distributed"
	GWCentralizedType = "centralized"
)
View Source
const (
	// Ready => controller considers this resource Ready
	Ready = "Ready"
	// Validated => Spec passed validating
	Validated = "Validated"
	// Error => last recorded error
	Error = "Error"

	ReasonInit = "Init"
)

Constants for condition

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kubeovn.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ConditionType added in v0.7.0

type ConditionType string

ConditionType encodes information on the condition

type IP

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

	Spec IPSpec `json:"spec"`
}

func (*IP) DeepCopy

func (in *IP) DeepCopy() *IP

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

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

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

func (*IP) DeepCopyObject

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

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

type IPList

type IPList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []IP `json:"items"`
}

func (*IPList) DeepCopy

func (in *IPList) DeepCopy() *IPList

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

func (*IPList) DeepCopyInto

func (in *IPList) DeepCopyInto(out *IPList)

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

func (*IPList) DeepCopyObject

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

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

type IPSpec

type IPSpec struct {
	PodName       string   `json:"podName"`
	Namespace     string   `json:"namespace"`
	Subnet        string   `json:"subnet"`
	AttachSubnets []string `json:"attachSubnets"`
	NodeName      string   `json:"nodeName"`
	IPAddress     string   `json:"ipAddress"`
	V4IPAddress   string   `json:"v4IpAddress"`
	V6IPAddress   string   `json:"v6IpAddress"`
	AttachIPs     []string `json:"attachIps"`
	MacAddress    string   `json:"macAddress"`
	AttachMacs    []string `json:"attachMacs"`
	ContainerID   string   `json:"containerID"`
}

func (*IPSpec) DeepCopy

func (in *IPSpec) DeepCopy() *IPSpec

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

func (*IPSpec) DeepCopyInto

func (in *IPSpec) DeepCopyInto(out *IPSpec)

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

type RoutePolicy added in v1.6.0

type RoutePolicy string
const (
	PolicySrc RoutePolicy = "policySrc"
	PolicyDst RoutePolicy = "policyDst"
)

type StaticRoute added in v1.6.0

type StaticRoute struct {
	Policy    RoutePolicy `json:"policy,omitempty"`
	CIDR      string      `json:"cidr"`
	NextHopIP string      `json:"nextHopIP"`
}

func (*StaticRoute) DeepCopy added in v1.6.0

func (in *StaticRoute) DeepCopy() *StaticRoute

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

func (*StaticRoute) DeepCopyInto added in v1.6.0

func (in *StaticRoute) DeepCopyInto(out *StaticRoute)

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

type Subnet

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

	Spec   SubnetSpec   `json:"spec"`
	Status SubnetStatus `json:"status,omitempty"`
}

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

func (*Subnet) DeepCopyObject

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

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

type SubnetCondition added in v0.7.0

type SubnetCondition struct {
	// Type of condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty"`
	// Last time the condition was probed
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true

func (*SubnetCondition) DeepCopy added in v0.7.0

func (in *SubnetCondition) DeepCopy() *SubnetCondition

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

func (*SubnetCondition) DeepCopyInto added in v0.7.0

func (in *SubnetCondition) DeepCopyInto(out *SubnetCondition)

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

type SubnetList

type SubnetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Subnet `json:"items"`
}

func (*SubnetList) DeepCopy

func (in *SubnetList) DeepCopy() *SubnetList

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

func (*SubnetList) DeepCopyInto

func (in *SubnetList) DeepCopyInto(out *SubnetList)

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

func (*SubnetList) DeepCopyObject

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

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

type SubnetSpec

type SubnetSpec struct {
	Default    bool     `json:"default"`
	Vpc        string   `json:"vpc,omitempty"`
	Protocol   string   `json:"protocol"`
	Namespaces []string `json:"namespaces,omitempty"`
	CIDRBlock  string   `json:"cidrBlock"`
	Gateway    string   `json:"gateway"`
	ExcludeIps []string `json:"excludeIps,omitempty"`
	Provider   string   `json:"provider,omitempty"`

	GatewayType string `json:"gatewayType"`
	GatewayNode string `json:"gatewayNode"`
	NatOutgoing bool   `json:"natOutgoing"`

	Private      bool     `json:"private"`
	AllowSubnets []string `json:"allowSubnets,omitempty"`

	Vlan            string `json:"vlan,omitempty"`
	UnderlayGateway bool   `json:"underlayGateway"`

	DisableInterConnection bool `json:"disableInterConnection"`
}

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

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

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

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

type SubnetStatus added in v0.7.0

type SubnetStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []SubnetCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	AvailableIPs    float64 `json:"availableIPs"`
	UsingIPs        float64 `json:"usingIPs"`
	V4AvailableIPs  float64 `json:"v4availableIPs"`
	V4UsingIPs      float64 `json:"v4usingIPs"`
	V6AvailableIPs  float64 `json:"v6availableIPs"`
	V6UsingIPs      float64 `json:"v6usingIPs"`
	ActivateGateway string  `json:"activateGateway"`
}

func (*SubnetStatus) Bytes added in v0.7.0

func (ss *SubnetStatus) Bytes() ([]byte, error)

func (*SubnetStatus) ClearAllConditions added in v0.7.0

func (m *SubnetStatus) ClearAllConditions()

ClearAllConditions updates or creates a new condition

func (*SubnetStatus) ClearCondition added in v0.7.0

func (m *SubnetStatus) ClearCondition(ctype ConditionType, reason, message string)

ClearCondition updates or creates a new condition

func (*SubnetStatus) ClearError added in v0.7.0

func (m *SubnetStatus) ClearError()

ClearError - shortcut to set error condition

func (*SubnetStatus) ConditionReason added in v0.7.0

func (m *SubnetStatus) ConditionReason(ctype ConditionType) string

ConditionReason - return condition reason

func (*SubnetStatus) DeepCopy added in v0.7.0

func (in *SubnetStatus) DeepCopy() *SubnetStatus

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

func (*SubnetStatus) DeepCopyInto added in v0.7.0

func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)

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

func (*SubnetStatus) EnsureCondition added in v0.7.0

func (m *SubnetStatus) EnsureCondition(ctype ConditionType)

EnsureCondition useful for adding default conditions

func (*SubnetStatus) EnsureStandardConditions added in v0.7.0

func (m *SubnetStatus) EnsureStandardConditions()

EnsureStandardConditions - helper to inject standard conditions

func (*SubnetStatus) GetCondition added in v0.7.0

func (m *SubnetStatus) GetCondition(ctype ConditionType) *SubnetCondition

GetCondition get existing condition

func (*SubnetStatus) IsConditionTrue added in v0.7.0

func (m *SubnetStatus) IsConditionTrue(ctype ConditionType) bool

IsConditionTrue - if condition is true

func (*SubnetStatus) IsNotReady added in v0.7.0

func (m *SubnetStatus) IsNotReady() bool

IsNotReady returns true if ready condition is set

func (*SubnetStatus) IsNotValidated added in v1.0.0

func (m *SubnetStatus) IsNotValidated() bool

IsNotValidated returns true if ready condition is set

func (*SubnetStatus) IsReady added in v0.7.0

func (m *SubnetStatus) IsReady() bool

IsReady returns true if ready condition is set

func (*SubnetStatus) IsValidated added in v1.0.0

func (m *SubnetStatus) IsValidated() bool

IsValidated returns true if ready condition is set

func (*SubnetStatus) NotReady added in v0.7.0

func (m *SubnetStatus) NotReady(reason, message string)

NotReady - shortcut to set ready condition to false

func (*SubnetStatus) NotValidated added in v0.7.0

func (m *SubnetStatus) NotValidated(reason, message string)

NotValidated - shortcut to set validated condition to false

func (*SubnetStatus) Ready added in v0.7.0

func (m *SubnetStatus) Ready(reason, message string)

Ready - shortcut to set ready condition to true

func (*SubnetStatus) RemoveAllConditions added in v0.7.0

func (m *SubnetStatus) RemoveAllConditions()

RemoveAllConditions updates or creates a new condition

func (*SubnetStatus) RemoveCondition added in v0.7.0

func (m *SubnetStatus) RemoveCondition(ctype ConditionType)

RemoveCondition removes the condition with the provided type.

func (*SubnetStatus) SetCondition added in v0.7.0

func (m *SubnetStatus) SetCondition(ctype ConditionType, reason, message string)

SetCondition updates or creates a new condition

func (*SubnetStatus) SetError added in v0.7.0

func (m *SubnetStatus) SetError(reason, message string)

SetError - shortcut to set error condition

func (*SubnetStatus) Validated added in v0.7.0

func (m *SubnetStatus) Validated(reason, message string)

Validated - shortcut to set validated condition to true

type Vlan added in v1.2.0

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

	Spec   VlanSpec   `json:"spec"`
	Status VlanStatus `json:"status"`
}

func (*Vlan) DeepCopy added in v1.2.0

func (in *Vlan) DeepCopy() *Vlan

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

func (*Vlan) DeepCopyInto added in v1.2.0

func (in *Vlan) DeepCopyInto(out *Vlan)

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

func (*Vlan) DeepCopyObject added in v1.2.0

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

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

type VlanCondition added in v1.2.0

type VlanCondition struct {
	// Type of condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty"`
	// Last time the condition was probed
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true

func (*VlanCondition) DeepCopy added in v1.2.0

func (in *VlanCondition) DeepCopy() *VlanCondition

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

func (*VlanCondition) DeepCopyInto added in v1.2.0

func (in *VlanCondition) DeepCopyInto(out *VlanCondition)

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

type VlanList added in v1.2.0

type VlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Vlan `json:"items"`
}

func (*VlanList) DeepCopy added in v1.2.0

func (in *VlanList) DeepCopy() *VlanList

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

func (*VlanList) DeepCopyInto added in v1.2.0

func (in *VlanList) DeepCopyInto(out *VlanList)

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

func (*VlanList) DeepCopyObject added in v1.2.0

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

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

type VlanSpec added in v1.2.0

type VlanSpec struct {
	VlanId                int    `json:"vlanId"`
	ProviderInterfaceName string `json:"providerInterfaceName,omitempty"`
	LogicalInterfaceName  string `json:"logicalInterfaceName,omitempty"`
	Subnet                string `json:"subnet"`
}

func (*VlanSpec) DeepCopy added in v1.2.0

func (in *VlanSpec) DeepCopy() *VlanSpec

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

func (*VlanSpec) DeepCopyInto added in v1.2.0

func (in *VlanSpec) DeepCopyInto(out *VlanSpec)

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

type VlanStatus added in v1.2.0

type VlanStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []VlanCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}

func (*VlanStatus) Bytes added in v1.2.0

func (vs *VlanStatus) Bytes() ([]byte, error)

func (*VlanStatus) DeepCopy added in v1.2.0

func (in *VlanStatus) DeepCopy() *VlanStatus

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

func (*VlanStatus) DeepCopyInto added in v1.2.0

func (in *VlanStatus) DeepCopyInto(out *VlanStatus)

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

func (*VlanStatus) SetVlanCondition added in v1.2.0

func (v *VlanStatus) SetVlanCondition(ctype ConditionType, reason, message string)

SetCondition updates or creates a new condition

func (*VlanStatus) SetVlanError added in v1.2.0

func (v *VlanStatus) SetVlanError(reason, message string)

SetError - shortcut to set error condition

type Vpc added in v1.6.0

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

	Spec   VpcSpec   `json:"spec"`
	Status VpcStatus `json:"status,omitempty"`
}

func (*Vpc) DeepCopy added in v1.6.0

func (in *Vpc) DeepCopy() *Vpc

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

func (*Vpc) DeepCopyInto added in v1.6.0

func (in *Vpc) DeepCopyInto(out *Vpc)

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

func (*Vpc) DeepCopyObject added in v1.6.0

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

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

type VpcCondition added in v1.6.0

type VpcCondition struct {
	// Type of condition.
	Type ConditionType `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status corev1.ConditionStatus `json:"status"`
	// The reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty"`
	// A human readable message indicating details about the transition.
	// +optional
	Message string `json:"message,omitempty"`
	// Last time the condition was probed
	// +optional
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
}

Condition describes the state of an object at a certain point. +k8s:deepcopy-gen=true

func (*VpcCondition) DeepCopy added in v1.6.0

func (in *VpcCondition) DeepCopy() *VpcCondition

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

func (*VpcCondition) DeepCopyInto added in v1.6.0

func (in *VpcCondition) DeepCopyInto(out *VpcCondition)

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

type VpcList added in v1.6.0

type VpcList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Vpc `json:"items"`
}

func (*VpcList) DeepCopy added in v1.6.0

func (in *VpcList) DeepCopy() *VpcList

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

func (*VpcList) DeepCopyInto added in v1.6.0

func (in *VpcList) DeepCopyInto(out *VpcList)

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

func (*VpcList) DeepCopyObject added in v1.6.0

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

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

type VpcSpec added in v1.6.0

type VpcSpec struct {
	Namespaces   []string       `json:"namespaces,omitempty"`
	StaticRoutes []*StaticRoute `json:"staticRoutes,omitempty"`
}

func (*VpcSpec) DeepCopy added in v1.6.0

func (in *VpcSpec) DeepCopy() *VpcSpec

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

func (*VpcSpec) DeepCopyInto added in v1.6.0

func (in *VpcSpec) DeepCopyInto(out *VpcSpec)

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

type VpcStatus added in v1.6.0

type VpcStatus struct {
	// Conditions represents the latest state of the object
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []VpcCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`

	Standby                bool     `json:"standby"`
	Default                bool     `json:"default"`
	DefaultLogicalSwitch   string   `json:"defaultLogicalSwitch"`
	Router                 string   `json:"router"`
	TcpLoadBalancer        string   `json:"tcpLoadBalancer"`
	UdpLoadBalancer        string   `json:"udpLoadBalancer"`
	TcpSessionLoadBalancer string   `json:"tcpSessionLoadBalancer"`
	UdpSessionLoadBalancer string   `json:"udpSessionLoadBalancer"`
	Subnets                []string `json:"subnets"`
}

func (*VpcStatus) Bytes added in v1.6.0

func (vs *VpcStatus) Bytes() ([]byte, error)

func (*VpcStatus) DeepCopy added in v1.6.0

func (in *VpcStatus) DeepCopy() *VpcStatus

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

func (*VpcStatus) DeepCopyInto added in v1.6.0

func (in *VpcStatus) DeepCopyInto(out *VpcStatus)

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