firewall

package
v0.0.0-...-798ae07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=firewall.morfic.io +groupGoName=firewall +genclient

Index

Constants

View Source
const GroupName = "firewall.morfic.io"

GroupName is the name of this API group.

Variables

View Source
var (
	// SchemeBuilder points to a list of functions added to Scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

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 a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Chain

type Chain struct {
	Rules []Rule `json:"rules" yaml:"rules"`
}

Chain represents a firewall chain of rules.

func (*Chain) DeepCopy

func (in *Chain) DeepCopy() *Chain

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

func (*Chain) DeepCopyInto

func (in *Chain) DeepCopyInto(out *Chain)

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

type FirewallTableSpec

type FirewallTableSpec struct {

	// Family represents the family of data that this table will filter on.
	Family string `json:"family" yaml:"family"`

	// Sets represents an array of sets that should be a part of this table.
	Sets []Set `json:"sets" yaml:"sets"`

	// Chains represents an array of chain objects that are a part of this table.
	Chains []Chain `json:"chains" yaml:"chains"`

	// Objects represents a set of stateful objects that are members of this table.
	Objects []Object `json:"objects" yaml:"objects"`
}

FirewallTableSpec represents the desired spec for a firewall table on the host.

func (*FirewallTableSpec) DeepCopy

func (in *FirewallTableSpec) DeepCopy() *FirewallTableSpec

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

func (*FirewallTableSpec) DeepCopyInto

func (in *FirewallTableSpec) DeepCopyInto(out *FirewallTableSpec)

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

type FirewallTableStatus

type FirewallTableStatus struct {
	Enabled bool `json:"enabled"`
}

FirewallTableStatus specifies the current status for a firewall table on the host.

func (*FirewallTableStatus) DeepCopy

func (in *FirewallTableStatus) DeepCopy() *FirewallTableStatus

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

func (*FirewallTableStatus) DeepCopyInto

func (in *FirewallTableStatus) DeepCopyInto(out *FirewallTableStatus)

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

type Object

type Object struct {
}

Object represents a stateful object.

func (*Object) DeepCopy

func (in *Object) DeepCopy() *Object

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

func (*Object) DeepCopyInto

func (in *Object) DeepCopyInto(out *Object)

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

type Rule

type Rule struct {
	Name      string `json:"name" yaml:"name"`
	Index     int    `json:"index" yaml:"index"`
	Statement string `json:"statement" yaml:"statement"`
	Handle    string `json:"handle" yaml:"handle"`
}

Rule represents a firewall rule.

func (*Rule) DeepCopy

func (in *Rule) DeepCopy() *Rule

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

func (*Rule) DeepCopyInto

func (in *Rule) DeepCopyInto(out *Rule)

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

type Set

type Set struct {
}

Set reresents a set of objects within the host firewall configuration.

func (*Set) DeepCopy

func (in *Set) DeepCopy() *Set

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

func (*Set) DeepCopyInto

func (in *Set) DeepCopyInto(out *Set)

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

type Table

type Table struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this firewall table object.
	Spec FirewallTableSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this firewall table on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status FirewallTableStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced Table represents a firewall table.

func (*Table) DeepCopy

func (in *Table) DeepCopy() *Table

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

func (*Table) DeepCopyInto

func (in *Table) DeepCopyInto(out *Table)

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

func (*Table) DeepCopyObject

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

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

type TableList

type TableList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// +optional
	metav1.ListMeta

	// Items represents the array of firewall tables.
	Items []Table `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced TableList repesents a list of firewall tables.

func (*TableList) DeepCopy

func (in *TableList) DeepCopy() *TableList

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

func (*TableList) DeepCopyInto

func (in *TableList) DeepCopyInto(out *TableList)

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

func (*TableList) DeepCopyObject

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL