configuration

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ConfigTelemetry = "docker.lsp.telemetry"

	ConfigExperimentalVulnerabilityScanning = "docker.lsp.experimental.vulnerabilityScanning"

	ConfigExperimentalScoutCriticalHighVulnerabilities = "docker.lsp.experimental.scout.criticalHighVulnerabilities"
	ConfigExperimentalScoutNotPinnedDigest             = "docker.lsp.experimental.scout.notPinnedDigest"
	ConfigExperimentalScoutRecommendedTag              = "docker.lsp.experimental.scout.recommendedTag"
	ConfigExperimentalScoutVulnerabilities             = "docker.lsp.experimental.scout.vulnerabilities"
)

Variables

This section is empty.

Functions

func Documents

func Documents() []protocol.DocumentUri

func Remove

func Remove(document protocol.DocumentUri)

func Store

func Store(document protocol.DocumentUri, configuration Configuration)

Types

type Configuration

type Configuration struct {
	// docker.lsp.telemetry
	Telemetry    TelemetrySetting `json:"telemetry,omitempty"`
	Experimental Experimental     `json:"experimental"`
}

func Get

func Get(document protocol.DocumentUri) Configuration

type Experimental

type Experimental struct {
	// docker.lsp.experimental.vulnerabilityScanning
	VulnerabilityScanning bool `json:"vulnerabilityScanning"`
	// docker.lsp.experimental.scout
	Scout Scout `json:"scout"`
}

type Scout added in v0.8.0

type Scout struct {
	CriticalHighVulnerabilities bool `json:"criticalHighVulnerabilities"`
	NotPinnedDigest             bool `json:"notPinnedDigest"`
	RecommendedTag              bool `json:"recommendedTag"`
	Vulnerabilites              bool `json:"vulnerabilites"`
}

type TelemetrySetting

type TelemetrySetting string
const (
	TelemetrySettingOff   TelemetrySetting = "off"
	TelemetrySettingError TelemetrySetting = "error"
	TelemetrySettingAll   TelemetrySetting = "all"
)

Jump to

Keyboard shortcuts

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