localworkflows

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OUTPUT_CONFIG_KEY_JSON      = "json"
	OUTPUT_CONFIG_KEY_JSON_FILE = "json-file-output"
)

Variables

View Source
var WORKFLOWID_AUTH workflow.Identifier = workflow.NewWorkflowIdentifier(workflowNameAuth)

define a new workflow identifier for this workflow

View Source
var WORKFLOWID_DEPGRAPH_WORKFLOW workflow.Identifier = workflow.NewWorkflowIdentifier("depgraph")
View Source
var WORKFLOWID_OUTPUT_WORKFLOW workflow.Identifier = workflow.NewWorkflowIdentifier("output")
View Source
var WORKFLOWID_WHOAMI workflow.Identifier = workflow.NewWorkflowIdentifier(workflowName)

define a new workflow identifier for this workflow

Functions

func Init

func Init(engine workflow.Engine) error

Init initializes all local workflows localworkflows are initialized when create a new workflow engine via app.CreateAppEngine()

func InitAuth

func InitAuth(engine workflow.Engine) error

InitAuth initialises the auth workflow before registering it with the engine.

func InitDepGraphWorkflow

func InitDepGraphWorkflow(engine workflow.Engine) error

InitDepGraphWorkflow initializes the depgraph workflow The depgraph workflow is responsible for handling the depgraph data As part of the localworkflows package, it is registered via the localworkflows.Init method

func InitOutputWorkflow

func InitOutputWorkflow(engine workflow.Engine) error

InitOutputWorkflow initializes the output workflow The output workflow is responsible for handling the output destination of workflow data As part of the localworkflows package, it is registered via the localworkflows.Init method

func InitWhoAmIWorkflow

func InitWhoAmIWorkflow(engine workflow.Engine) error

InitWhoAmIWorkflow initialises the whoAmI workflow before registering it with the engine.

func OpenBrowser

func OpenBrowser(authUrl string)

Types

type LegacyCliJsonError

type LegacyCliJsonError struct {
	Ok       bool   `json:"ok"`
	ErrorMsg string `json:"error"`
	Path     string `json:"path"`
}

LegacyCliJsonError is the error type returned by the legacy cli

func (*LegacyCliJsonError) Error

func (e *LegacyCliJsonError) Error() string

Error returns the LegacyCliJsonError error message

Jump to

Keyboard shortcuts

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