2016-06-14 02:56:23 +00:00
|
|
|
package node
|
|
|
|
|
|
|
|
import (
|
2016-07-01 00:33:43 +00:00
|
|
|
"github.com/docker/docker/opts"
|
2016-06-14 02:56:23 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type nodeOptions struct {
|
2016-07-01 00:33:43 +00:00
|
|
|
annotations
|
2016-06-14 02:56:23 +00:00
|
|
|
role string
|
|
|
|
availability string
|
|
|
|
}
|
|
|
|
|
2016-07-01 00:33:43 +00:00
|
|
|
type annotations struct {
|
|
|
|
name string
|
|
|
|
labels opts.ListOpts
|
|
|
|
}
|
|
|
|
|
|
|
|
func newNodeOptions() *nodeOptions {
|
|
|
|
return &nodeOptions{
|
|
|
|
annotations: annotations{
|
|
|
|
labels: opts.NewListOpts(nil),
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|