Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BroadcastEventTypeCreate is an event type for listening to 'create' BroadcastEventTypeCreate string = "create" // BroadcastEventTypeUpdate is an event type for listening to 'update' BroadcastEventTypeUpdate string = "update" // BroadcastEventTypeDelete is an event type for listenting to 'delete' BroadcastEventTypeDelete string = "delete" BroadcastEventTypeInstanceStarted string = "started" BroadcastEventTypeInstanceFailed string = "failed" BroadcastEventTypeInstanceSuccess string = "success" )
View Source
const ( // BroadcastEventScopeWorkflow is the scope in which you want to listen for events BroadcastEventScopeWorkflow string = "workflow" // BroadcastEventScopeNamespace is the scope in which you want to listen for events BroadcastEventScopeNamespace string = "namespace" // BroadcastEventScopeInstance is the scope in which you want to listen for events BroadcastEventScopeInstance string = "instance" )
View Source
const ( // BroadcastEventPrefixWorkflow is the event prefix that is being broadcasted BroadcastEventPrefixWorkflow string = "workflow" // BroadcastEventPrefixDirectory is the event prefix that is being broadcasted BroadcastEventPrefixDirectory string = "directory" // BroadcastEventPrefixVariable is the event prefix that is being broadcasted BroadcastEventPrefixVariable string = "variable" // BroadcastEventPrefixInstance is the event prefix that is being broadcasted BroadcastEventPrefixInstance string = "instance" )
View Source
const ( DirektivActionIDHeader = "Direktiv-ActionID" DirektivInstanceIDHeader = "Direktiv-InstanceID" DirektivExchangeKeyHeader = "Direktiv-ExchangeKey" DirektivPingAddrHeader = "Direktiv-PingAddr" DirektivDeadlineHeader = "Direktiv-Deadline" DirektivTimeoutHeader = "Direktiv-Timeout" DirektivStepHeader = "Direktiv-Step" DirektivResponseHeader = "Direktiv-Response" DirektivNamespaceHeader = "Direktiv-Namespace" DirektivSourceHeader = "Direktiv-Source" DirektivFileHeader = "Direktiv-Files" DirektivErrorCodeHeader = "Direktiv-ErrorCode" DirektivErrorMessageHeader = "Direktiv-ErrorMessage" )
headers for flow->container communication
View Source
const ( ServiceResponseNoError = "" ServiceErrorInternal = "au.com.direktiv.error.internal" ServiceErrorImage = "au.com.direktiv.error.image" ServiceErrorNetwork = "au.com.direktiv.error.network" ServiceErrorIO = "au.com.direktiv.error.io" )
internal error codes for knative services
Variables ¶
View Source
var ( ErrCodeInternal = "direktiv.internal.error" ErrCodeWorkflowUnparsable = "direktiv.workflow.unparsable" ErrCodeMultipleErrors = "direktiv.workflow.multipleErrors" ErrCodeCancelledByParent = "direktiv.cancels.parent" ErrCodeSoftTimeout = "direktiv.cancels.timeout.soft" ErrCodeHardTimeout = "direktiv.cancels.timeout.hard" ErrCodeJQBadQuery = "direktiv.jq.badCommand" ErrCodeJQNotObject = "direktiv.jq.notObject" ErrCodeAllBranchesFailed = "direktiv.parallel.allFailed" ErrCodeNotArray = "direktiv.foreach.badArray" ErrCodeFailedSchemaValidation = "direktiv.schema.failed" ErrCodeJQNotString = "direktiv.jq.notString" ErrCodeInvalidVariableKey = "direktiv.var.invalidKey" )
Functions ¶
func GetInodePath ¶
GetInodePath returns the exact path to a inode
func PublishKnativeEvent ¶
func PublishKnativeEvent(ce *cloudevents.Event)
Types ¶
type Config ¶
type Config struct {
Broadcast *ConfigBroadcast `json:"broadcast"`
}
type ConfigBroadcast ¶
type ConfigBroadcast struct { WorkflowCreate *bool `json:"workflow.create"` WorkflowUpdate *bool `json:"workflow.update"` WorkflowDelete *bool `json:"workflow.delete"` DirectoryCreate *bool `json:"directory.create"` DirectoryDelete *bool `json:"directory.delete"` WorkflowVariableCreate *bool `json:"workflow.variable.create"` WorkflowVariableUpdate *bool `json:"workflow.variable.update"` WorkflowVariableDelete *bool `json:"workflow.variable.delete"` NamespaceVariableCreate *bool `json:"namespace.variable.create"` NamespaceVariableUpdate *bool `json:"namespace.variable.update"` NamespaceVariableDelete *bool `json:"namespace.variable.delete"` InstanceVariableCreate *bool `json:"instance.variable.create"` InstanceVariableUpdate *bool `json:"instance.variable.update"` InstanceVariableDelete *bool `json:"instance.variable.delete"` InstanceStarted *bool `json:"instance.started"` InstanceSuccess *bool `json:"instance.success"` InstanceFailed *bool `json:"instance.failed"` }
type EventingCtxKey ¶
type EventingCtxKey string
const EventingCtxKeySource EventingCtxKey = "source"
type PubsubUpdate ¶
type ServiceResponse ¶
type ServiceResponse struct { ErrorCode string `json:"errorCode"` ErrorMessage string `json:"errorMessage"` Data interface{} `json:"data"` }
ServiceResponse is the response structure for internal knative services
Source Files ¶
- actions.go
- broadcast.go
- cancel.go
- config.go
- data.go
- database.go
- db-events.go
- engine.go
- errors.go
- eventing.go
- events.go
- functions.go
- grpc-flow.go
- grpc-health.go
- grpc-instance-variables.go
- grpc-instances.go
- grpc-internal.go
- grpc-logs.go
- grpc-mirror.go
- grpc-namespace-variables.go
- grpc-namespaces.go
- grpc-nodes.go
- grpc-refs.go
- grpc-revisions.go
- grpc-routing.go
- grpc-secrets.go
- grpc-workflow-variables.go
- grpc-workflow.go
- isolate.go
- locks.go
- logs.go
- memory.go
- metrics.go
- pagination.go
- pubsub.go
- routing.go
- scheduling.go
- secrets.go
- server.go
- state-logic.go
- status.go
- syncer.go
- temporary.go
- timeouts.go
- timers.go
- trace.go
- vars.go
- workflow.go
Directories ¶
Path | Synopsis |
---|---|
Package states implements the logic for Direktiv workflow states.
|
Package states implements the logic for Direktiv workflow states. |
Click to show internal directories.
Click to hide internal directories.