manager

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderHandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "DAYTONA_PROVIDER_PLUGIN",
	MagicCookieValue: "daytona_provider",
}

Functions

func DownloadProvider

func DownloadProvider(downloadUrls map[os.OperatingSystem]string, downloadPath string) error

func GetDefaultProviders

func GetDefaultProviders(manifest ProvidersManifest) map[string]*Version

func GetProvider

func GetProvider(name string) (*Provider, error)

func GetProviders

func GetProviders() map[string]Provider

func HasUpdateAvailable added in v0.3.0

func HasUpdateAvailable(providerName string, currentVersion string, manifest ProvidersManifest) bool

func RegisterProvider

func RegisterProvider(pluginPath, serverDownloadUrl, serverUrl, serverApiUrl string) error

func TerminateProviderProcesses added in v0.2.0

func TerminateProviderProcesses(providersBasePath string) error

func UninstallProvider

func UninstallProvider(name string) error

Types

type ProviderManifest

type ProviderManifest struct {
	Default  bool               `json:"default"`
	Versions map[string]Version `json:"versions"`
}

type ProvidersManifest

type ProvidersManifest map[string]ProviderManifest

func GetProvidersManifest

func GetProvidersManifest(registryUrl string) (*ProvidersManifest, error)

type Version

type Version struct {
	DownloadUrls map[os.OperatingSystem]string `json:"downloadUrls"`
}

func FindLatestVersion

func FindLatestVersion(providerManifest ProviderManifest) *Version

Jump to

Keyboard shortcuts

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