forked from metalbear-co/mirrord
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(operator) Check for valid license (when license type is Online). (me…
…talbear-co#2089) * type for license validation * tracing in operator status * add logs for initialization + operator fetch * more date related helpers for license + certificate * cargo.lock * change Days to u32 * improve validity // warn user if close to expiring * docs * remove commented code * improve docs for Certificate * return None on Expired * move docs to operator * clearer doc on operator session creation * we, the license Co-authored-by: Michał Smolarek <[email protected]> * LicenseValidity trait * LicenseValidity -> LicenseValidityV2 * fix tests // fix date math * improve docs * cargo lock * cargo lock * debug -> trace // fix days_until_expiration // changelog * debug -> trace // changelog --------- Co-authored-by: Michał Smolarek <[email protected]>
- Loading branch information
Showing
9 changed files
with
164 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
Adds a new trait `LicenseValidity` implemented for `DateTime` to help us when checking a license's validity. Relevant for [#346](https://github.com/metalbear-co/operator/issues/346). |
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
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