MCPcopy
hub / github.com/purpleidea/mgmt / Info

Method Info

lang/funcs/structs/output.go:85–94  ·  view source on GitHub ↗

Info returns some static info about itself.

()

Source from the content-addressed store, hash-verified

83
84// Info returns some static info about itself.
85func (obj *OutputFunc) Info() *interfaces.Info {
86 // contains "dummy" return type
87 s := fmt.Sprintf("func(%s %s, %s nil) %s", obj.EdgeName, obj.Type, OutputFuncDummyArgName, obj.Type)
88 return &interfaces.Info{
89 Pure: false,
90 Memo: false,
91 Sig: types.NewType(s),
92 Err: obj.Validate(),
93 }
94}
95
96// Init runs some startup code for this function.
97func (obj *OutputFunc) Init(init *interfaces.Init) error {

Callers

nothing calls this directly

Calls 2

ValidateMethod · 0.95
NewTypeFunction · 0.92

Tested by

no test coverage detected