command

package
v0.0.0-...-dfd24c6 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 28 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 vulnmap.CommandData,
	srv lsp.Server,
	authService vulnmap.AuthenticationService,
	learnService learn.Service,
	notifier noti.Notifier,
	issueProvider ide.IssueProvider,
	codeApiClient VulnmapCodeHttpClient,
) (vulnmap.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 vulnmap.AuthenticationService, notifier noti.Notifier, learnService learn.Service, issueProvider ide.IssueProvider, codeApiClient VulnmapCodeHttpClient) vulnmap.CommandService

func Service

func Service() vulnmap.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 vulnmap.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 VulnmapCodeHttpClient

type VulnmapCodeHttpClient 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