opts.go 340 B

123456789101112131415161718192021222324
  1. package node
  2. import (
  3. "github.com/docker/docker/opts"
  4. )
  5. type nodeOptions struct {
  6. annotations
  7. role string
  8. availability string
  9. }
  10. type annotations struct {
  11. name string
  12. labels opts.ListOpts
  13. }
  14. func newNodeOptions() *nodeOptions {
  15. return &nodeOptions{
  16. annotations: annotations{
  17. labels: opts.NewListOpts(nil),
  18. },
  19. }
  20. }