v1sets

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 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 ClusterResourceSet

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

func NewClusterResourceSet

func NewClusterResourceSet(clusterResourceList ...*things_test_io_v1.ClusterResource) ClusterResourceSet

func NewClusterResourceSetFromList

func NewClusterResourceSetFromList(clusterResourceList *things_test_io_v1.ClusterResourceList) ClusterResourceSet

type PaintSet

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

func NewPaintSet

func NewPaintSet(paintList ...*things_test_io_v1.Paint) PaintSet

func NewPaintSetFromList

func NewPaintSetFromList(paintList *things_test_io_v1.PaintList) PaintSet

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