Documentation
¶
Overview ¶
+groupName=firewall.linode.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 Firewall
- func (in *Firewall) DeepCopy() *Firewall
- func (in *Firewall) DeepCopyInto(out *Firewall)
- func (in *Firewall) DeepCopyObject() runtime.Object
- func (r *Firewall) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *Firewall) ValidateCreate() error
- func (r *Firewall) ValidateDelete() error
- func (r *Firewall) ValidateUpdate(old runtime.Object) error
- type FirewallList
- type FirewallSpec
- type FirewallSpecDevices
- type FirewallSpecInbound
- type FirewallSpecOutbound
- type FirewallSpecResource
- type FirewallStatus
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 Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Firewall ¶
type Firewall struct {
metav1.TypeMeta `json:",inline,omitempty"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec FirewallSpec `json:"spec,omitempty"`
Status FirewallStatus `json:"status,omitempty"`
}
func (*Firewall) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Firewall.
func (*Firewall) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Firewall) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Firewall) SetupWebhookWithManager ¶
func (*Firewall) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*Firewall) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type FirewallList ¶
type FirewallList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
// Items is a list of Firewall CRD objects
Items []Firewall `json:"items,omitempty"`
}
FirewallList is a list of Firewalls
func (*FirewallList) DeepCopy ¶
func (in *FirewallList) DeepCopy() *FirewallList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallList.
func (*FirewallList) DeepCopyInto ¶
func (in *FirewallList) DeepCopyInto(out *FirewallList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FirewallList) DeepCopyObject ¶
func (in *FirewallList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type FirewallSpec ¶
type FirewallSpec struct {
KubeformOutput *FirewallSpecResource `json:"kubeformOutput,omitempty" tf:"-"`
Resource FirewallSpecResource `json:"resource" tf:"resource"`
UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`
TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`
ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`
}
func (*FirewallSpec) DeepCopy ¶
func (in *FirewallSpec) DeepCopy() *FirewallSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallSpec.
func (*FirewallSpec) DeepCopyInto ¶
func (in *FirewallSpec) DeepCopyInto(out *FirewallSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FirewallSpecDevices ¶
type FirewallSpecDevices struct {
// The ID of the underlying entity for the firewall device (e.g. the Linode's ID).
// +optional
EntityID *int64 `json:"entityID,omitempty" tf:"entity_id"`
// The ID of the firewall device.
// +optional
ID *int64 `json:"ID,omitempty" tf:"id"`
// The label of the underlying entity for the firewall device.
// +optional
Label *string `json:"label,omitempty" tf:"label"`
// The type of firewall device.
// +optional
Type *string `json:"type,omitempty" tf:"type"`
// The URL of the underlying entity for the firewall device.
// +optional
Url *string `json:"url,omitempty" tf:"url"`
}
func (*FirewallSpecDevices) DeepCopy ¶
func (in *FirewallSpecDevices) DeepCopy() *FirewallSpecDevices
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallSpecDevices.
func (*FirewallSpecDevices) DeepCopyInto ¶
func (in *FirewallSpecDevices) DeepCopyInto(out *FirewallSpecDevices)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FirewallSpecInbound ¶
type FirewallSpecInbound struct {
// Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Action *string `json:"action" tf:"action"`
// A list of IP addresses, CIDR blocks, or 0.0.0.0/0 (to allow all) this rule applies to.
// +optional
Ipv4 []string `json:"ipv4,omitempty" tf:"ipv4"`
// A list of IPv6 addresses or networks this rule applies to.
// +optional
// +kubebuilder:validation:MinItems=1
Ipv6 []string `json:"ipv6,omitempty" tf:"ipv6"`
// Used to identify this rule. For display purposes only.
Label *string `json:"label" tf:"label"`
// A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
// +optional
Ports *string `json:"ports,omitempty" tf:"ports"`
// The network protocol this rule controls.
Protocol *string `json:"protocol" tf:"protocol"`
}
func (*FirewallSpecInbound) DeepCopy ¶
func (in *FirewallSpecInbound) DeepCopy() *FirewallSpecInbound
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallSpecInbound.
func (*FirewallSpecInbound) DeepCopyInto ¶
func (in *FirewallSpecInbound) DeepCopyInto(out *FirewallSpecInbound)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FirewallSpecOutbound ¶
type FirewallSpecOutbound struct {
// Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Action *string `json:"action" tf:"action"`
// A list of IP addresses, CIDR blocks, or 0.0.0.0/0 (to allow all) this rule applies to.
// +optional
Ipv4 []string `json:"ipv4,omitempty" tf:"ipv4"`
// A list of IPv6 addresses or networks this rule applies to.
// +optional
// +kubebuilder:validation:MinItems=1
Ipv6 []string `json:"ipv6,omitempty" tf:"ipv6"`
// Used to identify this rule. For display purposes only.
Label *string `json:"label" tf:"label"`
// A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
// +optional
Ports *string `json:"ports,omitempty" tf:"ports"`
// The network protocol this rule controls.
Protocol *string `json:"protocol" tf:"protocol"`
}
func (*FirewallSpecOutbound) DeepCopy ¶
func (in *FirewallSpecOutbound) DeepCopy() *FirewallSpecOutbound
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallSpecOutbound.
func (*FirewallSpecOutbound) DeepCopyInto ¶
func (in *FirewallSpecOutbound) DeepCopyInto(out *FirewallSpecOutbound)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FirewallSpecResource ¶
type FirewallSpecResource struct {
ID string `json:"id,omitempty" tf:"id,omitempty"`
// The devices associated with this firewall.
// +optional
Devices []FirewallSpecDevices `json:"devices,omitempty" tf:"devices"`
// If true, the Firewall is inactive.
// +optional
Disabled *bool `json:"disabled,omitempty" tf:"disabled"`
// A firewall rule that specifies what inbound network traffic is allowed.
// +optional
Inbound []FirewallSpecInbound `json:"inbound,omitempty" tf:"inbound"`
// The default behavior for inbound traffic. This setting can be overridden by updating the inbound.action property for an individual Firewall Rule.
InboundPolicy *string `json:"inboundPolicy" tf:"inbound_policy"`
// The label for the Firewall. For display purposes only. If no label is provided, a default will be assigned.
Label *string `json:"label" tf:"label"`
// The IDs of Linodes to apply this firewall to.
// +optional
Linodes []int64 `json:"linodes,omitempty" tf:"linodes"`
// A firewall rule that specifies what outbound network traffic is allowed.
// +optional
Outbound []FirewallSpecOutbound `json:"outbound,omitempty" tf:"outbound"`
// The default behavior for outbound traffic. This setting can be overridden by updating the outbound.action property for an individual Firewall Rule.
OutboundPolicy *string `json:"outboundPolicy" tf:"outbound_policy"`
// The status of the firewall.
// +optional
Status *string `json:"status,omitempty" tf:"status"`
// An array of tags applied to this object. Tags are for organizational purposes only.
// +optional
Tags []string `json:"tags,omitempty" tf:"tags"`
}
func (*FirewallSpecResource) DeepCopy ¶
func (in *FirewallSpecResource) DeepCopy() *FirewallSpecResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallSpecResource.
func (*FirewallSpecResource) DeepCopyInto ¶
func (in *FirewallSpecResource) DeepCopyInto(out *FirewallSpecResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FirewallStatus ¶
type FirewallStatus 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 (*FirewallStatus) DeepCopy ¶
func (in *FirewallStatus) DeepCopy() *FirewallStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FirewallStatus.
func (*FirewallStatus) DeepCopyInto ¶
func (in *FirewallStatus) DeepCopyInto(out *FirewallStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.