apiversions

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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"

	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

Types

type AttributeConstraint added in v0.52.2

type AttributeConstraint struct {
	Path        path.Path
	Constraints version.Constraints
}

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
}

Jump to

Keyboard shortcuts

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