add version constraints
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package version
|
||||
|
||||
// Constraint enables matching a version based on lower and upper bounds.
|
||||
type Constraint struct {
|
||||
Gt *Version // Greater than...
|
||||
Gte *Version // Greater than or equal to...
|
||||
Lt *Version // Less than...
|
||||
Lte *Version // Less than or equal to...
|
||||
}
|
||||
Reference in New Issue
Block a user