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

Function toReconcileOptions

pkg/compose/reconcile.go:35–45  ·  view source on GitHub ↗

toReconcileOptions maps api.CreateOptions to ReconcileOptions.

(options api.CreateOptions)

Source from the content-addressed store, hash-verified

33
34// toReconcileOptions maps api.CreateOptions to ReconcileOptions.
35func toReconcileOptions(options api.CreateOptions) ReconcileOptions {
36 return ReconcileOptions{
37 Services: options.Services,
38 Recreate: options.Recreate,
39 RecreateDependencies: options.RecreateDependencies,
40 Inherit: options.Inherit,
41 Timeout: options.Timeout,
42 RemoveOrphans: options.RemoveOrphans,
43 SkipProviders: options.SkipProviders,
44 }
45}
46
47// ReconcileOptions controls how the reconciler compares desired and observed state.
48type ReconcileOptions struct {

Callers 1

createMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected