Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiliumNetworkPolicySet ¶
type CiliumNetworkPolicySet interface { // Get the set stored keys Keys() sets.String // List of resources stored in the set. Pass an optional filter function to filter on the list. // The filter function should return false to keep the resource, true to drop it. List(filterResource ...func(*cilium_io_v2.CiliumNetworkPolicy) bool) []*cilium_io_v2.CiliumNetworkPolicy // Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list. // The filter function should return false to keep the resource, true to drop it. UnsortedList(filterResource ...func(*cilium_io_v2.CiliumNetworkPolicy) bool) []*cilium_io_v2.CiliumNetworkPolicy // Return the Set as a map of key to resource. Map() map[string]*cilium_io_v2.CiliumNetworkPolicy // Insert a resource into the set. Insert(ciliumNetworkPolicy ...*cilium_io_v2.CiliumNetworkPolicy) // Compare the equality of the keys in two sets (not the resources themselves) Equal(ciliumNetworkPolicySet CiliumNetworkPolicySet) bool // Check if the set contains a key matching the resource (not the resource itself) Has(ciliumNetworkPolicy ezkube.ResourceId) bool // Delete the key matching the resource Delete(ciliumNetworkPolicy ezkube.ResourceId) // Return the union with the provided set Union(set CiliumNetworkPolicySet) CiliumNetworkPolicySet // Return the difference with the provided set Difference(set CiliumNetworkPolicySet) CiliumNetworkPolicySet // Return the intersection with the provided set Intersection(set CiliumNetworkPolicySet) CiliumNetworkPolicySet // Find the resource with the given ID Find(id ezkube.ResourceId) (*cilium_io_v2.CiliumNetworkPolicy, error) // Get the length of the set Length() int // returns the generic implementation of the set Generic() sksets.ResourceSet // returns the delta between this and and another CiliumNetworkPolicySet Delta(newSet CiliumNetworkPolicySet) sksets.ResourceDelta // Create a deep copy of the current CiliumNetworkPolicySet Clone() CiliumNetworkPolicySet }
func NewCiliumNetworkPolicySet ¶
func NewCiliumNetworkPolicySet(ciliumNetworkPolicyList ...*cilium_io_v2.CiliumNetworkPolicy) CiliumNetworkPolicySet
func NewCiliumNetworkPolicySetFromList ¶
func NewCiliumNetworkPolicySetFromList(ciliumNetworkPolicyList *cilium_io_v2.CiliumNetworkPolicyList) CiliumNetworkPolicySet
Click to show internal directories.
Click to hide internal directories.