cmlvalidator

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 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{}

Duration validates Go-style duration strings (e.g. "60m", "2h").

func (Duration) Description

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

Description returns a plain text description of the validator.

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{}

GroupPermission validates group permission strings.

func (GroupPermission) Description

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

Description returns a plain text description of the validator.

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{}

LabState validates lab state strings.

func (LabState) Description

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

Description returns a plain text description of the validator.

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