github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/cli/command/node/opts.go (about) 1 package node 2 3 import ( 4 "github.com/docker/docker/opts" 5 ) 6 7 type nodeOptions struct { 8 annotations 9 role string 10 availability string 11 } 12 13 type annotations struct { 14 name string 15 labels opts.ListOpts 16 } 17 18 func newNodeOptions() *nodeOptions { 19 return &nodeOptions{ 20 annotations: annotations{ 21 labels: opts.NewListOpts(nil), 22 }, 23 } 24 }