Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=firewall.morfic.io +groupGoName=firewall +genclient
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Chain
- type FirewallTableSpec
- type FirewallTableStatus
- type Object
- type Rule
- type Set
- type Table
- type TableList
Constants ¶
const GroupName = "firewall.morfic.io"
GroupName is the name of this API group.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func RegisterDefaults ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Chain.
func (*Chain) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Object.
func (*Object) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func (*Rule) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Set.
func (*Set) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Table.
func (*Table) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Table) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableList.
func (*TableList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TableList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.