common

package
v0.52.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerRegistryServerEnvVarSuffix   = "_CONTAINER_REGISTRY_SERVER"
	ContainerRegistryUsernameEnvVarSuffix = "_CONTAINER_REGISTRY_USERNAME"
	ContainerRegistryPasswordEnvVarSuffix = "_CONTAINER_REGISTRY_PASSWORD"
)
View Source
const LOCAL_RUNNER_ID = "local"

Variables

View Source
var (
	ErrConnection = errors.New("If you are using a VPN or firewall, please read our troubleshooting guide at https://daytona.io/docs/misc/troubleshooting#connectivity-issues")
)
View Source
var (
	ErrCtrlCAbort = errors.New("ctrl-c exit")
)

Functions

func AgentMode

func AgentMode() bool

func GetDaytonaScript added in v0.36.0

func GetDaytonaScript(baseUrl string) string

func GetTailscaleHostname

func GetTailscaleHostname(resourceId string) string

func IsConnectionError added in v0.42.0

func IsConnectionError(err error) bool

func IsCtrlCAbort

func IsCtrlCAbort(err error) bool

func IsLocalDockerTarget

func IsLocalDockerTarget(providerName, options, runnerId string) bool

Types

type ContainerRegistries

type ContainerRegistries map[string]*models.ContainerRegistry

func ExtractContainerRegistryFromEnvVars

func ExtractContainerRegistryFromEnvVars(envVars map[string]string) (map[string]string, ContainerRegistries)

func (ContainerRegistries) FindContainerRegistryByImageName

func (c ContainerRegistries) FindContainerRegistryByImageName(image string) *models.ContainerRegistry

Jump to

Keyboard shortcuts

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