validator

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package validator provides utils to validate cluster resource placement resource.

Index

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 (MockResourceInformer) AddStaticResource added in v0.6.9

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 (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()

Jump to

Keyboard shortcuts

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