MCPcopy
hub / github.com/docker/compose / isPullPolicyValid

Method isPullPolicyValid

cmd/compose/create.go:217–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func (opts createOptions) isPullPolicyValid() bool {
218 pullPolicies := []string{
219 types.PullPolicyAlways, types.PullPolicyNever, types.PullPolicyBuild,
220 types.PullPolicyMissing, types.PullPolicyIfNotPresent,
221 }
222 return slices.Contains(pullPolicies, opts.Pull)
223}

Callers 1

ApplyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected