feat: Implement resource:limit and resource:reserve
Also add the install and post-delete hooks
This commit is contained in:
12
plugins/resource/resource.go
Normal file
12
plugins/resource/resource.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package resource
|
||||
|
||||
type Resource struct {
|
||||
Cpu string `json:"cpu"`
|
||||
Memory string `json:"memory"`
|
||||
MemorySwap string `json:"memory-swap"`
|
||||
Network string `json:"network"`
|
||||
NetworkIngress string `json:"network-ingress"`
|
||||
NetworkEgress string `json:"network-egress"`
|
||||
}
|
||||
|
||||
const PluginName = "resource"
|
||||
Reference in New Issue
Block a user