validator

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: validator.go

Generated by this command:

mockgen -source=validator.go -package=validator -destination=mock_validator.go ValidatorAPI

Package validator is a generated GoMock package.

Index

Constants

View Source
const (
	ServiceMonitorCRDName    = "servicemonitors.monitoring.coreos.com"
	ServiceMonitorCRDGroup   = "monitoring.coreos.com"
	ServiceMonitorCRDVersion = "v1"
)

Variables

This section is empty.

Functions

func ValidateDevicePluginSpec

func ValidateDevicePluginSpec(ctx context.Context, client client.Client, devConfig *amdv1alpha1.DeviceConfig) error

DevicePluginSpec validation

func ValidateDriverSpec

func ValidateDriverSpec(ctx context.Context, client client.Client, devConfig *amdv1alpha1.DeviceConfig) error

DriverSpec validation

func ValidateMetricsExporterSpec

func ValidateMetricsExporterSpec(ctx context.Context, client client.Client, devConfig *amdv1alpha1.DeviceConfig) error

MetricsExporterSpec validation

Types

type MockValidatorAPI

type MockValidatorAPI struct {
	// contains filtered or unexported fields
}

MockValidatorAPI is a mock of ValidatorAPI interface.

func NewMockValidatorAPI

func NewMockValidatorAPI(ctrl *gomock.Controller) *MockValidatorAPI

NewMockValidatorAPI creates a new mock instance.

func (*MockValidatorAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidatorAPI) ValidateDeviceConfigAll

func (m *MockValidatorAPI) ValidateDeviceConfigAll(ctx context.Context, client client.Client, devConfig *v1alpha1.DeviceConfig) []string

ValidateDeviceConfigAll mocks base method.

func (*MockValidatorAPI) ValidateDeviceConfigSpec

func (m *MockValidatorAPI) ValidateDeviceConfigSpec(ctx context.Context, client client.Client, devConfig *v1alpha1.DeviceConfig, specs []string) []string

ValidateDeviceConfigSpec mocks base method.

type MockValidatorAPIMockRecorder

type MockValidatorAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockValidatorAPIMockRecorder is the mock recorder for MockValidatorAPI.

func (*MockValidatorAPIMockRecorder) ValidateDeviceConfigAll

func (mr *MockValidatorAPIMockRecorder) ValidateDeviceConfigAll(ctx, client, devConfig any) *gomock.Call

ValidateDeviceConfigAll indicates an expected call of ValidateDeviceConfigAll.

func (*MockValidatorAPIMockRecorder) ValidateDeviceConfigSpec

func (mr *MockValidatorAPIMockRecorder) ValidateDeviceConfigSpec(ctx, client, devConfig, specs any) *gomock.Call

ValidateDeviceConfigSpec indicates an expected call of ValidateDeviceConfigSpec.

type ValidatorAPI

type ValidatorAPI interface {
	ValidateDeviceConfigAll(ctx context.Context, client client.Client, devConfig *amdv1alpha1.DeviceConfig) []string
	ValidateDeviceConfigSpec(ctx context.Context, client client.Client, devConfig *amdv1alpha1.DeviceConfig, specs []string) []string
}

func NewValidator

func NewValidator() ValidatorAPI

Jump to

Keyboard shortcuts

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