restructure container,connectors in subpackage

This commit is contained in:
Bradley Cicenas
2017-06-08 14:51:02 +00:00
parent 8fb7a8988f
commit b85ca680f0
9 changed files with 50 additions and 32 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"reflect"
"github.com/bcicen/ctop/container"
ui "github.com/gizak/termui"
)
@@ -19,7 +20,7 @@ func logEvent(e ui.Event) {
}
// log container, metrics, and widget state
func dumpContainer(c *Container) {
func dumpContainer(c *container.Container) {
msg := fmt.Sprintf("logging state for container: %s\n", c.Id)
for k, v := range c.Meta {
msg += fmt.Sprintf("Meta.%s = %s\n", k, v)