v1alpha1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kubestatic.quortex.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 Direction

type Direction string

Direction describes the traffic direction. Ingress applies to incoming traffic. Egress applies to outbound traffic.

const (
	DirectionIngress Direction = "Ingress"
	DirectionEgress  Direction = "Egress"
)

All defined Direction

type ExternalIP

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

	Spec   ExternalIPSpec   `json:"spec,omitempty"`
	Status ExternalIPStatus `json:"status,omitempty"`
}

ExternalIP is the Schema for the externalips API

func (*ExternalIP) DeepCopy

func (in *ExternalIP) DeepCopy() *ExternalIP

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

func (*ExternalIP) DeepCopyInto

func (in *ExternalIP) DeepCopyInto(out *ExternalIP)

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

func (*ExternalIP) DeepCopyObject

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

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

func (*ExternalIP) IsAssociated

func (e *ExternalIP) IsAssociated() bool

IsAssociated returns if externalIP is associated

func (*ExternalIP) IsReserved

func (e *ExternalIP) IsReserved() bool

IsReserved returns if externalIP is reserved

type ExternalIPList

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

ExternalIPList contains a list of ExternalIP

func (*ExternalIPList) DeepCopy

func (in *ExternalIPList) DeepCopy() *ExternalIPList

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

func (*ExternalIPList) DeepCopyInto

func (in *ExternalIPList) DeepCopyInto(out *ExternalIPList)

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

func (*ExternalIPList) DeepCopyObject

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

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

type ExternalIPSpec

type ExternalIPSpec struct {
	// NodeName is the node's instance on which the address must be attached
	// +kubebuilder:validation:Optional
	NodeName string `json:"nodeName,omitempty"`

	// Whether to disable reconciliation of this resource for development purpose
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	DisableReconciliation bool `json:"disableReconciliation"`

	// PreventDeallocation tells if EIP should be deallocated on ExternalIP deletion
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	PreventEIPDeallocation bool `json:"preventEIPDeallocation,omitempty"`
}

ExternalIPSpec defines the desired state of ExternalIP

func (*ExternalIPSpec) DeepCopy

func (in *ExternalIPSpec) DeepCopy() *ExternalIPSpec

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

func (*ExternalIPSpec) DeepCopyInto

func (in *ExternalIPSpec) DeepCopyInto(out *ExternalIPSpec)

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

type ExternalIPState

type ExternalIPState string

ExternalIPState describes the ExternalIP state.

const (
	ExternalIPStateNone       ExternalIPState = ""
	ExternalIPStateReserved   ExternalIPState = "Reserved"
	ExternalIPStateAssociated ExternalIPState = "Associated"
)

All defined ExternalIPStates

type ExternalIPStatus

type ExternalIPStatus struct {
	// The current state of the ExternalIP
	State ExternalIPState `json:"state,omitempty"`

	// The address identifier
	AddressID *string `json:"addressID,omitempty"`

	// The address public IP
	PublicIPAddress *string `json:"publicIPAddress,omitempty"`

	// The instance identifier
	InstanceID *string `json:"instanceID,omitempty"`
}

ExternalIPStatus defines the observed state of ExternalIP

func (*ExternalIPStatus) DeepCopy

func (in *ExternalIPStatus) DeepCopy() *ExternalIPStatus

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

func (*ExternalIPStatus) DeepCopyInto

func (in *ExternalIPStatus) DeepCopyInto(out *ExternalIPStatus)

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

type FirewallRule

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

	Spec   FirewallRuleSpec   `json:"spec,omitempty"`
	Status FirewallRuleStatus `json:"status,omitempty"`
}

FirewallRule is the Schema for the firewallrules API

func FilterFirewallRules added in v0.3.0

func FilterFirewallRules(frs []FirewallRule, filterFunc func(FirewallRule) bool) []FirewallRule

FilterFirewallRules filter FirewallRules depending on the given filter function. Filter function must return true to keep element, false to filter it.

func (*FirewallRule) DeepCopy

func (in *FirewallRule) DeepCopy() *FirewallRule

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

func (*FirewallRule) DeepCopyInto

func (in *FirewallRule) DeepCopyInto(out *FirewallRule)

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

func (*FirewallRule) DeepCopyObject

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

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

func (*FirewallRule) IsAssociated

