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

Struct Named

engine/traits/named.go:35–42  ·  view source on GitHub ↗

Named contains a general implementation of the properties and methods needed to support named resources. It should be used as a starting point to avoid re-implementing the straightforward name methods.

Source from the content-addressed store, hash-verified

33// to support named resources. It should be used as a starting point to avoid
34// re-implementing the straightforward name methods.
35type Named struct {
36 // Xname is the stored name. It should be called `name` but it must be
37 // public so that the `encoding/gob` package can encode it properly.
38 Xname string
39
40 // Bug5819 works around issue https://github.com/golang/go/issues/5819
41 Bug5819 interface{} // XXX: workaround
42}
43
44// Name returns the unique name this resource has. It is only unique within its
45// own kind.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected