v1beta1sets

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationPolicySet

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

func NewAuthorizationPolicySet

func NewAuthorizationPolicySet(authorizationPolicyList ...*security_istio_io_v1beta1.AuthorizationPolicy) AuthorizationPolicySet

func NewAuthorizationPolicySetFromList

func NewAuthorizationPolicySetFromList(authorizationPolicyList *security_istio_io_v1beta1.AuthorizationPolicyList) AuthorizationPolicySet

type PeerAuthenticationSet added in v0.1.7

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

func NewPeerAuthenticationSet added in v0.1.7

func NewPeerAuthenticationSet(peerAuthenticationList ...*security_istio_io_v1beta1.PeerAuthentication) PeerAuthenticationSet

func NewPeerAuthenticationSetFromList added in v0.1.7

func NewPeerAuthenticationSetFromList(peerAuthenticationList *security_istio_io_v1beta1.PeerAuthenticationList) PeerAuthenticationSet

Directories

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

Jump to

Keyboard shortcuts

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