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 ¶
Description returns a plain text description of the validator.
func (Duration) MarkdownDescription ¶
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 ¶
func (v GroupPermission) 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 LabState ¶
type LabState struct{}
LabState validates lab state strings.
func (LabState) Description ¶
Description returns a plain text description of the validator.
func (LabState) MarkdownDescription ¶
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.