mirror of https://github.com/docker/cli.git
25 lines
340 B
Go
25 lines
340 B
Go
package node
|
|
|
|
import (
|
|
"github.com/docker/docker/opts"
|
|
)
|
|
|
|
type nodeOptions struct {
|
|
annotations
|
|
role string
|
|
availability string
|
|
}
|
|
|
|
type annotations struct {
|
|
name string
|
|
labels opts.ListOpts
|
|
}
|
|
|
|
func newNodeOptions() *nodeOptions {
|
|
return &nodeOptions{
|
|
annotations: annotations{
|
|
labels: opts.NewListOpts(nil),
|
|
},
|
|
}
|
|
}
|