MCPcopy
hub / github.com/adammck/terraform-inventory / NewOutput

Function NewOutput

output.go:14–25  ·  view source on GitHub ↗
(keyName string, value interface{})

Source from the content-addressed store, hash-verified

12}
13
14func NewOutput(keyName string, value interface{}) (*Output, error) {
15
16 // TODO: Warn instead of silently ignore error?
17 if len(keyName) == 0 {
18 return nil, fmt.Errorf("couldn't parse output keyName: %s", keyName)
19 }
20
21 return &Output{
22 keyName: keyName,
23 value: value,
24 }, nil
25}

Callers 2

outputsMethod · 0.85
outputsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected