mistvalidator

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 19 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 ParseCidrPort added in v0.2.15

func ParseCidrPort(
	requireIp bool,
	allowVar bool,
) validator.String

func ParseImageDimension added in v0.1.34

func ParseImageDimension(x int, y int) validator.String

func ParseImageSize added in v0.1.34

func ParseImageSize(maxSize int) validator.String

func ParseImageType added in v0.1.34

func ParseImageType(allowPng bool, allowJpg bool) validator.String

func ParseInt

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

func ParseIp

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

func ParseIpPort added in v0.2.15

func ParseIpPort(
	requireIp bool,
	allowVar bool,
) validator.String

func ParseMac

func ParseMac() validator.String

func ParseMagic added in v0.1.32

func ParseMagic() validator.String

func ParseName

func ParseName() validator.String

func ParseNetmask

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

func ParseRangeOfInt added in v0.1.13

func ParseRangeOfInt(min int, max int, equalAlloweds bool) validator.String

func ParseVar

func ParseVar() validator.String

Types

type AllowedWhenValueIsInRequest added in v0.1.11

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

type AllowedWhenValueIsInResponse added in v0.1.11

type AllowedWhenValueIsInResponse struct {
	Diagnostics diag.Diagnostics
}

type AllowedWhenValueIsInValidator added in v0.1.11

type AllowedWhenValueIsInValidator struct {
	Expression path.Expression
	Values     []attr.Value
}

func AllowedWhenValueIsIn added in v0.1.11

func AllowedWhenValueIsIn(expression path.Expression, values []attr.Value) AllowedWhenValueIsInValidator

func (AllowedWhenValueIsInValidator) Description added in v0.1.11

func (AllowedWhenValueIsInValidator) MarkdownDescription added in v0.1.11

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

func (AllowedWhenValueIsInValidator) Validate added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateBool added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateFloat64 added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateInt64 added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateList added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateMap added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateNumber added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateObject added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateSet added in v0.1.11

func (AllowedWhenValueIsInValidator) ValidateString added in v0.1.11

type AllowedWhenValueIsInWithDefaultRequest added in v0.2.15

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

type AllowedWhenValueIsInWithDefaultResponse added in v0.2.15

type AllowedWhenValueIsInWithDefaultResponse struct {
	Diagnostics diag.Diagnostics
}

type AllowedWhenValueIsInWithDefaultValidator added in v0.2.15

type AllowedWhenValueIsInWithDefaultValidator struct {
	Expression   path.Expression
	Values       []attr.Value
	DefaultValue attr.Value
}

func AllowedWhenValueIsInWithDefault added in v0.2.15

func AllowedWhenValueIsInWithDefault(
	expression path.Expression,
	values []attr.Value,
	defaultValue attr.Value,
) AllowedWhenValueIsInWithDefaultValidator

func (AllowedWhenValueIsInWithDefaultValidator) Description added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) MarkdownDescription added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) Validate added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateBool added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateFloat64 added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateInt64 added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateList added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateMap added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateNumber added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateObject added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateSet added in v0.2.15

func (AllowedWhenValueIsInWithDefaultValidator) ValidateString added in v0.2.15

type AllowedWhenValueIsNullRequest added in v0.1.44

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

type AllowedWhenValueIsNullResponse added in v0.1.44

type AllowedWhenValueIsNullResponse struct {
	Diagnostics diag.Diagnostics
}

type AllowedWhenValueIsNullValidator added in v0.1.44

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

func AllowedWhenValueIsNull added in v0.1.44

func AllowedWhenValueIsNull(expression path.Expression) AllowedWhenValueIsNullValidator

func (AllowedWhenValueIsNullValidator) Description added in v0.1.44

func (AllowedWhenValueIsNullValidator) MarkdownDescription added in v0.1.44

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

func (AllowedWhenValueIsNullValidator) Validate added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateBool added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateFloat64 added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateInt64 added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateList added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateMap added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateNumber added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateObject added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateSet added in v0.1.44

func (AllowedWhenValueIsNullValidator) ValidateString added in v0.1.44

type AllowedWhenValueIsRequest added in v0.1.9

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

type AllowedWhenValueIsResponse added in v0.1.9

type AllowedWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type AllowedWhenValueIsValidator added in v0.1.9

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

func AllowedWhenValueIs added in v0.1.9

func AllowedWhenValueIs(expression path.Expression, value attr.Value) AllowedWhenValueIsValidator

func (AllowedWhenValueIsValidator) Description added in v0.1.9

func (AllowedWhenValueIsValidator) MarkdownDescription added in v0.1.9

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

func (AllowedWhenValueIsValidator) Validate added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateBool added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateFloat64 added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateInt64 added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateList added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateMap added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateNumber added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateObject added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateSet added in v0.1.9

func (AllowedWhenValueIsValidator) ValidateString added in v0.1.9

type AllowedWhenValueIsWithDefaultRequest added in v0.2.15

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

type AllowedWhenValueIsWithDefaultResponse added in v0.2.15

type AllowedWhenValueIsWithDefaultResponse struct {
	Diagnostics diag.Diagnostics
}

type AllowedWhenValueIsWithDefaultValidator added in v0.2.15

type AllowedWhenValueIsWithDefaultValidator struct {
	Expression   path.Expression
	Value        attr.Value
	DefaultValue attr.Value
}

func AllowedWhenValueIsWithDefault added in v0.2.15

func AllowedWhenValueIsWithDefault(
	expression path.Expression,
	value attr.Value,
	default_value attr.Value,
) AllowedWhenValueIsWithDefaultValidator

func (AllowedWhenValueIsWithDefaultValidator) Description added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) MarkdownDescription added in v0.2.15

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

func (AllowedWhenValueIsWithDefaultValidator) Validate added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateBool added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateFloat64 added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateInt64 added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateList added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateMap added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateNumber added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateObject added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateSet added in v0.2.15

func (AllowedWhenValueIsWithDefaultValidator) ValidateString added in v0.2.15

type AtLeastNOfValidator added in v0.1.9

type AtLeastNOfValidator struct {
	N               int
	PathExpressions path.Expressions
}

AtLeastNOfValidator is the underlying struct implementing AtLeastNOf.

func (AtLeastNOfValidator) Description added in v0.1.9

func (o AtLeastNOfValidator) Description(ctx context.Context) string

func (AtLeastNOfValidator) MarkdownDescription added in v0.1.9

func (o AtLeastNOfValidator) MarkdownDescription(_ context.Context) string

func (AtLeastNOfValidator) Validate added in v0.1.9

func (AtLeastNOfValidator) ValidateBool added in v0.1.9

func (AtLeastNOfValidator) ValidateFloat64 added in v0.1.9

func (AtLeastNOfValidator) ValidateInt64 added in v0.1.9

func (AtLeastNOfValidator) ValidateList added in v0.1.9

func (AtLeastNOfValidator) ValidateMap added in v0.1.9

func (AtLeastNOfValidator) ValidateNumber added in v0.1.9

func (AtLeastNOfValidator) ValidateObject added in v0.1.9

func (AtLeastNOfValidator) ValidateSet added in v0.1.9

func (AtLeastNOfValidator) ValidateString added in v0.1.9

type AtLeastNOfValidatorRequest added in v0.1.9

type AtLeastNOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	N              int
	Path           path.Path
	PathExpression path.Expression
}

type AtLeastNOfValidatorResponse added in v0.1.9

type AtLeastNOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type AtMostNOfValidator added in v0.1.9

type AtMostNOfValidator struct {
	N               int
	PathExpressions path.Expressions
}

AtMostNOfValidator is the underlying struct implementing AtMostNOf.

func (AtMostNOfValidator) Description added in v0.1.9

func (o AtMostNOfValidator) Description(ctx context.Context) string

func (AtMostNOfValidator) MarkdownDescription added in v0.1.9

func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string

func (AtMostNOfValidator) Validate added in v0.1.9

func (AtMostNOfValidator) ValidateBool added in v0.1.9

func (AtMostNOfValidator) ValidateFloat64 added in v0.1.9

func (AtMostNOfValidator) ValidateInt64 added in v0.1.9

func (AtMostNOfValidator) ValidateList added in v0.1.9

func (AtMostNOfValidator) ValidateMap added in v0.1.9

func (AtMostNOfValidator) ValidateNumber added in v0.1.9

func (AtMostNOfValidator) ValidateObject added in v0.1.9

func (AtMostNOfValidator) ValidateSet added in v0.1.9

func (AtMostNOfValidator) ValidateString added in v0.1.9

type AtMostNOfValidatorRequest added in v0.1.9

type AtMostNOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	N              int
	Path           path.Path
	PathExpression path.Expression
}

type AtMostNOfValidatorResponse added in v0.1.9

type AtMostNOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type CanOnlyBeTrueWhenValueIsRequest added in v0.2.15

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

type CanOnlyBeTrueWhenValueIsResponse added in v0.2.15

type CanOnlyBeTrueWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type CanOnlyBeTrueWhenValueIsValidator added in v0.2.15

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

func CanOnlyBeTrueWhenValueIs added in v0.2.15

func CanOnlyBeTrueWhenValueIs(expression path.Expression, value attr.Value) CanOnlyBeTrueWhenValueIsValidator

func (CanOnlyBeTrueWhenValueIsValidator) Description added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) MarkdownDescription added in v0.2.15

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

func (CanOnlyBeTrueWhenValueIsValidator) Validate added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateBool added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateFloat64 added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateInt64 added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateList added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateMap added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateNumber added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateObject added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateSet added in v0.2.15

func (CanOnlyBeTrueWhenValueIsValidator) ValidateString added in v0.2.15

type CannotBeTrueWhenValueIsRequest added in v0.2.12

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

type CannotBeTrueWhenValueIsResponse added in v0.2.12

type CannotBeTrueWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type CannotBeTrueWhenValueIsValidator added in v0.2.12

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

func CannotBeTrueWhenValueIs added in v0.2.12

func CannotBeTrueWhenValueIs(expression path.Expression, value attr.Value) CannotBeTrueWhenValueIsValidator

func (CannotBeTrueWhenValueIsValidator) Description added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) MarkdownDescription added in v0.2.12

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

func (CannotBeTrueWhenValueIsValidator) Validate added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateBool added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateFloat64 added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateInt64 added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateList added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateMap added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateNumber added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateObject added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateSet added in v0.2.12

func (CannotBeTrueWhenValueIsValidator) ValidateString added in v0.2.12

type ForbiddenWhenValueIsInWithDefaultRequest added in v0.2.15

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

type ForbiddenWhenValueIsInWithDefaultResponse added in v0.2.15

type ForbiddenWhenValueIsInWithDefaultResponse struct {
	Diagnostics diag.Diagnostics
}

type ForbiddenWhenValueIsInWithDefaultValidator added in v0.2.15

type ForbiddenWhenValueIsInWithDefaultValidator struct {
	Expression   path.Expression
	Values       []attr.Value
	DefaultValue attr.Value
}

func ForbiddenWhenValueIsInWithDefault added in v0.2.15

func ForbiddenWhenValueIsInWithDefault(
	expression path.Expression,
	values []attr.Value,
	defaultValue attr.Value,
) ForbiddenWhenValueIsInWithDefaultValidator

func (ForbiddenWhenValueIsInWithDefaultValidator) Description added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) MarkdownDescription added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) Validate added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateBool added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateFloat64 added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateInt64 added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateList added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateMap added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateNumber added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateObject added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateSet added in v0.2.15

func (ForbiddenWhenValueIsInWithDefaultValidator) ValidateString added in v0.2.15

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 ForbiddenWhenValueIsWithDefaultRequest added in v0.2.15

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

type ForbiddenWhenValueIsWithDefaultResponse added in v0.2.15

type ForbiddenWhenValueIsWithDefaultResponse struct {
	Diagnostics diag.Diagnostics
}

type ForbiddenWhenValueIsWithDefaultValidator added in v0.2.15

type ForbiddenWhenValueIsWithDefaultValidator struct {
	Expression   path.Expression
	Value        attr.Value
	DefaultValue attr.Value
}

func ForbiddenWhenValueIsWithDefault added in v0.2.15

func ForbiddenWhenValueIsWithDefault(
	expression path.Expression,
	value attr.Value,
	defaultValue attr.Value,
) ForbiddenWhenValueIsWithDefaultValidator

func (ForbiddenWhenValueIsWithDefaultValidator) Description added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) MarkdownDescription added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) Validate added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateBool added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateFloat64 added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateInt64 added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateList added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateMap added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateNumber added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateObject added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateSet added in v0.2.15

func (ForbiddenWhenValueIsWithDefaultValidator) ValidateString added in v0.2.15

type NineTypesValidator added in v0.1.8

func AtLeastNOf added in v0.1.9

func AtLeastNOf(n int, expressions ...path.Expression) NineTypesValidator

AtLeastNOf checks that of a set of path.Expression, including the attribute this validator is applied to, at least 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

func AtMostNOf added in v0.1.9

func AtMostNOf(n int, expressions ...path.Expression) NineTypesValidator

AtMostNOf checks that of a set of path.Expression, including the attribute this validator is applied to, at most 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

type ParseCidrPortValidator added in v0.2.15

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

func (ParseCidrPortValidator) Description added in v0.2.15

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

func (ParseCidrPortValidator) MarkdownDescription added in v0.2.15

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

func (ParseCidrPortValidator) ValidateString added in v0.2.15

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 ParseImageDimensionValidator added in v0.1.34

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

func (ParseImageDimensionValidator) Description added in v0.1.34

func (ParseImageDimensionValidator) MarkdownDescription added in v0.1.34

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

func (ParseImageDimensionValidator) ValidateString added in v0.1.34

type ParseImageSizeValidator added in v0.1.34

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

func (ParseImageSizeValidator) Description added in v0.1.34

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

func (ParseImageSizeValidator) MarkdownDescription added in v0.1.34

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

func (ParseImageSizeValidator) ValidateString added in v0.1.34

type ParseImageTypeValidator added in v0.1.34

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

func (ParseImageTypeValidator) Description added in v0.1.34

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

func (ParseImageTypeValidator) MarkdownDescription added in v0.1.34

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

func (ParseImageTypeValidator) ValidateString added in v0.1.34

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 ParseIpPortValidator added in v0.2.15

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

func (ParseIpPortValidator) Description added in v0.2.15

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

func (ParseIpPortValidator) MarkdownDescription added in v0.2.15

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

func (ParseIpPortValidator) ValidateString added in v0.2.15

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 ParseMagicValidator added in v0.1.32

type ParseMagicValidator struct{}

func (ParseMagicValidator) Description added in v0.1.32

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

func (ParseMagicValidator) MarkdownDescription added in v0.1.32

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

func (ParseMagicValidator) ValidateString added in v0.1.32

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 ParseRangeOfIntValidator added in v0.1.13

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

func (ParseRangeOfIntValidator) Description added in v0.1.13

func (ParseRangeOfIntValidator) MarkdownDescription added in v0.1.13

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

func (ParseRangeOfIntValidator) ValidateString added in v0.1.13

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 RequiredWhenValueIsInRequest added in v0.2.15

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

type RequiredWhenValueIsInResponse added in v0.2.15

type RequiredWhenValueIsInResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsInValidator added in v0.2.15

type RequiredWhenValueIsInValidator struct {
	Expression path.Expression
	Values     []attr.Value
}

func RequiredWhenValueIsIn added in v0.2.15

func RequiredWhenValueIsIn(expression path.Expression, values []attr.Value) RequiredWhenValueIsInValidator

func (RequiredWhenValueIsInValidator) Description added in v0.2.15

func (RequiredWhenValueIsInValidator) MarkdownDescription added in v0.2.15

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

func (RequiredWhenValueIsInValidator) Validate added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateBool added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateFloat64 added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateInt64 added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateList added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateMap added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateNumber added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateObject added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateSet added in v0.2.15

func (RequiredWhenValueIsInValidator) ValidateString added in v0.2.15

type RequiredWhenValueIsNotNullRequest added in v0.1.44

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

type RequiredWhenValueIsNotNullResponse added in v0.1.44

type RequiredWhenValueIsNotNullResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsNotNullValidator added in v0.1.44

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

func RequiredWhenValueIsNotNull added in v0.1.44

func RequiredWhenValueIsNotNull(expression path.Expression) RequiredWhenValueIsNotNullValidator

func (RequiredWhenValueIsNotNullValidator) Description added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) MarkdownDescription added in v0.1.44

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

func (RequiredWhenValueIsNotNullValidator) Validate added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateBool added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateFloat64 added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateInt64 added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateList added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateMap added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateNumber added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateObject added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateSet added in v0.1.44

func (RequiredWhenValueIsNotNullValidator) ValidateString added in v0.1.44

type RequiredWhenValueIsNullRequest added in v0.1.37

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

type RequiredWhenValueIsNullResponse added in v0.1.37

type RequiredWhenValueIsNullResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsNullValidator added in v0.1.37

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

func RequiredWhenValueIsNull added in v0.1.37

func RequiredWhenValueIsNull(expression path.Expression) RequiredWhenValueIsNullValidator

func (RequiredWhenValueIsNullValidator) Description added in v0.1.37

func (RequiredWhenValueIsNullValidator) MarkdownDescription added in v0.1.37

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

func (RequiredWhenValueIsNullValidator) Validate added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateBool added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateFloat64 added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateInt64 added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateList added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateMap added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateNumber added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateObject added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateSet added in v0.1.37

func (RequiredWhenValueIsNullValidator) ValidateString added in v0.1.37

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