Documentation
¶
Index ¶
- func AtLeastNAttributes(n int, attributes ...string) validator.Object
- func AtMostNAttributes(n int, attributes ...string) validator.Object
- func BoolForbiddenWhenValueIs(expression path.Expression, value string) validator.Bool
- func ExactlyNAttributes(n int, attributes ...string) validator.Object
- func ExactlyOneBindingWhenVnTypeVlan() validator.Map
- func FallsWithinCidr(e path.Expression, allZerosOk bool, allOnesOk bool) validator.String
- func Float64ForbiddenWhenValueIs(expression path.Expression, value string) validator.Float64
- func Int64FabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.Int64
- func Int64FabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.Int64
- func Int64ForbiddenWhenValueIs(expression path.Expression, value string) validator.Int64
- func MapForbiddenWhenValueIs(expression path.Expression, value string) validator.Map
- func MustBeEvenOrOdd(even bool) validator.Int64
- func NumberForbiddenWhenValueIs(expression path.Expression, value string) validator.Number
- func ObjectForbiddenWhenValueIs(expression path.Expression, value string) validator.Object
- func ParseCidr(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseIp(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseIpOrCidr(requireIpv4 bool, requireIpv6 bool) validator.String
- func ParseJson() validator.String
- func ParseRT() validator.String
- func ParseSpeed() validator.String
- func SetForbiddenWhenValueIs(expression path.Expression, value string) validator.Set
- func StringFabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.String
- func StringFabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.String
- func StringFabricConnectivityDesignMustBeWhenValue(fcd apstra.FabricConnectivityDesign, value string) validator.String
- func StringForbiddenWhenValueIs(expression path.Expression, value string) validator.String
- func ValidateLeafSwitchRedundancyMode() validator.String
- func ValidateSwitchLagInfo(m string) validator.Object
- func ValueAtMustBeBool(e path.Expression, v attr.Value, nullOk bool) validator.Bool
- func ValueAtMustBeFloat64(e path.Expression, v attr.Value, nullOk bool) validator.Float64
- func ValueAtMustBeInt64(e path.Expression, v attr.Value, nullOk bool) validator.Int64
- func ValueAtMustBeList(e path.Expression, v attr.Value, nullOk bool) validator.List
- func ValueAtMustBeMap(e path.Expression, v attr.Value, nullOk bool) validator.Map
- func ValueAtMustBeNumber(e path.Expression, v attr.Value, nullOk bool) validator.Number
- func ValueAtMustBeObject(e path.Expression, v attr.Value, nullOk bool) validator.Object
- func ValueAtMustBeSet(e path.Expression, v attr.Value, nullOk bool) validator.Set
- func ValueAtMustBeString(e path.Expression, v attr.Value, nullOk bool) validator.String
- func WhenValueAtMustBeBool(e path.Expression, v attr.Value, validators ...validator.Bool) validator.Bool
- func WhenValueAtMustBeFloat64(e path.Expression, v attr.Value, validators ...validator.Float64) validator.Float64
- func WhenValueAtMustBeInt64(e path.Expression, v attr.Value, validators ...validator.Int64) validator.Int64
- func WhenValueAtMustBeList(e path.Expression, v attr.Value, validators ...validator.List) validator.List
- func WhenValueAtMustBeMap(e path.Expression, v attr.Value, validators ...validator.Map) validator.Map
- func WhenValueAtMustBeNumber(e path.Expression, v attr.Value, validators ...validator.Number) validator.Number
- func WhenValueAtMustBeObject(e path.Expression, v attr.Value, validators ...validator.Object) validator.Object
- func WhenValueAtMustBeSet(e path.Expression, v attr.Value, validators ...validator.Set) validator.Set
- func WhenValueAtMustBeString(e path.Expression, trigger attr.Value, validators ...validator.String) validator.String
- func WhenValueIsBool(trigger types.Bool, validators ...validator.Bool) validator.Bool
- func WhenValueIsFloat64(trigger types.Float64, validators ...validator.Float64) validator.Float64
- func WhenValueIsInt64(trigger types.Int64, validators ...validator.Int64) validator.Int64
- func WhenValueIsList(trigger types.List, validators ...validator.List) validator.List
- func WhenValueIsMap(trigger types.Map, validators ...validator.Map) validator.Map
- func WhenValueIsNumber(trigger types.Number, validators ...validator.Number) validator.Number
- func WhenValueIsObject(trigger types.Object, validators ...validator.Object) validator.Object
- func WhenValueIsSet(trigger types.Set, validators ...validator.Set) validator.Set
- func WhenValueIsString(trigger types.String, validators ...validator.String) validator.String
- func WhenValueSetBool(validators ...validator.Bool) validator.Bool
- func WhenValueSetFloat64(validators ...validator.Float64) validator.Float64
- func WhenValueSetInt64(validators ...validator.Int64) validator.Int64
- func WhenValueSetList(validators ...validator.List) validator.List
- func WhenValueSetMap(validators ...validator.Map) validator.Map
- func WhenValueSetNumber(validators ...validator.Number) validator.Number
- func WhenValueSetObject(validators ...validator.Object) validator.Object
- func WhenValueSetSet(validators ...validator.Set) validator.Set
- func WhenValueSetString(validators ...validator.String) validator.String
- type AlsoRequiresNOfValidator
- func (o AlsoRequiresNOfValidator) Description(ctx context.Context) string
- func (o AlsoRequiresNOfValidator) MarkdownDescription(_ context.Context) string
- func (o AlsoRequiresNOfValidator) Validate(ctx context.Context, req AlsoRequiresNOfValidatorRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AlsoRequiresNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AlsoRequiresNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AlsoRequiresNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AlsoRequiresNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AlsoRequiresNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AlsoRequiresNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AlsoRequiresNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AlsoRequiresNOfValidatorRequest
- type AlsoRequiresNOfValidatorResponse
- type AtLeastProductOfValidator
- func (o AtLeastProductOfValidator) Description(ctx context.Context) string
- func (o AtLeastProductOfValidator) MarkdownDescription(_ context.Context) string
- func (o AtLeastProductOfValidator) Validate(ctx context.Context, req AtLeastProductOfValidatorRequest, ...)
- func (o AtLeastProductOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AtLeastProductOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AtLeastProductOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- type AtLeastProductOfValidatorRequest
- type AtLeastProductOfValidatorResponse
- type AtMostNOfValidator
- func (o AtMostNOfValidator) Description(ctx context.Context) string
- func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string
- func (o AtMostNOfValidator) Validate(ctx context.Context, req AtMostNOfValidatorRequest, ...)
- func (o AtMostNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o AtMostNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o AtMostNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o AtMostNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o AtMostNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o AtMostNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o AtMostNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o AtMostNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o AtMostNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type AtMostNOfValidatorRequest
- type AtMostNOfValidatorResponse
- type CollectionValidator
- type DifferentFromValidator
- func (o DifferentFromValidator) Description(ctx context.Context) string
- func (o DifferentFromValidator) MarkdownDescription(_ context.Context) string
- func (o DifferentFromValidator) Validate(ctx context.Context, req DifferentFromValidatorRequest, ...)
- func (o DifferentFromValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o DifferentFromValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o DifferentFromValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o DifferentFromValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o DifferentFromValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o DifferentFromValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o DifferentFromValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o DifferentFromValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o DifferentFromValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type DifferentFromValidatorRequest
- type DifferentFromValidatorResponse
- type DifferentFromValuesValidator
- func (o DifferentFromValuesValidator) Description(ctx context.Context) string
- func (o DifferentFromValuesValidator) MarkdownDescription(_ context.Context) string
- func (o DifferentFromValuesValidator) Validate(ctx context.Context, req DifferentFromValuesValidatorRequest, ...)
- func (o DifferentFromValuesValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o DifferentFromValuesValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o DifferentFromValuesValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o DifferentFromValuesValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o DifferentFromValuesValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o DifferentFromValuesValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o DifferentFromValuesValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o DifferentFromValuesValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o DifferentFromValuesValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type DifferentFromValuesValidatorRequest
- type DifferentFromValuesValidatorResponse
- type ExactlyOneBindingWhenVnTypeVlanValidator
- func (o ExactlyOneBindingWhenVnTypeVlanValidator) Description(_ context.Context) string
- func (o ExactlyOneBindingWhenVnTypeVlanValidator) MarkdownDescription(ctx context.Context) string
- func (o ExactlyOneBindingWhenVnTypeVlanValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- type ForbiddenWhenValueIsRequest
- type ForbiddenWhenValueIsResponse
- type ForbiddenWhenValueIsValidator
- func (o ForbiddenWhenValueIsValidator) Description(_ context.Context) string
- func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o ForbiddenWhenValueIsValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o ForbiddenWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o ForbiddenWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o ForbiddenWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type LeafSwitchMlagInfoValidator
- type MustBeEvenOrOddValidator
- type NineTypesValidator
- type ParseCidrValidator
- type ParseIpOrCidrValidator
- type ParseIpValidator
- type ParseJsonValidator
- type ParseRtValidator
- type ParseSpeedValidator
- type RackFabricConnectivityDesignMustBeValidator
- func (o RackFabricConnectivityDesignMustBeValidator) Description(_ context.Context) string
- func (o RackFabricConnectivityDesignMustBeValidator) MarkdownDescription(ctx context.Context) string
- func (o RackFabricConnectivityDesignMustBeValidator) Validate(ctx context.Context, req RackFabricConnectivityDesignMustBeValidatorRequest, ...)
- func (o RackFabricConnectivityDesignMustBeValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RackFabricConnectivityDesignMustBeValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RackFabricConnectivityDesignMustBeValidatorRequest
- type RackFabricConnectivityDesignMustBeValidatorResponse
- type RackFabricConnectivityDesignMustBeWhenNullValidator
- func (o RackFabricConnectivityDesignMustBeWhenNullValidator) Description(_ context.Context) string
- func (o RackFabricConnectivityDesignMustBeWhenNullValidator) MarkdownDescription(ctx context.Context) string
- func (o RackFabricConnectivityDesignMustBeWhenNullValidator) Validate(ctx context.Context, ...)
- func (o RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RackFabricConnectivityDesignMustBeWhenNullValidatorRequest
- type RackFabricConnectivityDesignMustBeWhenNullValidatorResponse
- type RackFabricConnectivityDesignMustBeWhenValueValidator
- func (o RackFabricConnectivityDesignMustBeWhenValueValidator) Description(_ context.Context) string
- func (o RackFabricConnectivityDesignMustBeWhenValueValidator) MarkdownDescription(ctx context.Context) string
- func (o RackFabricConnectivityDesignMustBeWhenValueValidator) Validate(ctx context.Context, ...)
- func (o RackFabricConnectivityDesignMustBeWhenValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RackFabricConnectivityDesignMustBeWhenValueValidatorRequest
- type RackFabricConnectivityDesignMustBeWhenValueValidatorResponse
- type RequiredWhenValueIsRequest
- type RequiredWhenValueIsResponse
- type RequiredWhenValueIsValidator
- func (o RequiredWhenValueIsValidator) Description(_ context.Context) string
- func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueIsValidator) Validate(ctx context.Context, req RequiredWhenValueIsRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type RequiredWhenValueNullRequest
- type RequiredWhenValueNullResponse
- type RequiredWhenValueNullValidator
- func (o RequiredWhenValueNullValidator) Description(_ context.Context) string
- func (o RequiredWhenValueNullValidator) MarkdownDescription(ctx context.Context) string
- func (o RequiredWhenValueNullValidator) Validate(ctx context.Context, req RequiredWhenValueNullRequest, ...)
- func (o RequiredWhenValueNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
- func (o RequiredWhenValueNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, ...)
- func (o RequiredWhenValueNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
- func (o RequiredWhenValueNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
- func (o RequiredWhenValueNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
- func (o RequiredWhenValueNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, ...)
- func (o RequiredWhenValueNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, ...)
- func (o RequiredWhenValueNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
- func (o RequiredWhenValueNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, ...)
- type SwitchLagInfoValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeastNAttributes ¶ added in v0.36.0
func AtMostNAttributes ¶ added in v0.36.0
func BoolForbiddenWhenValueIs ¶
func BoolForbiddenWhenValueIs(expression path.Expression, value string) validator.Bool
func ExactlyNAttributes ¶ added in v0.36.0
func ExactlyOneBindingWhenVnTypeVlan ¶
ExactlyOneBindingWhenVnTypeVlan ensures that exactly one leaf node binding exists when the attribute at the neighboring `type` attribute matches apstra.VnTypeVlan
func FallsWithinCidr ¶
FallsWithinCidr determines whether this attribute's value falls within the CIDR block specified by the attribute at expression. Arguments allZerosOk and allOnesOk modify the notion of "within" to include (true) or exclude (false) the first (all zeros) and last (all ones) addresses in the block.
func Float64ForbiddenWhenValueIs ¶
func Float64ForbiddenWhenValueIs(expression path.Expression, value string) validator.Float64
func Int64FabricConnectivityDesignMustBe ¶
func Int64FabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.Int64
func Int64FabricConnectivityDesignMustBeWhenNull ¶
func Int64FabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.Int64
func Int64ForbiddenWhenValueIs ¶
func Int64ForbiddenWhenValueIs(expression path.Expression, value string) validator.Int64
func MapForbiddenWhenValueIs ¶
func MapForbiddenWhenValueIs(expression path.Expression, value string) validator.Map
func MustBeEvenOrOdd ¶
func NumberForbiddenWhenValueIs ¶
func NumberForbiddenWhenValueIs(expression path.Expression, value string) validator.Number
func ObjectForbiddenWhenValueIs ¶
func ObjectForbiddenWhenValueIs(expression path.Expression, value string) validator.Object
func ParseSpeed ¶
func SetForbiddenWhenValueIs ¶
func SetForbiddenWhenValueIs(expression path.Expression, value string) validator.Set
func StringFabricConnectivityDesignMustBe ¶
func StringFabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.String
func StringFabricConnectivityDesignMustBeWhenNull ¶
func StringFabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.String
func StringFabricConnectivityDesignMustBeWhenValue ¶
func StringFabricConnectivityDesignMustBeWhenValue(fcd apstra.FabricConnectivityDesign, value string) validator.String
func StringForbiddenWhenValueIs ¶
func StringForbiddenWhenValueIs(expression path.Expression, value string) validator.String
func ValidateSwitchLagInfo ¶
func ValueAtMustBeBool ¶
ValueAtMustBeBool ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeFloat64 ¶
ValueAtMustBeFloat64 ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeInt64 ¶
ValueAtMustBeInt64 ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeList ¶
ValueAtMustBeList ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeMap ¶
ValueAtMustBeMap ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeNumber ¶
ValueAtMustBeNumber ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeObject ¶
ValueAtMustBeObject ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeSet ¶
ValueAtMustBeSet ensures that the value configured for a different attribute has the specified value.
func ValueAtMustBeString ¶
ValueAtMustBeString ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeBool ¶
func WhenValueAtMustBeBool(e path.Expression, v attr.Value, validators ...validator.Bool) validator.Bool
WhenValueAtMustBeBool ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeFloat64 ¶
func WhenValueAtMustBeFloat64(e path.Expression, v attr.Value, validators ...validator.Float64) validator.Float64
WhenValueAtMustBeFloat64 ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeInt64 ¶
func WhenValueAtMustBeInt64(e path.Expression, v attr.Value, validators ...validator.Int64) validator.Int64
WhenValueAtMustBeInt64 ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeList ¶
func WhenValueAtMustBeList(e path.Expression, v attr.Value, validators ...validator.List) validator.List
WhenValueAtMustBeList ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeMap ¶
func WhenValueAtMustBeMap(e path.Expression, v attr.Value, validators ...validator.Map) validator.Map
WhenValueAtMustBeMap ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeNumber ¶
func WhenValueAtMustBeNumber(e path.Expression, v attr.Value, validators ...validator.Number) validator.Number
WhenValueAtMustBeNumber ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeObject ¶
func WhenValueAtMustBeObject(e path.Expression, v attr.Value, validators ...validator.Object) validator.Object
WhenValueAtMustBeObject ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeSet ¶
func WhenValueAtMustBeSet(e path.Expression, v attr.Value, validators ...validator.Set) validator.Set
WhenValueAtMustBeSet ensures that the value configured for a different attribute has the specified value.
func WhenValueAtMustBeString ¶
func WhenValueAtMustBeString(e path.Expression, trigger attr.Value, validators ...validator.String) validator.String
WhenValueAtMustBeString ensures that the value configured for a different attribute has the specified value.
func WhenValueIsBool ¶
WhenValueIsBool runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsFloat64 ¶
WhenValueIsFloat64 runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsInt64 ¶
WhenValueIsInt64 runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsList ¶
WhenValueIsList runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsMap ¶
WhenValueIsMap runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsNumber ¶
WhenValueIsNumber runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsObject ¶
WhenValueIsObject runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsSet ¶
WhenValueIsSet runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueIsString ¶
WhenValueIsString runs the supplied validators only when the configured value is equal to the trigger value.
func WhenValueSetBool ¶
WhenValueSetBool runs the supplied validators only when the configured value is set.
func WhenValueSetFloat64 ¶
WhenValueSetFloat64 runs the supplied validators only when the configured value is set.
func WhenValueSetInt64 ¶
WhenValueSetInt64 runs the supplied validators only when the configured value is set.
func WhenValueSetList ¶
WhenValueSetList runs the supplied validators only when the configured value is set.
func WhenValueSetMap ¶
WhenValueSetMap runs the supplied validators only when the configured value is set.
func WhenValueSetNumber ¶
WhenValueSetNumber runs the supplied validators only when the configured value is set.
func WhenValueSetObject ¶
WhenValueSetObject runs the supplied validators only when the configured value is set.
func WhenValueSetSet ¶
WhenValueSetSet runs the supplied validators only when the configured value is set.
Types ¶
type AlsoRequiresNOfValidator ¶
type AlsoRequiresNOfValidator struct { N int PathExpressions path.Expressions }
AlsoRequiresNOfValidator is the underlying struct implementing AlsoRequiresNOf.
func (AlsoRequiresNOfValidator) Description ¶
func (o AlsoRequiresNOfValidator) Description(ctx context.Context) string
func (AlsoRequiresNOfValidator) MarkdownDescription ¶
func (o AlsoRequiresNOfValidator) MarkdownDescription(_ context.Context) string
func (AlsoRequiresNOfValidator) Validate ¶
func (o AlsoRequiresNOfValidator) Validate(ctx context.Context, req AlsoRequiresNOfValidatorRequest, resp *AlsoRequiresNOfValidatorResponse)
func (AlsoRequiresNOfValidator) ValidateBool ¶
func (o AlsoRequiresNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AlsoRequiresNOfValidator) ValidateFloat64 ¶
func (o AlsoRequiresNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AlsoRequiresNOfValidator) ValidateInt64 ¶
func (o AlsoRequiresNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AlsoRequiresNOfValidator) ValidateList ¶
func (o AlsoRequiresNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AlsoRequiresNOfValidator) ValidateMap ¶
func (o AlsoRequiresNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AlsoRequiresNOfValidator) ValidateNumber ¶
func (o AlsoRequiresNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AlsoRequiresNOfValidator) ValidateObject ¶
func (o AlsoRequiresNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AlsoRequiresNOfValidator) ValidateSet ¶
func (o AlsoRequiresNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AlsoRequiresNOfValidator) ValidateString ¶
func (o AlsoRequiresNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AlsoRequiresNOfValidatorResponse ¶
type AlsoRequiresNOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type AtLeastProductOfValidator ¶
type AtLeastProductOfValidator struct { PathExpression path.Expression Multiplier float64 }
AtLeastProductOfValidator is the underlying struct implementing AtLeastProductOf.
func AtLeastProductOf ¶
func AtLeastProductOf(multiplier float64, expression path.Expression) *AtLeastProductOfValidator
AtLeastProductOf checks that a set of path.Expression have values equal to the current attribute when the current attribute is non-null.
Relative path.Expression will be resolved using the attribute being validated.
func (AtLeastProductOfValidator) Description ¶
func (o AtLeastProductOfValidator) Description(ctx context.Context) string
func (AtLeastProductOfValidator) MarkdownDescription ¶
func (o AtLeastProductOfValidator) MarkdownDescription(_ context.Context) string
func (AtLeastProductOfValidator) Validate ¶
func (o AtLeastProductOfValidator) Validate(ctx context.Context, req AtLeastProductOfValidatorRequest, resp *AtLeastProductOfValidatorResponse)
func (AtLeastProductOfValidator) ValidateFloat64 ¶
func (o AtLeastProductOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AtLeastProductOfValidator) ValidateInt64 ¶
func (o AtLeastProductOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AtLeastProductOfValidator) ValidateNumber ¶
func (o AtLeastProductOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
type AtLeastProductOfValidatorResponse ¶
type AtLeastProductOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type AtMostNOfValidator ¶
type AtMostNOfValidator struct { N int PathExpressions path.Expressions }
AtMostNOfValidator is the underlying struct implementing AtMostNOf.
func (AtMostNOfValidator) Description ¶
func (o AtMostNOfValidator) Description(ctx context.Context) string
func (AtMostNOfValidator) MarkdownDescription ¶
func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string
func (AtMostNOfValidator) Validate ¶
func (o AtMostNOfValidator) Validate(ctx context.Context, req AtMostNOfValidatorRequest, resp *AtMostNOfValidatorResponse)
func (AtMostNOfValidator) ValidateBool ¶
func (o AtMostNOfValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (AtMostNOfValidator) ValidateFloat64 ¶
func (o AtMostNOfValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (AtMostNOfValidator) ValidateInt64 ¶
func (o AtMostNOfValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (AtMostNOfValidator) ValidateList ¶
func (o AtMostNOfValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (AtMostNOfValidator) ValidateMap ¶
func (o AtMostNOfValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (AtMostNOfValidator) ValidateNumber ¶
func (o AtMostNOfValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (AtMostNOfValidator) ValidateObject ¶
func (o AtMostNOfValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (AtMostNOfValidator) ValidateSet ¶
func (o AtMostNOfValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (AtMostNOfValidator) ValidateString ¶
func (o AtMostNOfValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type AtMostNOfValidatorResponse ¶
type AtMostNOfValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type CollectionValidator ¶ added in v0.36.0
func UniqueInsensitiveValueCombinationsAt ¶ added in v0.36.0
func UniqueInsensitiveValueCombinationsAt(attrNames ...string) CollectionValidator
func UniqueValueCombinationsAt ¶ added in v0.36.0
func UniqueValueCombinationsAt(attrNames ...string) CollectionValidator
type DifferentFromValidator ¶
type DifferentFromValidator struct {
PathExpressions path.Expressions
}
DifferentFromValidator is the underlying struct implementing DifferentFrom.
func DifferentFrom ¶
func DifferentFrom(expressions ...path.Expression) *DifferentFromValidator
DifferentFrom checks that a set of path.Expression have values equal to the current attribute when the current attribute is non-null.
Relative path.Expression will be resolved using the attribute being validated.
func (DifferentFromValidator) Description ¶
func (o DifferentFromValidator) Description(ctx context.Context) string
func (DifferentFromValidator) MarkdownDescription ¶
func (o DifferentFromValidator) MarkdownDescription(_ context.Context) string
func (DifferentFromValidator) Validate ¶
func (o DifferentFromValidator) Validate(ctx context.Context, req DifferentFromValidatorRequest, resp *DifferentFromValidatorResponse)
func (DifferentFromValidator) ValidateBool ¶
func (o DifferentFromValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (DifferentFromValidator) ValidateFloat64 ¶
func (o DifferentFromValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (DifferentFromValidator) ValidateInt64 ¶
func (o DifferentFromValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (DifferentFromValidator) ValidateList ¶
func (o DifferentFromValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (DifferentFromValidator) ValidateMap ¶
func (o DifferentFromValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (DifferentFromValidator) ValidateNumber ¶
func (o DifferentFromValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (DifferentFromValidator) ValidateObject ¶
func (o DifferentFromValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (DifferentFromValidator) ValidateSet ¶
func (o DifferentFromValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (DifferentFromValidator) ValidateString ¶
func (o DifferentFromValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type DifferentFromValidatorResponse ¶
type DifferentFromValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type DifferentFromValuesValidator ¶
type DifferentFromValuesValidator struct {
PathExpressions path.Expressions
}
DifferentFromValuesValidator is the underlying struct implementing DifferentFromValues.
func DifferentFromValues ¶
func DifferentFromValues(expressions ...path.Expression) *DifferentFromValuesValidator
DifferentFromValues checks that none of the values of the collection (list/map/set) attributes found at the supplied expressions are Equal() to this attribute's value.
func (DifferentFromValuesValidator) Description ¶
func (o DifferentFromValuesValidator) Description(ctx context.Context) string
func (DifferentFromValuesValidator) MarkdownDescription ¶
func (o DifferentFromValuesValidator) MarkdownDescription(_ context.Context) string
func (DifferentFromValuesValidator) Validate ¶
func (o DifferentFromValuesValidator) Validate(ctx context.Context, req DifferentFromValuesValidatorRequest, resp *DifferentFromValuesValidatorResponse)
func (DifferentFromValuesValidator) ValidateBool ¶
func (o DifferentFromValuesValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (DifferentFromValuesValidator) ValidateFloat64 ¶
func (o DifferentFromValuesValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (DifferentFromValuesValidator) ValidateInt64 ¶
func (o DifferentFromValuesValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (DifferentFromValuesValidator) ValidateList ¶
func (o DifferentFromValuesValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (DifferentFromValuesValidator) ValidateMap ¶
func (o DifferentFromValuesValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (DifferentFromValuesValidator) ValidateNumber ¶
func (o DifferentFromValuesValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (DifferentFromValuesValidator) ValidateObject ¶
func (o DifferentFromValuesValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (DifferentFromValuesValidator) ValidateSet ¶
func (o DifferentFromValuesValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (DifferentFromValuesValidator) ValidateString ¶
func (o DifferentFromValuesValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type DifferentFromValuesValidatorResponse ¶
type DifferentFromValuesValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type ExactlyOneBindingWhenVnTypeVlanValidator ¶
type ExactlyOneBindingWhenVnTypeVlanValidator struct{}
func (ExactlyOneBindingWhenVnTypeVlanValidator) Description ¶
func (o ExactlyOneBindingWhenVnTypeVlanValidator) Description(_ context.Context) string
func (ExactlyOneBindingWhenVnTypeVlanValidator) MarkdownDescription ¶
func (o ExactlyOneBindingWhenVnTypeVlanValidator) MarkdownDescription(ctx context.Context) string
func (ExactlyOneBindingWhenVnTypeVlanValidator) ValidateMap ¶
func (o ExactlyOneBindingWhenVnTypeVlanValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
type ForbiddenWhenValueIsResponse ¶
type ForbiddenWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type ForbiddenWhenValueIsValidator ¶
type ForbiddenWhenValueIsValidator struct {
// contains filtered or unexported fields
}
func (ForbiddenWhenValueIsValidator) Description ¶
func (o ForbiddenWhenValueIsValidator) Description(_ context.Context) string
func (ForbiddenWhenValueIsValidator) MarkdownDescription ¶
func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (ForbiddenWhenValueIsValidator) Validate ¶
func (o ForbiddenWhenValueIsValidator) Validate(ctx context.Context, req ForbiddenWhenValueIsRequest, resp *ForbiddenWhenValueIsResponse)
func (ForbiddenWhenValueIsValidator) ValidateBool ¶
func (o ForbiddenWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (ForbiddenWhenValueIsValidator) ValidateFloat64 ¶
func (o ForbiddenWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (ForbiddenWhenValueIsValidator) ValidateInt64 ¶
func (o ForbiddenWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (ForbiddenWhenValueIsValidator) ValidateList ¶
func (o ForbiddenWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (ForbiddenWhenValueIsValidator) ValidateMap ¶
func (o ForbiddenWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (ForbiddenWhenValueIsValidator) ValidateNumber ¶
func (o ForbiddenWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (ForbiddenWhenValueIsValidator) ValidateObject ¶
func (o ForbiddenWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (ForbiddenWhenValueIsValidator) ValidateSet ¶
func (o ForbiddenWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (ForbiddenWhenValueIsValidator) ValidateString ¶
func (o ForbiddenWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type LeafSwitchMlagInfoValidator ¶
type LeafSwitchMlagInfoValidator struct{}
func (LeafSwitchMlagInfoValidator) Description ¶
func (o LeafSwitchMlagInfoValidator) Description(_ context.Context) string
func (LeafSwitchMlagInfoValidator) MarkdownDescription ¶
func (o LeafSwitchMlagInfoValidator) MarkdownDescription(ctx context.Context) string
func (LeafSwitchMlagInfoValidator) ValidateString ¶
func (o LeafSwitchMlagInfoValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type MustBeEvenOrOddValidator ¶
type MustBeEvenOrOddValidator struct {
// contains filtered or unexported fields
}
func (MustBeEvenOrOddValidator) Description ¶
func (o MustBeEvenOrOddValidator) Description(_ context.Context) string
func (MustBeEvenOrOddValidator) MarkdownDescription ¶
func (o MustBeEvenOrOddValidator) MarkdownDescription(ctx context.Context) string
func (MustBeEvenOrOddValidator) ValidateInt64 ¶
func (o MustBeEvenOrOddValidator) ValidateInt64(_ context.Context, req validator.Int64Request, resp *validator.Int64Response)
type NineTypesValidator ¶
type NineTypesValidator interface { validator.Bool validator.Float64 validator.Int64 validator.List validator.Map validator.Number validator.Object validator.Set validator.String }
func AlsoRequiresNOf ¶
func AlsoRequiresNOf(n int, expressions ...path.Expression) NineTypesValidator
AlsoRequiresNOf ensures that of a set of path.Expression, at least 'n' have a non-null value.
Any relative path.Expression will be resolved using the attribute being validated.
func AtMostNOf ¶
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 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 ¶
func (o ParseCidrValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseIpOrCidrValidator ¶
type ParseIpOrCidrValidator struct {
// contains filtered or unexported fields
}
func (ParseIpOrCidrValidator) Description ¶
func (o ParseIpOrCidrValidator) Description(_ context.Context) string
func (ParseIpOrCidrValidator) MarkdownDescription ¶
func (o ParseIpOrCidrValidator) MarkdownDescription(ctx context.Context) string
func (ParseIpOrCidrValidator) ValidateString ¶
func (o ParseIpOrCidrValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
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 ¶
func (o ParseIpValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseJsonValidator ¶
type ParseJsonValidator struct{}
func (ParseJsonValidator) Description ¶
func (o ParseJsonValidator) Description(_ context.Context) string
func (ParseJsonValidator) MarkdownDescription ¶
func (o ParseJsonValidator) MarkdownDescription(ctx context.Context) string
func (ParseJsonValidator) ValidateString ¶
func (o ParseJsonValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseRtValidator ¶ added in v0.41.0
type ParseRtValidator struct{}
func (ParseRtValidator) Description ¶ added in v0.41.0
func (o ParseRtValidator) Description(_ context.Context) string
func (ParseRtValidator) MarkdownDescription ¶ added in v0.41.0
func (o ParseRtValidator) MarkdownDescription(ctx context.Context) string
func (ParseRtValidator) ValidateString ¶ added in v0.41.0
func (o ParseRtValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type ParseSpeedValidator ¶
type ParseSpeedValidator struct{}
func (ParseSpeedValidator) Description ¶
func (o ParseSpeedValidator) Description(_ context.Context) string
func (ParseSpeedValidator) MarkdownDescription ¶
func (o ParseSpeedValidator) MarkdownDescription(ctx context.Context) string
func (ParseSpeedValidator) ValidateString ¶
func (o ParseSpeedValidator) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RackFabricConnectivityDesignMustBeValidator ¶
type RackFabricConnectivityDesignMustBeValidator struct {
// contains filtered or unexported fields
}
func (RackFabricConnectivityDesignMustBeValidator) Description ¶
func (o RackFabricConnectivityDesignMustBeValidator) Description(_ context.Context) string
func (RackFabricConnectivityDesignMustBeValidator) MarkdownDescription ¶
func (o RackFabricConnectivityDesignMustBeValidator) MarkdownDescription(ctx context.Context) string
func (RackFabricConnectivityDesignMustBeValidator) ValidateInt64 ¶
func (o RackFabricConnectivityDesignMustBeValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RackFabricConnectivityDesignMustBeValidator) ValidateString ¶
func (o RackFabricConnectivityDesignMustBeValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RackFabricConnectivityDesignMustBeValidatorResponse ¶
type RackFabricConnectivityDesignMustBeValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type RackFabricConnectivityDesignMustBeWhenNullValidator ¶
type RackFabricConnectivityDesignMustBeWhenNullValidator struct {
// contains filtered or unexported fields
}
func (RackFabricConnectivityDesignMustBeWhenNullValidator) Description ¶
func (o RackFabricConnectivityDesignMustBeWhenNullValidator) Description(_ context.Context) string
func (RackFabricConnectivityDesignMustBeWhenNullValidator) MarkdownDescription ¶
func (o RackFabricConnectivityDesignMustBeWhenNullValidator) MarkdownDescription(ctx context.Context) string
func (RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateInt64 ¶
func (o RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateString ¶
func (o RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RackFabricConnectivityDesignMustBeWhenNullValidatorResponse ¶
type RackFabricConnectivityDesignMustBeWhenNullValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type RackFabricConnectivityDesignMustBeWhenValueValidator ¶
type RackFabricConnectivityDesignMustBeWhenValueValidator struct {
// contains filtered or unexported fields
}
func (RackFabricConnectivityDesignMustBeWhenValueValidator) Description ¶
func (o RackFabricConnectivityDesignMustBeWhenValueValidator) Description(_ context.Context) string
func (RackFabricConnectivityDesignMustBeWhenValueValidator) MarkdownDescription ¶
func (o RackFabricConnectivityDesignMustBeWhenValueValidator) MarkdownDescription(ctx context.Context) string
func (RackFabricConnectivityDesignMustBeWhenValueValidator) ValidateString ¶
func (o RackFabricConnectivityDesignMustBeWhenValueValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RackFabricConnectivityDesignMustBeWhenValueValidatorResponse ¶
type RackFabricConnectivityDesignMustBeWhenValueValidatorResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsResponse ¶
type RequiredWhenValueIsResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueIsValidator ¶
type RequiredWhenValueIsValidator struct {
// contains filtered or unexported fields
}
func RequiredWhenValueIs ¶ added in v0.33.0
func RequiredWhenValueIs(expression path.Expression, value attr.Value) RequiredWhenValueIsValidator
func (RequiredWhenValueIsValidator) Description ¶
func (o RequiredWhenValueIsValidator) Description(_ context.Context) string
func (RequiredWhenValueIsValidator) MarkdownDescription ¶
func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueIsValidator) Validate ¶
func (o RequiredWhenValueIsValidator) Validate(ctx context.Context, req RequiredWhenValueIsRequest, resp *RequiredWhenValueIsResponse)
func (RequiredWhenValueIsValidator) ValidateBool ¶
func (o RequiredWhenValueIsValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueIsValidator) ValidateFloat64 ¶
func (o RequiredWhenValueIsValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueIsValidator) ValidateInt64 ¶
func (o RequiredWhenValueIsValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueIsValidator) ValidateList ¶
func (o RequiredWhenValueIsValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueIsValidator) ValidateMap ¶
func (o RequiredWhenValueIsValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueIsValidator) ValidateNumber ¶
func (o RequiredWhenValueIsValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueIsValidator) ValidateObject ¶
func (o RequiredWhenValueIsValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueIsValidator) ValidateSet ¶
func (o RequiredWhenValueIsValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueIsValidator) ValidateString ¶
func (o RequiredWhenValueIsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type RequiredWhenValueNullRequest ¶ added in v0.33.0
type RequiredWhenValueNullResponse ¶ added in v0.33.0
type RequiredWhenValueNullResponse struct {
Diagnostics diag.Diagnostics
}
type RequiredWhenValueNullValidator ¶ added in v0.33.0
type RequiredWhenValueNullValidator struct {
// contains filtered or unexported fields
}
func RequiredWhenValueNull ¶ added in v0.33.0
func RequiredWhenValueNull(expression path.Expression) RequiredWhenValueNullValidator
func (RequiredWhenValueNullValidator) Description ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) Description(_ context.Context) string
func (RequiredWhenValueNullValidator) MarkdownDescription ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) MarkdownDescription(ctx context.Context) string
func (RequiredWhenValueNullValidator) Validate ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) Validate(ctx context.Context, req RequiredWhenValueNullRequest, resp *RequiredWhenValueNullResponse)
func (RequiredWhenValueNullValidator) ValidateBool ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateBool(ctx context.Context, req validator.BoolRequest, resp *validator.BoolResponse)
func (RequiredWhenValueNullValidator) ValidateFloat64 ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateFloat64(ctx context.Context, req validator.Float64Request, resp *validator.Float64Response)
func (RequiredWhenValueNullValidator) ValidateInt64 ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateInt64(ctx context.Context, req validator.Int64Request, resp *validator.Int64Response)
func (RequiredWhenValueNullValidator) ValidateList ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateList(ctx context.Context, req validator.ListRequest, resp *validator.ListResponse)
func (RequiredWhenValueNullValidator) ValidateMap ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateMap(ctx context.Context, req validator.MapRequest, resp *validator.MapResponse)
func (RequiredWhenValueNullValidator) ValidateNumber ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateNumber(ctx context.Context, req validator.NumberRequest, resp *validator.NumberResponse)
func (RequiredWhenValueNullValidator) ValidateObject ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
func (RequiredWhenValueNullValidator) ValidateSet ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateSet(ctx context.Context, req validator.SetRequest, resp *validator.SetResponse)
func (RequiredWhenValueNullValidator) ValidateString ¶ added in v0.33.0
func (o RequiredWhenValueNullValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
type SwitchLagInfoValidator ¶
type SwitchLagInfoValidator struct {
// contains filtered or unexported fields
}
func (SwitchLagInfoValidator) Description ¶
func (o SwitchLagInfoValidator) Description(_ context.Context) string
func (SwitchLagInfoValidator) MarkdownDescription ¶
func (o SwitchLagInfoValidator) MarkdownDescription(ctx context.Context) string
func (SwitchLagInfoValidator) ValidateObject ¶
func (o SwitchLagInfoValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
Source Files
¶
- also_requires_n_of.go
- at_least_product_of.go
- at_most_n_of.go
- attribute_conflict.go
- constants.go
- different_from.go
- different_from_values.go
- exactly_one_binding_when_vn_type_vlan.go
- falls_within_cidr.go
- forbidden_when_value_is.go
- leaf_switch_redundancy_mode.go
- must_be_even_or_odd.go
- must_be_when_value_at.go
- object_must_have_n_of.go
- parse_cidr.go
- parse_ip.go
- parse_ip_or_cidr.go
- parse_json.go
- parse_rt.go
- parse_speed.go
- rack_fcd_must_be.go
- rack_fcd_must_be_when_null.go
- rack_fcd_must_be_when_value.go
- required_when_value_is.go
- required_when_value_null.go
- switch_lag_info.go
- value_at_must_be.go
- when_value_is.go
- when_value_set.go