validators

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DigestValidator

type DigestValidator struct{}

DigestValidator is a string validator that checks that the string is valid OCI reference by digest.

func (DigestValidator) Description

func (v DigestValidator) Description(context.Context) string

func (DigestValidator) MarkdownDescription

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

func (DigestValidator) ValidateString

type JSONValidator

type JSONValidator struct{}

JSONValidator is a string validator that checks that the string is valid JSON.

func (JSONValidator) Description

func (v JSONValidator) Description(context.Context) string

func (JSONValidator) MarkdownDescription

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

func (JSONValidator) ValidateString

type RefValidator

type RefValidator struct{}

RefValidator is a string validator that checks that the string is a valid OCI reference.

func (RefValidator) Description

func (v RefValidator) Description(context.Context) string

func (RefValidator) MarkdownDescription

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

func (RefValidator) ValidateString

type RepoValidator

type RepoValidator struct{}

func (RepoValidator) Description

func (v RepoValidator) Description(context.Context) string

func (RepoValidator) MarkdownDescription

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

func (RepoValidator) ValidateString

type TagValidator

type TagValidator struct{}

TagValidator is a string validator that checks that the string is valid OCI reference by digest.

func (TagValidator) Description

func (v TagValidator) Description(context.Context) string

func (TagValidator) MarkdownDescription

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

func (TagValidator) ValidateString

type URLValidator

type URLValidator struct{}

URLValidator is a string validator that checks that the string is a valid URL.

func (URLValidator) Description

func (v URLValidator) Description(context.Context) string

func (URLValidator) MarkdownDescription

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

func (URLValidator) ValidateString

Jump to

Keyboard shortcuts

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