MCPcopy Create free account
hub / github.com/docker/cli / hasClusterVolumeOptionSet

Function hasClusterVolumeOptionSet

cli/command/volume/create.go:112–117  ·  view source on GitHub ↗

hasClusterVolumeOptionSet returns true if any of the cluster-specific options are set.

(flags *pflag.FlagSet)

Source from the content-addressed store, hash-verified

110// hasClusterVolumeOptionSet returns true if any of the cluster-specific
111// options are set.
112func hasClusterVolumeOptionSet(flags *pflag.FlagSet) bool {
113 return flags.Changed("group") || flags.Changed("scope") ||
114 flags.Changed("sharing") || flags.Changed("availability") ||
115 flags.Changed("type") || flags.Changed("secrets") ||
116 flags.Changed("limit-bytes") || flags.Changed("required-bytes")
117}
118
119func runCreate(ctx context.Context, dockerCli command.Cli, options createOptions) error {
120 volOpts := client.VolumeCreateOptions{

Callers 1

newCreateCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…