Documentation ¶
Index ¶
Constants ¶
View Source
const ( Apstra410 = "4.1.0" Apstra411 = "4.1.1" Apstra412 = "4.1.2" Apstra420 = "4.2.0" Apstra421 = "4.2.1" Apstra4211 = "4.2.1.1" Apstra422 = "4.2.2" Le420 = "<=" + Apstra420 )
the idea with these constants is that all references to an Apstra release track back to this file. When support for an old release is dropped, these constants should help track down code relevant to those versions.
Variables ¶
View Source
var ( Eq410 = version.MustConstraints(version.NewConstraint(Apstra410)) Ge411 = version.MustConstraints(version.NewConstraint(">=" + Apstra411)) Ge420 = version.MustConstraints(version.NewConstraint(">=" + Apstra420)) Ge421 = version.MustConstraints(version.NewConstraint(">=" + Apstra421)) )
Functions ¶
func ValidateConstraints ¶
func ValidateConstraints(_ context.Context, req ValidateConstraintsRequest) diag.Diagnostics
Types ¶
type AttributeConstraint ¶ added in v0.52.2
type Constraints ¶
type Constraints struct {
// contains filtered or unexported fields
}
func (*Constraints) AddAttributeConstraints ¶
func (o *Constraints) AddAttributeConstraints(in AttributeConstraint)
AddAttributeConstraints should be used to add version constraints imposed by the presence of an attribute or attribute value in the configuration.
func (*Constraints) AddOtherConstraints ¶ added in v0.52.2
func (o *Constraints) AddOtherConstraints(in OtherConstraint)
AddOtherConstraints should be used to add non-attribute-value-based version constraints, like those imposed by the absence of an attribute in the configuration.
func (*Constraints) AttributeConstraints ¶ added in v0.52.2
func (o *Constraints) AttributeConstraints() []AttributeConstraint
func (*Constraints) OtherConstraints ¶ added in v0.52.2
func (o *Constraints) OtherConstraints() []OtherConstraint
type OtherConstraint ¶ added in v0.52.2
type OtherConstraint struct { Message string Constraints version.Constraints }
type ValidateConstraintsRequest ¶
type ValidateConstraintsRequest struct { Version *version.Version Constraints Constraints }
Click to show internal directories.
Click to hide internal directories.