Documentation ¶
Overview ¶
+groupName=firewall.upcloud.kubeform.com
Index ¶
- Variables
- func GetDecoder() map[string]jsoniter.ValDecoder
- func GetEncoder() map[string]jsoniter.ValEncoder
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Rules
- func (in *Rules) DeepCopy() *Rules
- func (in *Rules) DeepCopyInto(out *Rules)
- func (in *Rules) DeepCopyObject() runtime.Object
- func (r *Rules) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Rules) ValidateCreate() error
- func (r *Rules) ValidateDelete() error
- func (r *Rules) ValidateUpdate(old runtime.Object) error
- type RulesList
- type RulesSpec
- type RulesSpecFirewallRule
- type RulesSpecResource
- type RulesStatus
Constants ¶
This section is empty.
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: firewall.GroupName, Version: "v1alpha1"}
Functions ¶
func GetDecoder ¶
func GetDecoder() map[string]jsoniter.ValDecoder
func GetEncoder ¶
func GetEncoder() map[string]jsoniter.ValEncoder
func Kind ¶
Kind takes an unqualified kind and returns 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 Rules ¶
type Rules struct { metav1.TypeMeta `json:",inline,omitempty"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RulesSpec `json:"spec,omitempty"` Status RulesStatus `json:"status,omitempty"` }
func (*Rules) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rules.
func (*Rules) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Rules) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Rules) SetupWebhookWithManager ¶
func (*Rules) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Rules) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type RulesList ¶
type RulesList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items is a list of Rules CRD objects Items []Rules `json:"items,omitempty"` }
RulesList is a list of Ruless
func (*RulesList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesList.
func (*RulesList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RulesSpec ¶
type RulesSpec struct { State *RulesSpecResource `json:"state,omitempty" tf:"-"` Resource RulesSpecResource `json:"resource" tf:"resource"` UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"` TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"` ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"` BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"` }
func (*RulesSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesSpec.
type RulesSpecFirewallRule ¶
type RulesSpecFirewallRule struct { // Action to take if the rule conditions are met Action *string `json:"action" tf:"action"` // Freeform comment string for the rule // +optional Comment *string `json:"comment,omitempty" tf:"comment"` // The destination address range ends from this address // +optional DestinationAddressEnd *string `json:"destinationAddressEnd,omitempty" tf:"destination_address_end"` // The destination address range starts from this address // +optional DestinationAddressStart *string `json:"destinationAddressStart,omitempty" tf:"destination_address_start"` // The destination port range ends from this port number // +optional DestinationPortEnd *string `json:"destinationPortEnd,omitempty" tf:"destination_port_end"` // The destination port range starts from this port number // +optional DestinationPortStart *string `json:"destinationPortStart,omitempty" tf:"destination_port_start"` // The direction of network traffic this rule will be applied to Direction *string `json:"direction" tf:"direction"` // The address family of new firewall rule Family *string `json:"family" tf:"family"` // The ICMP type // +optional IcmpType *string `json:"icmpType,omitempty" tf:"icmp_type"` // The protocol this rule will be applied to // +optional Protocol *string `json:"protocol,omitempty" tf:"protocol"` // The source address range ends from this address // +optional SourceAddressEnd *string `json:"sourceAddressEnd,omitempty" tf:"source_address_end"` // The source address range starts from this address // +optional SourceAddressStart *string `json:"sourceAddressStart,omitempty" tf:"source_address_start"` // The source port range ends from this port number // +optional SourcePortEnd *string `json:"sourcePortEnd,omitempty" tf:"source_port_end"` // The source port range starts from this port number // +optional SourcePortStart *string `json:"sourcePortStart,omitempty" tf:"source_port_start"` }
func (*RulesSpecFirewallRule) DeepCopy ¶
func (in *RulesSpecFirewallRule) DeepCopy() *RulesSpecFirewallRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesSpecFirewallRule.
func (*RulesSpecFirewallRule) DeepCopyInto ¶
func (in *RulesSpecFirewallRule) DeepCopyInto(out *RulesSpecFirewallRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RulesSpecResource ¶
type RulesSpecResource struct { ID string `json:"id,omitempty" tf:"id,omitempty"` // +kubebuilder:validation:MaxItems=1000 FirewallRule []RulesSpecFirewallRule `json:"firewallRule" tf:"firewall_rule"` // The unique id of the server to be protected the firewall rules ServerID *string `json:"serverID" tf:"server_id"` }
func (*RulesSpecResource) DeepCopy ¶
func (in *RulesSpecResource) DeepCopy() *RulesSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesSpecResource.
func (*RulesSpecResource) DeepCopyInto ¶
func (in *RulesSpecResource) DeepCopyInto(out *RulesSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RulesStatus ¶
type RulesStatus struct { // Resource generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` // +optional Phase status.Status `json:"phase,omitempty"` // +optional Conditions []kmapi.Condition `json:"conditions,omitempty"` }
func (*RulesStatus) DeepCopy ¶
func (in *RulesStatus) DeepCopy() *RulesStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RulesStatus.
func (*RulesStatus) DeepCopyInto ¶
func (in *RulesStatus) DeepCopyInto(out *RulesStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.