common

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

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 added in v0.52.0

func AgentMode() bool

func GetDaytonaScript added in v0.36.0

func GetDaytonaScript(baseUrl string) string

func GetShell added in v0.52.0

func GetShell() string

func GetTailscaleHostname added in v0.52.0

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 added in v0.52.0

func IsLocalDockerTarget(providerName, options, runnerId string) bool

Types

type ContainerRegistries added in v0.52.0

type ContainerRegistries map[string]*models.ContainerRegistry

func ExtractContainerRegistryFromEnvVars added in v0.52.0

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

func (ContainerRegistries) FindContainerRegistryByImageName added in v0.52.0

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
JackTT - Gopher 🇻🇳