Documentation ¶
Index ¶
Constants ¶
View Source
const INITIAL_SETUP_LOCK_FILE_NAME = "initial-setup.lock"
Variables ¶
View Source
var ProviderHandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "DAYTONA_PROVIDER_PLUGIN",
MagicCookieValue: "daytona_provider",
}
Functions ¶
func GetProviderManager ¶
func GetProviderManager(config *ProviderManagerConfig) *providerManagerImpl
func IsNoPluginFound ¶
Types ¶
type IProviderManager ¶
type IProviderManager interface { DownloadProvider(ctx context.Context, downloadUrls map[os_util.OperatingSystem]string, providerName string) (string, error) GetProvider(name string) (*provider.Provider, error) GetProviders() map[string]provider.Provider RegisterProvider(pluginPath string, manualInstall bool) error TerminateProviderProcesses(providersBasePath string) error UninstallProvider(name string) error Purge() error }
type ProviderManagerConfig ¶
type ProviderManagerConfig struct { GetTargetConfigMap func(ctx context.Context) (map[string]*models.TargetConfig, error) CreateTargetConfig func(ctx context.Context, name, options string, providerInfo models.ProviderInfo) error CreateProviderNetworkKey func(ctx context.Context, providerName string) (string, error) RunnerId string RunnerName string DaytonaDownloadUrl string ServerUrl string ApiUrl string ApiKey *string WorkspaceLogsDir string TargetLogsDir string BaseDir string ServerPort uint32 ApiPort uint32 Logger *log.Logger }
Click to show internal directories.
Click to hide internal directories.