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

Method ToStopGracePeriod

cli/command/service/opts.go:674–679  ·  view source on GitHub ↗
(flags *pflag.FlagSet)

Source from the content-addressed store, hash-verified

672}
673
674func (options *serviceOptions) ToStopGracePeriod(flags *pflag.FlagSet) *time.Duration {
675 if flags.Changed(flagStopGracePeriod) {
676 return options.stopGrace.Value()
677 }
678 return nil
679}
680
681// makeEnv gets the environment variables from the command line options and
682// returns a slice of strings to use in the service spec when doing ToService

Callers 1

ToServiceMethod · 0.95

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected