Documentation
¶
Index ¶
- Constants
- func CreateFromCommandData(c *config.Config, commandData types.CommandData, srv types.Server, ...) (types.Command, error)
- func GetTrustMessage(untrusted []types.Folder) string
- func HandleFolders(ctx context.Context, srv types.Server, notifier noti.Notifier, ...)
- func HandleUntrustedFolders(ctx context.Context, srv types.Server)
- func NewService(authService authentication.AuthenticationService, notifier noti.Notifier, ...) types.CommandService
- func Service() types.CommandService
- func SetService(service types.CommandService)
- type RangeDto
- type RangePositionDto
- type SnykCodeHttpClient
Constants ¶
View Source
const DoTrust = "Trust folders and continue"
View Source
const DontTrust = "Don't trust folders"
Variables ¶
This section is empty.
Functions ¶
func CreateFromCommandData ¶
func CreateFromCommandData( c *config.Config, commandData types.CommandData, srv types.Server, authService authentication.AuthenticationService, learnService learn.Service, notifier noti.Notifier, issueProvider snyk.IssueProvider, codeApiClient SnykCodeHttpClient, codeScanner *code.Scanner, cli cli.Executor, ) (types.Command, error)
CreateFromCommandData gets a command based on the given parameters that can be passed to the CommandService nolint: gocyclo, nolintlint // this is a factory, it's ok to have high cyclomatic complexity here
func GetTrustMessage ¶
func HandleFolders ¶
func HandleFolders(ctx context.Context, srv types.Server, notifier noti.Notifier, persister persistence.ScanSnapshotPersister)
func NewService ¶
func NewService(authService authentication.AuthenticationService, notifier noti.Notifier, learnService learn.Service, issueProvider snyk.IssueProvider, codeApiClient SnykCodeHttpClient, codeScanner *code.Scanner, cli cli.Executor) types.CommandService
func Service ¶
func Service() types.CommandService
Service returns the singleton instance of the command service. If not already created, it will create a new instance.
func SetService ¶
func SetService(service types.CommandService)
SetService sets the singleton instance of the command service.
Types ¶
type RangePositionDto ¶
type RangePositionDto = map[string]interface{}
Source Files
¶
- clear_cache.go
- code_fix.go
- code_fix_diffs.go
- code_fix_feedback.go
- command_factory.go
- command_service.go
- copy_auth_link.go
- execute_cli.go
- folder_handler.go
- generate_issue_description.go
- get_active_user.go
- get_feature_flag_status.go
- get_learn_lesson.go
- login.go
- logout.go
- navigate_to_range.go
- open_browser.go
- open_learn_lesson.go
- report_analytics.go
- sast_enabled.go
- trust_workspace_folders.go
- workspace_folder_scan.go
- workspace_scan.go
Click to show internal directories.
Click to hide internal directories.