cmlvalidator

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cmlvalidator provides functions and types which validate CML related types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct{}

func (Duration) Description

func (v Duration) Description(ctx context.Context) string

func (Duration) MarkdownDescription

func (v Duration) MarkdownDescription(ctx context.Context) string

MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.

func (Duration) ValidateString

func (v Duration) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)

ValidateString runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.

type GroupPermission

type GroupPermission struct{}

func (GroupPermission) Description

func (v GroupPermission) Description(ctx context.Context) string

func (GroupPermission) MarkdownDescription

func (v GroupPermission) MarkdownDescription(ctx context.Context) string

MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.

func (GroupPermission) ValidateString

ValidateString runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.

type LabState

type LabState struct{}

func (LabState) Description

func (v LabState) Description(ctx context.Context) string

func (LabState) MarkdownDescription

func (v LabState) MarkdownDescription(ctx context.Context) string

MarkdownDescription returns a markdown formatted description of the validator's behavior, suitable for a practitioner to understand its impact.

func (LabState) ValidateString

func (v LabState) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)

ValidateString runs the main validation logic of the validator, reading configuration data out of `req` and updating `resp` with diagnostics.

Jump to

Keyboard shortcuts

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