MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / ShowAssigned

Function ShowAssigned

internal/feature/features.go:159–168  ·  view source on GitHub ↗

ShowAssigned returns the features enabled or disabled by Set and SetFromMap in the Gate contained in ctx.

(ctx context.Context)

Source from the content-addressed store, hash-verified

157// ShowAssigned returns the features enabled or disabled by Set and SetFromMap
158// in the Gate contained in ctx.
159func ShowAssigned(ctx context.Context) string {
160 featuresAssigned := ""
161 if gate, ok := ctx.Value(contextKey{}).(interface {
162 Gate
163 String() string
164 }); ok {
165 featuresAssigned = gate.String()
166 }
167 return featuresAssigned
168}

Callers 2

mainFunction · 0.92
TestContextFunction · 0.85

Calls 2

ValueMethod · 0.80
StringMethod · 0.45

Tested by 1

TestContextFunction · 0.68