v1sets

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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 NamespaceSet

type NamespaceSet 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(*v1.Namespace) bool) []*v1.Namespace
	// 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(*v1.Namespace) bool) []*v1.Namespace
	// Return the Set as a map of key to resource.
	Map() map[string]*v1.Namespace
	// Insert a resource into the set.
	Insert(namespace ...*v1.Namespace)
	// Compare the equality of the keys in two sets (not the resources themselves)
	Equal(namespaceSet NamespaceSet) bool
	// Check if the set contains a key matching the resource (not the resource itself)
	Has(namespace ezkube.ResourceId) bool
	// Delete the key matching the resource
	Delete(namespace ezkube.ResourceId)
	// Return the union with the provided set
	Union(set NamespaceSet) NamespaceSet
	// Return the difference with the provided set
	Difference(set NamespaceSet) NamespaceSet
	// Return the intersection with the provided set
	Intersection(set NamespaceSet) NamespaceSet
	// Find the resource with the given ID
	Find(id ezkube.ResourceId) (*v1.Namespace, 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 NamespaceSet
	Delta(newSet NamespaceSet) sksets.ResourceDelta
	// Create a deep copy of the current NamespaceSet
	Clone() NamespaceSet
}

func NewNamespaceSet

func NewNamespaceSet(namespaceList ...*v1.Namespace) NamespaceSet

func NewNamespaceSetFromList

func NewNamespaceSetFromList(namespaceList *v1.NamespaceList) NamespaceSet

type SecretSet

type SecretSet 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(*v1.Secret) bool) []*v1.Secret
	// 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(*v1.Secret) bool) []*v1.Secret
	// Return the Set as a map of key to resource.
	Map() map[string]*v1.Secret
	// Insert a resource into the set.
	Insert(secret ...*v1.Secret)
	// Compare the equality of the keys in two sets (not the resources themselves)
	Equal(secretSet SecretSet) bool
	// Check if the set contains a key matching the resource (not the resource itself)
	Has(secret ezkube.ResourceId) bool
	// Delete the key matching the resource
	Delete(secret ezkube.ResourceId)
	// Return the union with the provided set
	Union(set SecretSet) SecretSet
	// Return the difference with the provided set
	Difference(set SecretSet) SecretSet
	// Return the intersection with the provided set
	Intersection(set SecretSet) SecretSet
	// Find the resource with the given ID
	Find(id ezkube.ResourceId) (*v1.Secret, 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 SecretSet
	Delta(newSet SecretSet) sksets.ResourceDelta
	// Create a deep copy of the current SecretSet
	Clone() SecretSet
}

func NewSecretSet

func NewSecretSet(secretList ...*v1.Secret) SecretSet

func NewSecretSetFromList

func NewSecretSetFromList(secretList *v1.SecretList) SecretSet

type ServiceAccountSet

type ServiceAccountSet 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(*v1.ServiceAccount) bool) []*v1.ServiceAccount
	// 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(*v1.ServiceAccount) bool) []*v1.ServiceAccount
	// Return the Set as a map of key to resource.
	Map() map[string]*v1.ServiceAccount
	// Insert a resource into the set.
	Insert(serviceAccount ...*v1.ServiceAccount)
	// Compare the equality of the keys in two sets (not the resources themselves)
	Equal(serviceAccountSet ServiceAccountSet) bool
	// Check if the set contains a key matching the resource (not the resource itself)
	Has(serviceAccount ezkube.ResourceId) bool
	// Delete the key matching the resource
	Delete(serviceAccount ezkube.ResourceId)
	// Return the union with the provided set
	Union(set ServiceAccountSet) ServiceAccountSet
	// Return the difference with the provided set
	Difference(set ServiceAccountSet) ServiceAccountSet
	// Return the intersection with the provided set
	Intersection(set ServiceAccountSet) ServiceAccountSet
	// Find the resource with the given ID
	Find(id ezkube.ResourceId) (*v1.ServiceAccount, 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 ServiceAccountSet
	Delta(newSet ServiceAccountSet) sksets.ResourceDelta
	// Create a deep copy of the current ServiceAccountSet
	Clone() ServiceAccountSet
}

func NewServiceAccountSet

func NewServiceAccountSet(serviceAccountList ...*v1.ServiceAccount) ServiceAccountSet

func NewServiceAccountSetFromList

func NewServiceAccountSetFromList(serviceAccountList *v1.ServiceAccountList) ServiceAccountSet

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