worker

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceGroupIdOutputFieldName = "device_group_id"
View Source
const DeviceIdPrefix = devicemodel.URN_PREFIX + "device:"
View Source
const ModuleUpdateVersionField = "module_update_version"

Variables

This section is empty.

Functions

func StartDoneEventHandling

func StartDoneEventHandling(ctx context.Context, wg *sync.WaitGroup, config Config, libConfig configuration.Config) error

Types

type Config

type Config struct {
	DeviceManagerUrl            string `json:"device_manager_url"`
	DeviceSelectionUrl          string `json:"device_selection_url"`
	WorkerParamPrefix           string `json:"worker_param_prefix"`
	CreateDeviceGroupModuleType string `json:"create_device_group_module_type"`
	DefaultNamePrefix           string `json:"default_name_prefix"`
	AttributeOrigin             string `json:"attribute_origin"`
	Debug                       bool   `json:"debug"`

	KafkaUrl             string `json:"kafka_url"`
	KafkaConsumerGroup   string `json:"kafka_consumer_group"`
	PermissionsDoneTopic string `json:"permissions_done_topic"`
}

type DeviceGroupHelperResult

type DeviceGroupHelperResult struct {
	Criteria []devicemodel.DeviceGroupFilterCriteria `json:"criteria"`
}

type DoneNotification

type DoneNotification struct {
	ResourceKind string `json:"resource_kind"`
	ResourceId   string `json:"resource_id"`
	Handler      string `json:"handler"` // == github.com/SENERGY-Platform/permission-search
	Command      string `json:"command"` // PUT | DELETE | RIGHTS
}

type ProcessDeploymentStart

type ProcessDeploymentStart struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, wg *sync.WaitGroup, config Config, libConfig configuration.Config, auth *auth.Auth, smartServiceRepo SmartServiceRepo) (*ProcessDeploymentStart, error)

func (*ProcessDeploymentStart) Do

func (this *ProcessDeploymentStart) Do(task model.CamundaExternalTask) (modules []model.Module, outputs map[string]interface{}, err error)

func (*ProcessDeploymentStart) Undo

func (this *ProcessDeploymentStart) Undo(modules []model.Module, reason error)

type SmartServiceRepo

type SmartServiceRepo interface {
	GetInstanceUser(instanceId string) (userId string, err error)
	UseModuleDeleteInfo(info model.ModuleDeleteInfo) error
	ListExistingModules(processInstanceId string, query model.ModulQuery) (result []model.SmartServiceModule, err error)
}

Jump to

Keyboard shortcuts

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