validate

package
v1.18.0 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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwsKmsConfig

func AwsKmsConfig() validator.Object

func StringIsJSON

func StringIsJSON() validator.String

func StringIsUppercase added in v1.15.2

func StringIsUppercase() schema.SchemaValidateDiagFunc

func ValidCIDR

func ValidCIDR() validator.String

func ValidDurationBetween

func ValidDurationBetween(minMinutes, maxMinutes int) validator.String

func ValidIP

func ValidIP() validator.String

Types

type AwsKmsConfigValidator

type AwsKmsConfigValidator struct{}

func (AwsKmsConfigValidator) Description

func (v AwsKmsConfigValidator) Description(_ context.Context) string

func (AwsKmsConfigValidator) MarkdownDescription

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

func (AwsKmsConfigValidator) ValidateObject

type CIDRValidator

type CIDRValidator struct{}

func (CIDRValidator) Description

func (v CIDRValidator) Description(_ context.Context) string

func (CIDRValidator) MarkdownDescription

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

func (CIDRValidator) ValidateString

func (v CIDRValidator) ValidateString(ctx context.Context, req validator.StringRequest, response *validator.StringResponse)

type DurationValidator

type DurationValidator struct {
	MinMinutes int
	MaxMinutes int
}

func (DurationValidator) Description

func (v DurationValidator) Description(_ context.Context) string

func (DurationValidator) MarkdownDescription

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

func (DurationValidator) ValidateString

func (v DurationValidator) ValidateString(ctx context.Context, req validator.StringRequest, response *validator.StringResponse)

type IPValidator

type IPValidator struct{}

func (IPValidator) Description

func (v IPValidator) Description(_ context.Context) string

func (IPValidator) MarkdownDescription

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

func (IPValidator) ValidateString

func (v IPValidator) ValidateString(ctx context.Context, req validator.StringRequest, response *validator.StringResponse)

type JSONStringValidator

type JSONStringValidator struct{}

func (JSONStringValidator) Description

func (v JSONStringValidator) Description(_ context.Context) string

func (JSONStringValidator) MarkdownDescription

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

func (JSONStringValidator) ValidateString

func (v JSONStringValidator) ValidateString(ctx context.Context, req validator.StringRequest, response *validator.StringResponse)

Jump to

Keyboard shortcuts

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