func (f *FirewallRule) IsAssociated() bool

IsAssociated returns if firewallRule is associated

func (*FirewallRule) IsReserved

func (f *FirewallRule) IsReserved() bool

IsReserved returns if firewallRule is reserved

type FirewallRuleList

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

FirewallRuleList contains a list of FirewallRule

func (*FirewallRuleList) DeepCopy

func (in *FirewallRuleList) DeepCopy() *FirewallRuleList

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

func (*FirewallRuleList) DeepCopyInto

func (in *FirewallRuleList) DeepCopyInto(out *FirewallRuleList)

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

func (*FirewallRuleList) DeepCopyObject

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

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

type FirewallRuleSpec

type FirewallRuleSpec struct {
	// NodeName is the node's instance on which the firewall rule must be attached
	// +optional
	NodeName *string `json:"nodeName,omitempty"`

	// A description for the firewall rule. This is informational only.
	Description string `json:"description"`

	// The traffic direction. Ingress applies to incoming traffic. Egress applies to outbound traffic.
	// +kubebuilder:validation:Enum:={"Ingress","Egress"}
	Direction Direction `json:"direction"`

	// The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6
	// type number.
	FromPort int64 `json:"fromPort"`

	// The IP protocol name (tcp, udp, icmp, icmpv6) or number (see Protocol Numbers
	// (http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml)).
	// Use -1 to specify all protocols.
	Protocol string `json:"protocol"`

	// The IPv4 ranges.
	IPRanges []*IPRange `json:"ipRanges,omitempty"`

	// The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code.
	ToPort *int64 `json:"toPort,omitempty"`

	// Whether to disable reconciliation of this resource for development purpose
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=false
	DisableReconciliation bool `json:"disableReconciliation"`
}

FirewallRuleSpec defines the desired state of FirewallRule

func (*FirewallRuleSpec) DeepCopy

func (in *FirewallRuleSpec) DeepCopy() *FirewallRuleSpec

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

func (*FirewallRuleSpec) DeepCopyInto

func (in *FirewallRuleSpec) DeepCopyInto(out *FirewallRuleSpec)

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

type FirewallRuleState

type FirewallRuleState string

FirewallRuleState describes the FirewallRule state.

const (
	FirewallRuleStateNone       FirewallRuleState = ""
	FirewallRuleStateReserved   FirewallRuleState = "Reserved"
	FirewallRuleStateAssociated FirewallRuleState = "Associated"
)

All defined FirewallRuleStates

type FirewallRuleStatus

type FirewallRuleStatus struct {
	// The current state of the FirewallRule
	State FirewallRuleState `json:"state,omitempty"`

	// The latest FirewallRule specification applied, used to make API requests to cloud providers
	// only if the resource has been changed to avoid throttling issues.
	LastApplied *string `json:"lastApplied,omitempty"`

	// lastTransitionTime is the last time the status transitioned from one status to another.
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Type=string
	// +kubebuilder:validation:Format=date-time
	LastTransitionTime metav1.Time `json:"lastTransitionTime"`

	// The firewall rule identifier
	FirewallRuleID *string `json:"firewallRuleID,omitempty"`

	// The instance identifier
	InstanceID *string `json:"instanceID,omitempty"`

	// The network interface identifier
	NetworkInterfaceID *string `json:"networkInterfaceID,omitempty"`
}

FirewallRuleStatus defines the observed state of FirewallRule

func (*FirewallRuleStatus) DeepCopy

func (in *FirewallRuleStatus) DeepCopy() *FirewallRuleStatus

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

func (*FirewallRuleStatus) DeepCopyInto

func (in *FirewallRuleStatus) DeepCopyInto(out *FirewallRuleStatus)

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

type IPRange

type IPRange struct {
	// The IPv4 CIDR range. You can either specify a CIDR range or a source security
	// group, not both. To specify a single IPv4 address, use the /32 prefix length.
	CIDR string `json:"cidr"`

	// A description for the rule that references this IPv4 address
	// range.
	Description string `json:"description"`
}

IPRange Describes an IPv4 range.

func (*IPRange) DeepCopy

func (in *IPRange) DeepCopy() *IPRange

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

func (*IPRange) DeepCopyInto

func (in *IPRange) DeepCopyInto(out *IPRange)

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