MCPcopy Create free account
hub / github.com/codnect/procyon / RegisterDefinition

Method RegisterDefinition

component/definition.go:29–29  ·  view source on GitHub ↗

RegisterDefinition registers a new component definition. Returns an error if a definition with the same name already exists.

(def *Definition)

Source from the content-addressed store, hash-verified

27 // RegisterDefinition registers a new component definition.
28 // Returns an error if a definition with the same name already exists.
29 RegisterDefinition(def *Definition) error
30
31 // UnregisterDefinition removes the component definition associated with the given name.
32 // Returns an error if the definition does not exist.

Callers 1

LoadMethod · 0.65

Implementers 2

AnyContainercomponent/container_test.go
DefaultContainercomponent/container.go

Calls

no outgoing calls

Tested by

no test coverage detected