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

Function ociRemoteLoaderEnabled

pkg/remote/oci.go:73–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71}
72
73func ociRemoteLoaderEnabled() (bool, error) {
74 if v := os.Getenv(OCI_REMOTE_ENABLED); v != "" {
75 enabled, err := strconv.ParseBool(v)
76 if err != nil {
77 return false, fmt.Errorf("COMPOSE_EXPERIMENTAL_OCI_REMOTE environment variable expects boolean value: %w", err)
78 }
79 return enabled, err
80 }
81 return true, nil
82}
83
84func NewOCIRemoteLoader(dockerCli command.Cli, offline bool, options api.OCIOptions) loader.ResourceLoader {
85 return &ociRemoteLoader{

Callers 1

LoadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected