importing

package
v0.11.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL