-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Less interfaces #3316
Closed
Closed
Less interfaces #3316
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
604917e
libct/README: rm Cgroupfs
kolyshkin 8b9fa19
libct/configs: rm Windows TODO
kolyshkin 923a8c9
libct: initContainer: rename Id -> ID
kolyshkin e1147d6
libct/config: rm type Capabilities type
kolyshkin d0ba8c6
libct: remove Factory interface and unused methods
kolyshkin 3148aef
libct: rename factory_linux* -> factory
kolyshkin 94f6098
libct: rm BaseContainer and Container interfaces
kolyshkin e4557c1
libct: remove some factory methods
kolyshkin 344ef42
libct: rm TestGetContainerStats, mockIntelRdtManager
kolyshkin 0e6bf47
libct: rm intelrtd.Manager interface, NewIntelRdtManager
kolyshkin 232bd46
libct: StartInitialization: decouple from factory
kolyshkin ac0f26b
libct/int: remove logger from init
kolyshkin 742be71
init.go: move logger setup to StartInitialization
kolyshkin 270cf70
Fix some revive warnings
kolyshkin 0d9a69a
libct/init: call Init from containerInit
kolyshkin b9b9fe1
libct: Container, Factory: rm InitPath, InitArgs
kolyshkin e4c0fef
libct: remove Validator interface
kolyshkin 0c6d53d
libct: Container, Factory: rm newuidmap/newgidmap
kolyshkin 13c6cae
libct: New: rm opts arguments
kolyshkin 5ce43c4
runc: remove --criu option
kolyshkin 3d5fd4a
utils: remove loadFactory
kolyshkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it will cause any issues, but mentioninging it (just in case); the type is the same from a "go" perspective, but the runtime-spec type uses lowercase names (and
omitempty
) for the JSON representation; https://github.com/opencontainers/runtime-spec/blob/a3c33d663ebc56c4d35dbceaa447c7bf37f6fab3/specs-go/config.go#L65-L78There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, this might open the hell gates:
From what I can see, this is not used anywhere, and yet it might become problematic.
I guess I'll revert this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If these files are only used by runc and/or only used by Go code, then it shouldn't (AFAICS) be an issue.
json.Unmarshal()
is case insensitive for keys (for better or worse 😅)https://go.dev/play/p/9bo-nSvEARD