v1sets

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkPolicySet

type NetworkPolicySet 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.
	List(filterResource ...func(*networking_k8s_io_v1.NetworkPolicy) bool) []*networking_k8s_io_v1.NetworkPolicy
	// Unsorted list of resources stored in the set. Pass an optional filter function to filter on the list.
	UnsortedList(filterResource ...func(*networking_k8s_io_v1.NetworkPolicy) bool) []*networking_k8s_io_v1.NetworkPolicy
	// Return the Set as a map of key to resource.
	Map() map[string]*networking_k8s_io_v1.NetworkPolicy
	// Insert a resource into the set.
	Insert(networkPolicy ...*networking_k8s_io_v1.NetworkPolicy)
	// Compare the equality of the keys in two sets (not the resources themselves)
	Equal(networkPolicySet NetworkPolicySet) bool
	// Check if the set contains a key matching the resource (not the resource itself)
	Has(networkPolicy ezkube.ResourceId) bool
	// Delete the key matching the resource
	Delete(networkPolicy ezkube.ResourceId)
	// Return the union with the provided set
	Union(set NetworkPolicySet) NetworkPolicySet
	// Return the difference with the provided set
	Difference(set NetworkPolicySet) NetworkPolicySet
	// Return the intersection with the provided set
	Intersection(set NetworkPolicySet) NetworkPolicySet
	// Find the resource with the given ID
	Find(id ezkube.ResourceId) (*networking_k8s_io_v1.NetworkPolicy, 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 NetworkPolicySet
	Delta(newSet NetworkPolicySet) sksets.ResourceDelta
	// Create a deep copy of the current NetworkPolicySet
	Clone() NetworkPolicySet
}

func NewNetworkPolicySet

func NewNetworkPolicySet(networkPolicyList ...*networking_k8s_io_v1.NetworkPolicy) NetworkPolicySet

func NewNetworkPolicySetFromList

func NewNetworkPolicySetFromList(networkPolicyList *networking_k8s_io_v1.NetworkPolicyList) NetworkPolicySet

Directories

Path Synopsis
Package mock_v1sets is a generated GoMock package.
Package mock_v1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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