-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for issuing a container update to gcs
Signed-off-by: Kathryn Baldauf <[email protected]>
- Loading branch information
1 parent
2010d9a
commit 6e87c0c
Showing
6 changed files
with
52 additions
and
0 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,10 @@ | ||
package gcs | ||
|
||
const ( | ||
// silo container resources paths | ||
siloDeviceResourcePath string = "Container/Devices/Generic" | ||
siloMappedDirectoryResourcePath string = "Container/MappedDirectories" | ||
siloMappedPipeResourcePath string = "Container/MappedPipes" | ||
siloMemoryResourcePath string = "Container/Memory/SizeInMB" | ||
siloRegistryFlushStatePath string = "Container/RegistryFlushState" | ||
) |
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,12 @@ | ||
package uvm | ||
|
||
import ( | ||
"context" | ||
) | ||
|
||
func (uvm *UtilityVM) UpdateContainer(ctx context.Context, cid string, resources interface{}) error { | ||
if uvm.gc == nil || !uvm.guestCaps.UpdateContainerSupported { | ||
return nil | ||
} | ||
return uvm.gc.UpdateContainer(ctx, cid, resources) | ||
} |