MCPcopy Create free account
hub / github.com/aws/smithy-go / GetStackValue

Function GetStackValue

middleware/stack_values.go:26–33  ·  view source on GitHub ↗

GetStackValues returns the value pointed to by the key within the stack values, if it is present.

(ctx context.Context, key interface{})

Source from the content-addressed store, hash-verified

24// GetStackValues returns the value pointed to by the key within the stack
25// values, if it is present.
26func GetStackValue(ctx context.Context, key interface{}) interface{} {
27 md, _ := ctx.Value(stackValuesKey{}).(*stackValues)
28 if md == nil {
29 return nil
30 }
31
32 return md.Value(key)
33}
34
35type stackValuesKey struct{}
36

Callers 6

GetHostnameImmutableFunction · 0.92
getIctxFunction · 0.92
TestStackValuesFunction · 0.85
GetServiceIDFunction · 0.85
GetOperationNameFunction · 0.85

Calls 1

ValueMethod · 0.45

Tested by 1

TestStackValuesFunction · 0.68