MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / devModeEnabled

Function devModeEnabled

pkg/blobmanager/s3accesspoint/provider.go:89–97  ·  view source on GitHub ↗

devModeEnabled reads DevModeEnvVar and returns true for the usual truthy spellings. Kept as a package-level function so tests can swap the env var with t.Setenv.

()

Source from the content-addressed store, hash-verified

87// spellings. Kept as a package-level function so tests can swap the env
88// var with t.Setenv.
89func devModeEnabled() bool {
90 v := strings.ToLower(strings.TrimSpace(os.Getenv(DevModeEnvVar)))
91 switch v {
92 case "1", "true", "yes", "on":
93 return true
94 default:
95 return false
96 }
97}
98
99// Credentials is the per-tenant blob stashed in the secrets manager under
100// CASBackend.SecretName. Despite the name it carries no access keys — only

Callers 3

ValidateMethod · 0.85
NewBackendProviderFunction · 0.85
NewBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected