mistvalidator

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtLeastNAttributes

func AtLeastNAttributes(n int, attributes ...string) validator.Object

func AtMostNAttributes

func AtMostNAttributes(n int, attributes ...string) validator.Object

func ExactlyNAttributes

func ExactlyNAttributes(n int, attributes ...string) validator.Object

func ParseCidr

func ParseCidr(requireIpv4 bool, requireIpv6 bool) validator.String

func ParseInt

func ParseInt(min int, max int) validator.String

func ParseIp

func ParseIp(requireIpv4 bool, requireIpv6 bool) validator.String

func ParseMac

func ParseMac() validator.String

func ParseName

func ParseName() validator.String

func ParseNetmask

func ParseNetmask(cidrFormat bool, decimalFormat bool) validator.String

func ParseVar

func ParseVar() validator.String

Types

type ForbiddenWhenValueIsRequest added in v0.1.8

type ForbiddenWhenValueIsRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type ForbiddenWhenValueIsResponse added in v0.1.8

type ForbiddenWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type ForbiddenWhenValueIsValidator added in v0.1.8

type ForbiddenWhenValueIsValidator struct {
	Expression path.Expression
	Value      attr.Value
}

func ForbiddenWhenValueIs added in v0.1.8

func ForbiddenWhenValueIs(expression path.Expression, value attr.Value) ForbiddenWhenValueIsValidator

func (ForbiddenWhenValueIsValidator) Description added in v0.1.8

func (ForbiddenWhenValueIsValidator) MarkdownDescription added in v0.1.8

func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string

func (ForbiddenWhenValueIsValidator) Validate added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateBool added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateFloat64 added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateInt64 added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateList added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateMap added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateNumber added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateObject added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateSet added in v0.1.8

func (ForbiddenWhenValueIsValidator) ValidateString added in v0.1.8

type ParseCidrValidator

type ParseCidrValidator struct {
	// contains filtered or unexported fields
}

func (ParseCidrValidator) Description

func (o ParseCidrValidator) Description(_ context.Context) string

func (ParseCidrValidator) MarkdownDescription

func (o ParseCidrValidator) MarkdownDescription(ctx context.Context) string

func (ParseCidrValidator) ValidateString

type ParseIntValidator

type ParseIntValidator struct {
	// contains filtered or unexported fields
}

func (ParseIntValidator) Description

func (o ParseIntValidator) Description(_ context.Context) string

func (ParseIntValidator) MarkdownDescription

func (o ParseIntValidator) MarkdownDescription(ctx context.Context) string

func (ParseIntValidator) ValidateString

type ParseIpValidator

type ParseIpValidator struct {
	// contains filtered or unexported fields
}

func (ParseIpValidator) Description

func (o ParseIpValidator) Description(_ context.Context) string

func (ParseIpValidator) MarkdownDescription

func (o ParseIpValidator) MarkdownDescription(ctx context.Context) string

func (ParseIpValidator) ValidateString

type ParseMacValidator

type ParseMacValidator struct{}

func (ParseMacValidator) Description

func (o ParseMacValidator) Description(_ context.Context) string

func (ParseMacValidator) MarkdownDescription

func (o ParseMacValidator) MarkdownDescription(ctx context.Context) string

func (ParseMacValidator) ValidateString

type ParseNameValidator

type ParseNameValidator struct{}

func (ParseNameValidator) Description

func (o ParseNameValidator) Description(_ context.Context) string

func (ParseNameValidator) MarkdownDescription

func (o ParseNameValidator) MarkdownDescription(ctx context.Context) string

func (ParseNameValidator) ValidateString

type ParseNetmaskValidator

type ParseNetmaskValidator struct {
	// contains filtered or unexported fields
}

func (ParseNetmaskValidator) Description

func (o ParseNetmaskValidator) Description(_ context.Context) string

func (ParseNetmaskValidator) MarkdownDescription

func (o ParseNetmaskValidator) MarkdownDescription(ctx context.Context) string

func (ParseNetmaskValidator) ValidateString

type ParseVarValidator

type ParseVarValidator struct{}

func (ParseVarValidator) Description

func (o ParseVarValidator) Description(_ context.Context) string

func (ParseVarValidator) MarkdownDescription

func (o ParseVarValidator) MarkdownDescription(ctx context.Context) string

func (ParseVarValidator) ValidateString

type RequiredWhenValueIsRequest added in v0.1.8

type RequiredWhenValueIsRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RequiredWhenValueIsResponse added in v0.1.8

type RequiredWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsValidator added in v0.1.8

type RequiredWhenValueIsValidator struct {
	// contains filtered or unexported fields
}

func RequiredWhenValueIs added in v0.1.8

func RequiredWhenValueIs(expression path.Expression, value attr.Value) RequiredWhenValueIsValidator

func (RequiredWhenValueIsValidator) Description added in v0.1.8

func (RequiredWhenValueIsValidator) MarkdownDescription added in v0.1.8

func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string

func (RequiredWhenValueIsValidator) Validate added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateBool added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateFloat64 added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateInt64 added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateList added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateMap added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateNumber added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateObject added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateSet added in v0.1.8

func (RequiredWhenValueIsValidator) ValidateString added in v0.1.8

Jump to

Keyboard shortcuts

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