vscode

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PLATFORM_WIN32_X64    = "win32-x64"
	PLATFORM_WIN32_IA32   = "win32-ia32"
	PLATFORM_WIN32_ARM64  = "win32-arm64"
	PLATFORM_LINUX_X64    = "linux-x64"
	PLATFORM_LINUX_ARM64  = "linux-arm64"
	PLATFORM_LINUX_ARMHF  = "linux-armhf"
	PLATFORM_DARWIN_X64   = "darwin-x64"
	PLATFORM_DARWIN_ARM64 = "darwin-arm64"
	PLATFORM_ALPINE_X64   = "alpine-x64"
)

Variables

This section is empty.

Functions

func ConvertLLBPlatform added in v0.3.17

func ConvertLLBPlatform(platform *v1.Platform) (string, error)

func GetLatestVersionURL

func GetLatestVersionURL(p Plugin) (string, error)

Types

type Client

type Client interface {
	DownloadOrCache(plugin Plugin) (bool, error)
	PluginPath(p Plugin) string
}

func NewClient

func NewClient(vendor MarketplaceVendor) (Client, error)

type MarketplaceVendor

type MarketplaceVendor string
const (
	MarketplaceVendorVSCode  MarketplaceVendor = "vscode"
	MarketplaceVendorOpenVSX MarketplaceVendor = "openvsx"
)

type Plugin

type Plugin struct {
	Publisher string
	Extension string
	Platform  string
	Version   *string
}

func ParsePlugin

func ParsePlugin(p string) (*Plugin, error)

func (Plugin) String

func (p Plugin) String() string

Jump to

Keyboard shortcuts

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