Documentation ¶
Overview ¶
Package validator provides utils to validate cluster resource placement resource.
Index ¶
- Variables
- func ValidateClusterResourcePlacement(clusterResourcePlacement *fleetv1beta1.ClusterResourcePlacement) error
- func ValidateClusterResourcePlacementAlpha(clusterResourcePlacement *fleetv1alpha1.ClusterResourcePlacement) error
- type MockResourceInformer
- func (m MockResourceInformer) AddDynamicResources(_ []informer.APIResourceMeta, _ cache.ResourceEventHandler, _ bool)
- func (m MockResourceInformer) AddStaticResource(_ informer.APIResourceMeta, _ cache.ResourceEventHandler)
- func (m MockResourceInformer) GetClient() dynamic.Interface
- func (m MockResourceInformer) GetNameSpaceScopedResources() []schema.GroupVersionResource
- func (m MockResourceInformer) IsClusterScopedResources(resource schema.GroupVersionKind) bool
- func (m MockResourceInformer) IsInformerSynced(_ schema.GroupVersionResource) bool
- func (m MockResourceInformer) Lister(_ schema.GroupVersionResource) cache.GenericLister
- func (m MockResourceInformer) Start()
- func (m MockResourceInformer) Stop()
- func (m MockResourceInformer) WaitForCacheSync()
Constants ¶
This section is empty.
Variables ¶
View Source
var ResourceInformer informer.Manager
Functions ¶
func ValidateClusterResourcePlacement ¶
func ValidateClusterResourcePlacement(clusterResourcePlacement *fleetv1beta1.ClusterResourcePlacement) error
ValidateClusterResourcePlacement validates a ClusterResourcePlacement object.
func ValidateClusterResourcePlacementAlpha ¶ added in v0.6.8
func ValidateClusterResourcePlacementAlpha(clusterResourcePlacement *fleetv1alpha1.ClusterResourcePlacement) error
ValidateClusterResourcePlacementAlpha validates a ClusterResourcePlacement v1alpha1 object.
Types ¶
type MockResourceInformer ¶ added in v0.6.9
type MockResourceInformer struct{}
func (MockResourceInformer) AddDynamicResources ¶ added in v0.6.9
func (m MockResourceInformer) AddDynamicResources(_ []informer.APIResourceMeta, _ cache.ResourceEventHandler, _ bool)
func (MockResourceInformer) AddStaticResource ¶ added in v0.6.9
func (m MockResourceInformer) AddStaticResource(_ informer.APIResourceMeta, _ cache.ResourceEventHandler)
func (MockResourceInformer) GetClient ¶ added in v0.6.9
func (m MockResourceInformer) GetClient() dynamic.Interface
func (MockResourceInformer) GetNameSpaceScopedResources ¶ added in v0.6.9
func (m MockResourceInformer) GetNameSpaceScopedResources() []schema.GroupVersionResource
func (MockResourceInformer) IsClusterScopedResources ¶ added in v0.6.9
func (m MockResourceInformer) IsClusterScopedResources(resource schema.GroupVersionKind) bool
func (MockResourceInformer) IsInformerSynced ¶ added in v0.6.9
func (m MockResourceInformer) IsInformerSynced(_ schema.GroupVersionResource) bool
func (MockResourceInformer) Lister ¶ added in v0.6.9
func (m MockResourceInformer) Lister(_ schema.GroupVersionResource) cache.GenericLister
func (MockResourceInformer) Start ¶ added in v0.6.9
func (m MockResourceInformer) Start()
func (MockResourceInformer) Stop ¶ added in v0.6.9
func (m MockResourceInformer) Stop()
func (MockResourceInformer) WaitForCacheSync ¶ added in v0.6.9
func (m MockResourceInformer) WaitForCacheSync()
Click to show internal directories.
Click to hide internal directories.