Versions in this module Expand all Collapse all v0 v0.1.0 Aug 22, 2022 Changes in this version + type Constraint interface + Assert func() error + String func() string + func AND(constraints []Constraint) Constraint + func New(logger *logrus.Logger, requirements []string, properties map[string]Property) (Constraint, error) + func OR(constraints []Constraint) Constraint + type ConstraintMock struct + AssertFunc func() error + StringFunc func() string + func (mock *ConstraintMock) Assert() error + func (mock *ConstraintMock) AssertCalls() []struct{} + func (mock *ConstraintMock) String() string + func (mock *ConstraintMock) StringCalls() []struct{} + type Property interface + CompareTo func(string) (int, error) + Name func() string + String func() string + Validate func(string) error + Value func() (string, error) + func NewStringProperty(name string, value string) Property + func NewVersionProperty(name string, value string) Property + type PropertyMock struct + CompareToFunc func(s string) (int, error) + NameFunc func() string + StringFunc func() string + ValidateFunc func(s string) error + ValueFunc func() (string, error) + func (mock *PropertyMock) CompareTo(s string) (int, error) + func (mock *PropertyMock) CompareToCalls() []struct{ ... } + func (mock *PropertyMock) Name() string + func (mock *PropertyMock) NameCalls() []struct{} + func (mock *PropertyMock) String() string + func (mock *PropertyMock) StringCalls() []struct{} + func (mock *PropertyMock) Validate(s string) error + func (mock *PropertyMock) ValidateCalls() []struct{ ... } + func (mock *PropertyMock) Value() (string, error) + func (mock *PropertyMock) ValueCalls() []struct{}