-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fnenv.Notifier interface + restructured fnenv package (#106)
As stepping stone to the optimized function execution functionality (pre-warming of imminent function executions), this adds fnenv.Notifier which defines the interface for notifying the function runtime environments. Additionally this PR moves interfaces related to the fnenv to the fnenv package to make it more self contained. Specifically it adds the following: - Added initial interface for the fnenv.Notifier (which will allow the workflow engine to notify environments implementing the interface of future invocations) - Re-added the disappeared gofmt and govet checks to the travis config - Renamed a couple of variables to idiomatic go - Renamed fnenv/test to fnenv/mock to better indicate the purpose of the package. - Renamed a couple of files in fnenv to reflect actual contents - Moved the fnenv interfaces (runtime, resolver) from the api/function to the fnenv package - Added documentation throughout the fnenv package and subpackages. - Replaced map with syncmap implementation in Fission Proxy due to potential concurrent read/write issue - Moved status shortcuts to the status-struct rather than adding them to the flag field. This eliminates the need for the awkward `wi.Status.Status.Completed()` in favor of `wi.Status.Completed()`
- Loading branch information
1 parent
59e4bc5
commit d3c45d4
Showing
32 changed files
with
479 additions
and
371 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
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
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 was deleted.
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
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.