-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from strongdm/apg/po-515-add-datetime
Add the extension types, datetime and duration
- Loading branch information
Showing
23 changed files
with
2,529 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package eval | ||
|
||
import "github.com/cedar-policy/cedar-go/types" | ||
|
||
// ComparableValue provides the interface that must be implemented to | ||
// support operator overloading of <, <=, >, and >= | ||
type ComparableValue interface { | ||
types.Value | ||
|
||
// LessThan returns true if the lhs is less than the rhs, and an | ||
// error if the rhs is not comparable to the lhs | ||
LessThan(types.Value) (bool, error) | ||
|
||
// LessThan returns true if the lhs is less than or equal to the | ||
// rhs, and an error if the rhs is not comparable to the lhs | ||
LessThanOrEqual(types.Value) (bool, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.