v1sets

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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 GatewayClassSet

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

func NewGatewayClassSet

func NewGatewayClassSet(gatewayClassList ...*gateway_networking_k8s_io_v1.GatewayClass) GatewayClassSet

func NewGatewayClassSetFromList

func NewGatewayClassSetFromList(gatewayClassList *gateway_networking_k8s_io_v1.GatewayClassList) GatewayClassSet

type GatewaySet

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

func NewGatewaySet

func NewGatewaySet(gatewayList ...*gateway_networking_k8s_io_v1.Gateway) GatewaySet

func NewGatewaySetFromList

func NewGatewaySetFromList(gatewayList *gateway_networking_k8s_io_v1.GatewayList) GatewaySet

type HTTPRouteSet

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

func NewHTTPRouteSet

func NewHTTPRouteSet(hTTPRouteList ...*gateway_networking_k8s_io_v1.HTTPRoute) HTTPRouteSet

func NewHTTPRouteSetFromList

func NewHTTPRouteSetFromList(hTTPRouteList *gateway_networking_k8s_io_v1.HTTPRouteList) HTTPRouteSet

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