Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EquivalenceChecker ¶
type EquivalenceChecker struct {
// contains filtered or unexported fields
}
EquivalenceChecker determines whether two EnterpriseContractPolicy specs produce the same evaluation result for a given image at a specific time.
func NewEquivalenceChecker ¶
func NewEquivalenceChecker(effectiveTime time.Time, imageInfo *ImageInfo) *EquivalenceChecker
NewEquivalenceChecker creates a new equivalence checker with the given effective time and optional image information.
func (*EquivalenceChecker) AreEquivalent ¶
func (ec *EquivalenceChecker) AreEquivalent(spec1, spec2 ecc.EnterpriseContractPolicySpec) (bool, error)
AreEquivalent determines if two EnterpriseContractPolicy specs are equivalent for the given effective time and image.
type NormalizedPolicy ¶
type NormalizedPolicy struct {
Buckets []PolicyBucket
}
NormalizedPolicy represents a policy spec after normalization
Click to show internal directories.
Click to hide internal directories.