Documentation
¶
Index ¶
- Constants
- Variables
- func AuthEntryPointDI(invocationCtx workflow.InvocationContext, logger *zerolog.Logger, ...) (err error)
- func DetermineRegionFromUrl(url string) (string, error)
- func Init(engine workflow.Engine) error
- func InitAuth(engine workflow.Engine) error
- func InitConfigWorkflow(engine workflow.Engine) error
- func InitDataTransformationWorkflow(engine workflow.Engine) error
- func InitFilterFindingsWorkflow(engine workflow.Engine) error
- func InitMachineEnrollWorkflow(engine workflow.Engine) error
- func InitOutputWorkflow(engine workflow.Engine) error
- func InitReportAnalyticsWorkflow(engine workflow.Engine) error
- func InitWhoAmIWorkflow(engine workflow.Engine) error
- func OpenBrowser(authUrl string)
- func TransformSarifToLocalFindingModel(sarifBytes []byte, summaryBytes []byte) (localFinding local_models.LocalFinding, err error)
- type SnykRegion
Constants ¶
const (
AuthTypeParameter = "auth-type"
)
const (
DataTransformationWorkflowName = "datatransformation"
)
const (
FilterFindingsWorkflowName = "findings.filter"
)
Variables ¶
var ConfigurationNewAuthenticationToken = "internal_new_snyk_token"
var WORKFLOWID_AUTH workflow.Identifier = workflow.NewWorkflowIdentifier(workflowNameAuth)
define a new workflow identifier for this workflow
var WORKFLOWID_CONFIG_ENVIRONMENT workflow.Identifier = workflow.NewWorkflowIdentifier(configEnvWorkflowName)
var WORKFLOWID_DATATRANSFORMATION = workflow.NewWorkflowIdentifier(DataTransformationWorkflowName)
var WORKFLOWID_FILTER_FINDINGS = workflow.NewWorkflowIdentifier(FilterFindingsWorkflowName)
var WORKFLOWID_MACHINE_ENROLL workflow.Identifier = workflow.NewWorkflowIdentifier(machineEnrollWorkflowName)
var WORKFLOWID_OUTPUT_WORKFLOW workflow.Identifier = workflow.NewWorkflowIdentifier("output")
var (
WORKFLOWID_REPORT_ANALYTICS workflow.Identifier = workflow.NewWorkflowIdentifier(reportAnalyticsWorkflowName)
)
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 Init ¶
Init initializes all local workflows localworkflows are initialized when create a new workflow engine via app.CreateAppEngine()
func InitConfigWorkflow ¶
func InitMachineEnrollWorkflow ¶ added in v0.35.0
InitMachineEnrollWorkflow initializes the machine.enroll workflow before registering it with the engine.
func InitOutputWorkflow ¶
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 ¶
InitReportAnalyticsWorkflow initializes the reportAnalytics workflow before registering it with the engine.
func InitWhoAmIWorkflow ¶
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
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
livecheck
Package livecheck runs live, environment-touching diagnostics (auth and connectivity) and maps each into the shared diagnosis.Finding contract, so live results join the same findings stream as log analysis.
|
Package livecheck runs live, environment-touching diagnostics (auth and connectivity) and maps each into the shared diagnosis.Finding contract, so live results join the same findings stream as log analysis. |
|
livecheck/cache
Package cache implements a live check that verifies the CLI cache directory is available and writable.
|
Package cache implements a live check that verifies the CLI cache directory is available and writable. |
|
livecheck/config
Package config implements a live check that runs configuration sanity checks and maps each issue into the shared diagnosis.Finding contract.
|
Package config implements a live check that runs configuration sanity checks and maps each issue into the shared diagnosis.Finding contract. |
|
Package local_models provides primitives to interact with the openapi HTTP API.
|
Package local_models provides primitives to interact with the openapi HTTP API. |