Help us shape the future of Go! Take the 2026 Go Developer Survey

validator

package
v1.224.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package validator is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var ErrSchemaNotFound = errors.New("failed to fetch schema")

Functions

This section is empty.

Types

type MockValidator

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

MockValidator is a mock of Validator interface.

func NewMockValidator

func NewMockValidator(ctrl *gomock.Controller) *MockValidator

NewMockValidator creates a new mock instance.

func (*MockValidator) EXPECT

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

func (*MockValidator) ValidateYAMLContent added in v1.224.0

func (m *MockValidator) ValidateYAMLContent(schema string, yamlContent []byte) ([]gojsonschema.ResultError, error)

ValidateYAMLContent mocks base method.

func (*MockValidator) ValidateYAMLSchema

func (m *MockValidator) ValidateYAMLSchema(schema, sourceFile string) ([]gojsonschema.ResultError, error)

ValidateYAMLSchema mocks base method.

type MockValidatorMockRecorder

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

MockValidatorMockRecorder is the mock recorder for MockValidator.

func (*MockValidatorMockRecorder) ValidateYAMLContent added in v1.224.0

func (mr *MockValidatorMockRecorder) ValidateYAMLContent(schema, yamlContent any) *gomock.Call

ValidateYAMLContent indicates an expected call of ValidateYAMLContent.

func (*MockValidatorMockRecorder) ValidateYAMLSchema

func (mr *MockValidatorMockRecorder) ValidateYAMLSchema(schema, sourceFile any) *gomock.Call

ValidateYAMLSchema indicates an expected call of ValidateYAMLSchema.

type Validator

type Validator interface {
	ValidateYAMLSchema(schema, sourceFile string) ([]gojsonschema.ResultError, error)
	// ValidateYAMLContent validates in-memory YAML content (e.g. an unsaved
	// editor buffer) instead of a fetched source.
	ValidateYAMLContent(schema string, yamlContent []byte) ([]gojsonschema.ResultError, error)
}

func NewYAMLSchemaValidator

func NewYAMLSchemaValidator(atmosConfig *schema.AtmosConfiguration) Validator

Jump to

Keyboard shortcuts

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