2016-09-08 13:11:39 -04:00
|
|
|
package node
|
|
|
|
|
|
|
|
import (
|
2017-05-15 14:45:19 +02:00
|
|
|
"github.com/docker/cli/opts"
|
2016-09-08 13:11:39 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
type nodeOptions struct {
|
|
|
|
annotations
|
|
|
|
role string
|
|
|
|
availability string
|
|
|
|
}
|
|
|
|
|
|
|
|
type annotations struct {
|
|
|
|
labels opts.ListOpts
|
|
|
|
}
|
|
|
|
|
|
|
|
func newNodeOptions() *nodeOptions {
|
|
|
|
return &nodeOptions{
|
|
|
|
annotations: annotations{
|
|
|
|
labels: opts.NewListOpts(nil),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|