github.com/ali-iotechsys/cli@v20.10.0+incompatible/cli/command/node/opts.go (about)

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