mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 09:41:57 +00:00
Merge pull request #1290 from weaveworks/remove-container-control
Add control for removing stopped docker containers.
This commit is contained in:
@@ -45,6 +45,7 @@ type wiredControlInstance struct {
|
||||
ID string `json:"id"`
|
||||
Human string `json:"human"`
|
||||
Icon string `json:"icon"`
|
||||
Rank int `json:"rank"`
|
||||
}
|
||||
|
||||
// CodecEncodeSelf marshals this ControlInstance. It takes the basic Metric
|
||||
@@ -56,6 +57,7 @@ func (c *ControlInstance) CodecEncodeSelf(encoder *codec.Encoder) {
|
||||
ID: c.Control.ID,
|
||||
Human: c.Control.Human,
|
||||
Icon: c.Control.Icon,
|
||||
Rank: c.Control.Rank,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -70,6 +72,7 @@ func (c *ControlInstance) CodecDecodeSelf(decoder *codec.Decoder) {
|
||||
ID: in.ID,
|
||||
Human: in.Human,
|
||||
Icon: in.Icon,
|
||||
Rank: in.Rank,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user