Documentation ¶
Index ¶
Constants ¶
const (
// WorkflowStateSubscription is the channel that runs workflow states.
WorkflowStateSubscription = "workflow-state"
)
Variables ¶
var ( ErrCodeJQBadQuery = "direktiv.jq.badCommand" ErrCodeJQNotObject = "direktiv.jq.notObject" ErrCodeMultipleErrors = "direktiv.workflow.multipleErrors" ErrCodeAllBranchesFailed = "direktiv.parallel.allFailed" )
var PartitionName = []byte{0x76, 0x0, 0x6f, 0x0, 0x72, 0x0, 0x74, 0x0, 0x65, 0x0, 0x69, 0x0, 0x6c, 0x0, 0x2d, 0x0, 0x72, 0x0, 0x6f, 0x0, 0x6f, 0x0, 0x74, 0x0} // "vorteil-root" in utf16
PartitionName of the disk
var PartitionUUID = []byte{
0x7d, 0x44, 0x48, 0x40,
0x9d, 0xc0, 0x11, 0xd1,
0xb2, 0x45, 0x5f, 0xfd,
0xce, 0x74, 0xfa, 0xd3,
}
PartitionUUID of the disk
Functions ¶
func WrapCatchableError ¶
Types ¶
type CatchableError ¶
func NewCatchableError ¶
func NewCatchableError(code string, msg string, a ...interface{}) *CatchableError
func (*CatchableError) Error ¶
func (err *CatchableError) Error() string
type CmdErrorResponse ¶
CmdErrorResponse struct for responding when command has an error
type Config ¶
type Config struct { FlowAPI struct { Bind string Endpoint string Registry struct { Name, User, Token string } } `toml:"flowAPI"` IngressAPI struct { Bind string Endpoint string } `toml:"ingressAPI"` IsolateAPI struct { Bind string Endpoint string Isolation string } `toml:"isolateAPI"` SecretsAPI struct { Bind string Endpoint string DB string } `toml:"secretsAPI"` Database struct { DB string } Certs struct { Directory string Secure int } InstanceLogging struct { Driver string } Minio struct { Secure, SSL int User, Password string Endpoint string Encrypt string Region string } Kernel struct { Linux, Runtime string } Registries map[string]string }
Config is the configuration for workflow and runner server
func ReadConfig ¶
ReadConfig reads the configuration file and overwrites with environment variables if set
type ContainerAuth ¶
type ContainerAuth struct {
// contains filtered or unexported fields
}
ContainerAuth implements authn.Authorize. Used for token authentication
func (*ContainerAuth) Authorization ¶
func (f *ContainerAuth) Authorization() (*authn.AuthConfig, error)
Authorization interface impl
type ErrorType ¶
type ErrorType int
ErrorType types of errors direktiv commands can return
func GetErrorType ¶
GetErrorType get Error Type from passed error
type InternalError ¶
func NewInternalError ¶
func NewInternalError(err error) *InternalError
func NewInternalErrorWithDepth ¶
func NewInternalErrorWithDepth(err error, depth int) *InternalError
func (*InternalError) Error ¶
func (err *InternalError) Error() string
func (*InternalError) Unwrap ¶
func (err *InternalError) Unwrap() error
type IsolateError ¶
type IsolateError struct { ErrorCode string `json:"errorCode"` ErrorMessage string `json:"errorMessage"` }
IsolateError is the struct returned from isolates if there is an error
type UncatchableError ¶
func NewUncatchableError ¶
func NewUncatchableError(code, msg string, a ...interface{}) *UncatchableError
func (*UncatchableError) Error ¶
func (err *UncatchableError) Error() string
type WorkflowServer ¶
type WorkflowServer struct { LifeLine chan bool // contains filtered or unexported fields }
WorkflowServer is a direktiv server
func NewWorkflowServer ¶
func NewWorkflowServer(config *Config, serverType string) (*WorkflowServer, error)
NewWorkflowServer creates a new workflow server
func (*WorkflowServer) Lifeline ¶
func (s *WorkflowServer) Lifeline() chan bool
Lifeline interface impl
func (*WorkflowServer) Run ¶
func (s *WorkflowServer) Run() error
Run starts all components of direktiv
func (*WorkflowServer) SetInstanceLogger ¶
func (s *WorkflowServer) SetInstanceLogger(l dlog.Log)
SetInstanceLogger set logger for direktiv for firecracker instances
Source Files ¶
- config.go
- db-events.go
- db-instance.go
- db-namespace.go
- db-timer.go
- db-workflow.go
- db.go
- engine-util.go
- engine.go
- errors.go
- events.go
- flow.go
- grpc_util.go
- health.go
- ingress.go
- isolates-cache.go
- isolates-container.go
- isolates-data.go
- isolates-disk.go
- isolates-fc.go
- isolates-nw.go
- isolates.go
- secrets.go
- state-logic-action.go
- state-logic-consume-event.go
- state-logic-delay.go
- state-logic-error.go
- state-logic-eventsand.go
- state-logic-eventsxor.go
- state-logic-foreach.go
- state-logic-generate-event.go
- state-logic-parallel.go
- state-logic-switch.go
- state-logic-validate.go
- state-logic.go
- sync.go
- timer.go
- wfserver.go
- wli.go