ctrl

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BpmnResourcesById

type BpmnResourcesById []dependencymodel.BpmnResource

func (BpmnResourcesById) Len

func (a BpmnResourcesById) Len() int

func (BpmnResourcesById) Less

func (a BpmnResourcesById) Less(i, j int) bool

func (BpmnResourcesById) Swap

func (a BpmnResourcesById) Swap(i, j int)

type Ctrl

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

func New

func New(ctx context.Context, config config.Config, sourcing interfaces.SourcingFactory, db interfaces.Database, devices interfaces.Devices, processrepo interfaces.ProcessRepo, imports interfaces.Imports) (result *Ctrl, err error)

func (*Ctrl) CreateDeployment

func (this *Ctrl) CreateDeployment(token auth.Token, deployment deploymentmodel.Deployment, source string, optionals map[string]bool) (result deploymentmodel.Deployment, err error, code int)

func (*Ctrl) DeleteDependencies

func (this *Ctrl) DeleteDependencies(command messages.DeploymentCommand) error

func (*Ctrl) DeleteDeployment

func (this *Ctrl) DeleteDeployment(command messages.DeploymentCommand) error

func (*Ctrl) EnsureDeploymentSelectionAccess

func (this *Ctrl) EnsureDeploymentSelectionAccess(token auth.Token, deployment *deploymentmodel.Deployment) (err error, code int)

ensures selection correctness

func (*Ctrl) GetDependencies

func (this *Ctrl) GetDependencies(token auth.Token, id string) (dependencymodel.Dependencies, error, int)

func (*Ctrl) GetDependenciesList

func (this *Ctrl) GetDependenciesList(token auth.Token, limit int, offset int) ([]dependencymodel.Dependencies, error, int)

func (*Ctrl) GetDeployment

func (this *Ctrl) GetDeployment(token auth.Token, id string, withOptions bool) (result deploymentmodel.Deployment, err error, code int)

func (*Ctrl) GetProcessModel

func (this *Ctrl) GetProcessModel(impersonate auth.Token, id string) (result processmodel.ProcessModel, err error, errCode int)

func (*Ctrl) GetProcessStartParameters

func (this *Ctrl) GetProcessStartParameters(xml string) ([]deploymentmodel.ProcessStartParameter, error)

func (*Ctrl) GetSelectedDependencies

func (this *Ctrl) GetSelectedDependencies(token auth.Token, ids []string) ([]dependencymodel.Dependencies, error, int)

func (*Ctrl) HandleDeployment

func (this *Ctrl) HandleDeployment(cmd messages.DeploymentCommand) error

func (*Ctrl) HandleUsersCommand

func (this *Ctrl) HandleUsersCommand(userMsg messages.UserCommandMsg) error

func (*Ctrl) PrepareDeployment

func (this *Ctrl) PrepareDeployment(token auth.Token, xml string, svg string, withOptions bool) (result deploymentmodel.Deployment, err error, code int)

func (*Ctrl) RemoveDeployment

func (this *Ctrl) RemoveDeployment(token auth.Token, id string) (err error, code int)

func (*Ctrl) SaveDependencies

func (this *Ctrl) SaveDependencies(command messages.DeploymentCommand) error

func (*Ctrl) SaveDeployment

func (this *Ctrl) SaveDeployment(command messages.DeploymentCommand) error

func (*Ctrl) SetDeploymentOptions

func (this *Ctrl) SetDeploymentOptions(token auth.Token, deployment *deploymentmodel.Deployment) (err error)

func (*Ctrl) SetExecutableFlag

func (this *Ctrl) SetExecutableFlag(deployment *deploymentmodel.Deployment)

func (*Ctrl) UpdateDeployment

func (this *Ctrl) UpdateDeployment(token auth.Token, id string, deployment deploymentmodel.Deployment, source string, optionals map[string]bool) (result deploymentmodel.Deployment, err error, code int)

type DeviceDependenciesByDeviceId

type DeviceDependenciesByDeviceId []dependencymodel.DeviceDependency

func (DeviceDependenciesByDeviceId) Len

func (DeviceDependenciesByDeviceId) Less

func (a DeviceDependenciesByDeviceId) Less(i, j int) bool

func (DeviceDependenciesByDeviceId) Swap

func (a DeviceDependenciesByDeviceId) Swap(i, j int)

type EventDependenciesByEventId

type EventDependenciesByEventId []dependencymodel.EventDependency

func (EventDependenciesByEventId) Len

func (EventDependenciesByEventId) Less

func (a EventDependenciesByEventId) Less(i, j int) bool

func (EventDependenciesByEventId) Swap

func (a EventDependenciesByEventId) Swap(i, j int)

type VersionWrapper

type VersionWrapper struct {
	Command string `json:"command"`
	Id      string `json:"id"`
	Version int64  `json:"version"`
}

Directories

Path Synopsis
deployment

Jump to

Keyboard shortcuts

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