workflow

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OperationApply identifies the integrated service apply operation
	OperationApply = "apply"
	// OperationDeactivate identifies the integrated service deactivation operation
	OperationDeactivate = "deactivate"
)
View Source
const IntegratedServiceApplyActivityName = "integrated-service-apply"
View Source
const IntegratedServiceCleanActivityName = "integrated-service-clean"
View Source
const IntegratedServiceDeactivateActivityName = "integrated-service-deactivate"
View Source
const IntegratedServiceDeleteActivityName = "integrated-service-delete"
View Source
const IntegratedServiceJobSignalName = "job"

IntegratedServiceJobSignalName is the name of signal with which jobs can be sent to the workflow

View Source
const IntegratedServiceJobWorkflowName = "integrated-service-job"

IntegratedServiceJobWorkflowName is the name the IntegratedServiceJobWorkflow is registered under

View Source
const IntegratedServiceJobWorkflowV2Name = "integrated-service-job-v2"

IntegratedServiceJobWorkflowV2Name name of the v2 integrated service workflow

View Source
const IntegratedServiceSetSpecActivityName = "integrated-service-set-spec"
View Source
const IntegratedServiceSetStatusActivityName = "integrated-service-set-status"

Variables

This section is empty.

Functions

func GetActivityName

func GetActivityName(v1Name string, isV2 bool) string

func IntegratedServiceJobWorkflow

func IntegratedServiceJobWorkflow(ctx workflow.Context, input IntegratedServiceJobWorkflowInput) error

IntegratedServiceJobWorkflow executes integrated service jobs

func IntegratedServiceJobWorkflowV2

func IntegratedServiceJobWorkflowV2(ctx workflow.Context, input IntegratedServiceJobWorkflowInput) error

IntegratedServiceJobWorkflowV2 workflow that skips status updates (and all database operations related to integrated services)

Types

type IntegratedServiceApplyActivity

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

func (IntegratedServiceApplyActivity) Execute

type IntegratedServiceApplyActivityInput

type IntegratedServiceApplyActivityInput struct {
	ClusterID             uint
	IntegratedServiceName string
	IntegratedServiceSpec integratedservices.IntegratedServiceSpec
	RetryInterval         time.Duration
}

type IntegratedServiceCleanActivity

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

func (IntegratedServiceCleanActivity) Execute

type IntegratedServiceCleanActivityInput

type IntegratedServiceCleanActivityInput struct {
	ClusterID uint
	Force     bool
}

type IntegratedServiceDeactivateActivity

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

func (IntegratedServiceDeactivateActivity) Execute

type IntegratedServiceDeactivateActivityInput

type IntegratedServiceDeactivateActivityInput struct {
	ClusterID             uint
	IntegratedServiceName string
	IntegratedServiceSpec integratedservices.IntegratedServiceSpec
	RetryInterval         time.Duration
}

type IntegratedServiceDeleteActivity

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

func (IntegratedServiceDeleteActivity) Execute

type IntegratedServiceDeleteActivityInput

type IntegratedServiceDeleteActivityInput struct {
	ClusterID             uint
	IntegratedServiceName string
}

type IntegratedServiceJobSignalInput

type IntegratedServiceJobSignalInput struct {
	Operation              string
	IntegratedServiceSpecs integratedservices.IntegratedServiceSpec
	RetryInterval          time.Duration
}

IntegratedServiceJobSignalInput defines the dynamic inputs of the IntegratedServiceJobWorkflow

type IntegratedServiceJobWorkflowInput

type IntegratedServiceJobWorkflowInput struct {
	ClusterID             uint
	IntegratedServiceName string
}

IntegratedServiceJobWorkflowInput defines the fixed inputs of the IntegratedServiceJobWorkflow

type IntegratedServiceSetSpecActivity

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

func (IntegratedServiceSetSpecActivity) Execute

type IntegratedServiceSetSpecActivityInput

type IntegratedServiceSetSpecActivityInput struct {
	ClusterID             uint
	IntegratedServiceName string
	Spec                  map[string]interface{}
}

type IntegratedServiceSetStatusActivity

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

func (IntegratedServiceSetStatusActivity) Execute

type IntegratedServiceSetStatusActivityInput

type IntegratedServiceSetStatusActivityInput struct {
	ClusterID             uint
	IntegratedServiceName string
	Status                string
}

Jump to

Keyboard shortcuts

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