hasClusterVolumeOptionSet returns true if any of the cluster-specific options are set.
(flags *pflag.FlagSet)
| 110 | // hasClusterVolumeOptionSet returns true if any of the cluster-specific |
| 111 | // options are set. |
| 112 | func 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 | |
| 119 | func runCreate(ctx context.Context, dockerCli command.Cli, options createOptions) error { |
| 120 | volOpts := client.VolumeCreateOptions{ |
no outgoing calls
no test coverage detected
searching dependent graphs…