localworkflows

package
v0.0.0-...-46da95b Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthTypeParameter = "auth-type"
)
View Source
const (
	DataTransformationWorkflowName = "datatransformation"
)
View Source
const (
	FilterFindingsWorkflowName = "findings.filter"
)

Variables

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

define a new workflow identifier for this workflow

View Source
var WORKFLOWID_CONFIG_ENVIRONMENT workflow.Identifier = workflow.NewWorkflowIdentifier(configEnvWorkflowName)
View Source
var WORKFLOWID_OUTPUT_WORKFLOW workflow.Identifier = workflow.NewWorkflowIdentifier("output")
View Source
var (
	WORKFLOWID_REPORT_ANALYTICS workflow.Identifier = workflow.NewWorkflowIdentifier(reportAnalyticsWorkflowName)
)
View Source
var WORKFLOWID_WHOAMI workflow.Identifier = workflow.NewWorkflowIdentifier(whoAmIworkflowName)

define a new workflow identifier for this workflow

Functions

func AuthEntryPointDI

func AuthEntryPointDI(invocationCtx workflow.InvocationContext, logger *zerolog.Logger, engine workflow.Engine, authenticator auth.Authenticator) (err error)

func DetermineRegionFromUrl

func DetermineRegionFromUrl(url string) (string, error)

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 initializes the auth workflow before registering it with the engine.

func InitConfigWorkflow

func InitConfigWorkflow(engine workflow.Engine) error

func InitDataTransformationWorkflow

func InitDataTransformationWorkflow(engine workflow.Engine) error

func InitFilterFindingsWorkflow

func InitFilterFindingsWorkflow(engine workflow.Engine) error

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 InitReportAnalyticsWorkflow

func InitReportAnalyticsWorkflow(engine workflow.Engine) error

InitReportAnalyticsWorkflow initializes the reportAnalytics workflow before registering it with the engine.

func InitWhoAmIWorkflow

func InitWhoAmIWorkflow(engine workflow.Engine) error

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

func OpenBrowser

func OpenBrowser(authUrl string)

func TransformSarifToLocalFindingModel

func TransformSarifToLocalFindingModel(sarifBytes []byte, summaryBytes []byte) (localFinding local_models.LocalFinding, err error)

Types

type SnykRegion

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

Directories

Path Synopsis
Package local_models provides primitives to interact with the openapi HTTP API.
Package local_models provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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