command

package
v0.0.0-...-4dc51e6 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

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(
	commandData snyk.CommandData,
	srv lsp.Server,
	authService snyk.AuthenticationService,
	learnService learn.Service,
	notifier noti.Notifier,
	issueProvider snyk.IssueProvider,
	codeApiClient SnykCodeHttpClient,
	codeScanner *code.Scanner,
) (snyk.Command, error)

func GetTrustMessage

func GetTrustMessage(untrusted []*workspace.Folder) string

func HandleUntrustedFolders

func HandleUntrustedFolders(ctx context.Context, srv lsp.Server)

func NewService

func NewService(
	authService snyk.AuthenticationService,
	notifier noti.Notifier,
	learnService learn.Service,
	issueProvider snyk.IssueProvider,
	codeApiClient SnykCodeHttpClient,
	codeScanner *code.Scanner,
) snyk.CommandService

func Service

func Service() snyk.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 snyk.CommandService)

SetService sets the singleton instance of the command service.

Types

type RangeDto

type RangeDto = map[string]interface{}

type RangePositionDto

type RangePositionDto = map[string]interface{}

type SnykCodeHttpClient

type SnykCodeHttpClient interface {
	SubmitAutofixFeedback(ctx context.Context, fixId string, positive bool) error
}

Jump to

Keyboard shortcuts

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