Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
func Hash(obj Importable, manager elemental.ModelManager) (string, error)
Hash computes the hash of the given identifiable in its current state.
func Import ¶
func Import( ctx context.Context, manager elemental.ModelManager, m manipulate.Manipulator, namespace string, label string, objects elemental.Identifiables, removeMode bool, ) error
Import preforms the importing of the given objects, in the given namespace, with the given label using the given manipulator. If removeMode is true, all the objects with the given label will be deleted. This function does not make any permission check, and will fail if the given manipulator does not bear sufficient permissions.
Types ¶
type Importable ¶
type Importable interface { GetImportHash() string SetImportHash(string) GetImportLabel() string SetImportLabel(string) elemental.Namespaceable elemental.Identifiable elemental.AttributeSpecifiable }
An Importable is the interface an object must satisfy in order to be importable.
Click to show internal directories.
Click to hide internal directories.