Documentation ¶
Index ¶
- Variables
- func DownloadProvider(downloadUrls map[os.OperatingSystem]string, downloadPath string) error
- func GetDefaultProviders(manifest ProvidersManifest) map[string]*Version
- func GetProvider(name string) (*Provider, error)
- func GetProviders() map[string]Provider
- func HasUpdateAvailable(providerName string, currentVersion string, manifest ProvidersManifest) bool
- func RegisterProvider(pluginPath, serverDownloadUrl, serverUrl, serverApiUrl string) error
- func TerminateProviderProcesses(providersBasePath string) error
- func UninstallProvider(name string) error
- type ProviderManifest
- type ProvidersManifest
- type Version
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 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 TerminateProviderProcesses ¶ added in v0.2.0
func UninstallProvider ¶
Types ¶
type ProviderManifest ¶
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
Click to show internal directories.
Click to hide internal directories.