v1sets

package
v1.1.0-beta8 Latest Latest
Warning

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

Go to latest
Published: May 24, 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 DestinationSet

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

func NewDestinationSet

func NewDestinationSet(destinationList ...*discovery_mesh_gloo_solo_io_v1.Destination) DestinationSet

func NewDestinationSetFromList

func NewDestinationSetFromList(destinationList *discovery_mesh_gloo_solo_io_v1.DestinationList) DestinationSet

type MeshSet

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

func NewMeshSet

func NewMeshSet(meshList ...*discovery_mesh_gloo_solo_io_v1.Mesh) MeshSet

func NewMeshSetFromList

func NewMeshSetFromList(meshList *discovery_mesh_gloo_solo_io_v1.MeshList) MeshSet

type WorkloadSet

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

func NewWorkloadSet

func NewWorkloadSet(workloadList ...*discovery_mesh_gloo_solo_io_v1.Workload) WorkloadSet

func NewWorkloadSetFromList

func NewWorkloadSetFromList(workloadList *discovery_mesh_gloo_solo_io_v1.WorkloadList) WorkloadSet

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