Documentation ¶
Index ¶
- Constants
- Variables
- func DecodeAuthTokenFromPullSecret(secret k8sv1.Secret, host string) (string, error)
- func GetRegistryFromImageName(imageName string) (string, error)
- func IsCritical(status *corev1.ContainerStatus) bool
- func IsReady(status *corev1.ContainerStatus) bool
- func IsRunning(status *corev1.ContainerStatus) bool
- func IsStarted(status *corev1.ContainerStatus) bool
- func IsTerminated(status *corev1.ContainerStatus) bool
- func IsWaiting(status *corev1.ContainerStatus) bool
- func NewKubernetesDriver(options *options.Options, log log.Logger) driver.Driver
- func PreparePullSecretData(registryURL, authToken, email string) (string, error)
- func Succeeded(status *corev1.ContainerStatus) bool
- type DevContainerInfo
- type DockerConfig
- type DockerConfigEntry
- type DockerConfigJSON
- type KubernetesDriver
- func (k *KubernetesDriver) CommandDevContainer(ctx context.Context, workspaceId, user, command string, stdin io.Reader, ...) error
- func (k *KubernetesDriver) DeleteDevContainer(ctx context.Context, workspaceId string) error
- func (k *KubernetesDriver) DeletePullSecret(ctx context.Context, pullSecretName string) error
- func (k *KubernetesDriver) EnsurePullSecret(ctx context.Context, pullSecretName string, dockerImage string) (bool, error)
- func (k *KubernetesDriver) FindDevContainer(ctx context.Context, workspaceId string) (*config.ContainerDetails, error)
- func (k *KubernetesDriver) GetDevContainerLogs(ctx context.Context, workspaceID string, stdout io.Writer, stderr io.Writer) error
- func (k *KubernetesDriver) ReadSecretContents(ctx context.Context, pullSecretName string, host string) (string, error)
- func (k *KubernetesDriver) RunDevContainer(ctx context.Context, workspaceId string, options *driver.RunOptions) error
- func (k *KubernetesDriver) StartDevContainer(ctx context.Context, workspaceId string) error
- func (k *KubernetesDriver) StopDevContainer(ctx context.Context, workspaceId string) error
- func (k *KubernetesDriver) TargetArchitecture(ctx context.Context, workspaceId string) (string, error)
Constants ¶
View Source
const ( DevPodCreatedLabel = "devpod.sh/created" DevPodWorkspaceLabel = "devpod.sh/workspace" DevPodWorkspaceUIDLabel = "devpod.sh/workspace-uid" DevPodInfoAnnotation = "devpod.sh/info" DevPodLastAppliedAnnotation = "devpod.sh/last-applied-configuration" )
View Source
const DevContainerName = "devpod"
View Source
const InitContainerName = "devpod-init"
View Source
const OfficialDockerRegistry = "https://index.docker.io/v1/"
Variables ¶
View Source
var ExtraDevPodLabels = map[string]string{ DevPodCreatedLabel: "true", }
Functions ¶
func DecodeAuthTokenFromPullSecret ¶ added in v0.1.1
func GetRegistryFromImageName ¶ added in v0.1.1
GetRegistryFromImageName retrieves the registry name from an imageName
func IsCritical ¶ added in v0.1.1
func IsCritical(status *corev1.ContainerStatus) bool
func IsReady ¶ added in v0.1.1
func IsReady(status *corev1.ContainerStatus) bool
func IsRunning ¶ added in v0.1.1
func IsRunning(status *corev1.ContainerStatus) bool
func IsStarted ¶ added in v0.1.13
func IsStarted(status *corev1.ContainerStatus) bool
func IsTerminated ¶ added in v0.1.1
func IsTerminated(status *corev1.ContainerStatus) bool
func IsWaiting ¶ added in v0.1.1
func IsWaiting(status *corev1.ContainerStatus) bool
func NewKubernetesDriver ¶
func PreparePullSecretData ¶ added in v0.1.1
func Succeeded ¶ added in v0.1.1
func Succeeded(status *corev1.ContainerStatus) bool
Types ¶
type DevContainerInfo ¶
type DevContainerInfo struct { WorkspaceID string Options *driver.RunOptions }
type DockerConfig ¶ added in v0.1.1
type DockerConfig map[string]DockerConfigEntry
DockerConfig represents the config file used by the docker CLI. This config that represents the credentials that should be used when pulling images from specific image repositories.
type DockerConfigEntry ¶ added in v0.1.1
DockerConfigEntry holds the user information that grant the access to docker registry
type DockerConfigJSON ¶ added in v0.1.1
type DockerConfigJSON struct {
Auths DockerConfig `json:"auths"`
}
DockerConfigJSON represents a local docker auth config file for pulling images.
type KubernetesDriver ¶ added in v0.1.1
func (*KubernetesDriver) CommandDevContainer ¶ added in v0.1.1
func (*KubernetesDriver) DeleteDevContainer ¶ added in v0.1.1
func (k *KubernetesDriver) DeleteDevContainer(ctx context.Context, workspaceId string) error
func (*KubernetesDriver) DeletePullSecret ¶ added in v0.1.1
func (k *KubernetesDriver) DeletePullSecret( ctx context.Context, pullSecretName string) error
func (*KubernetesDriver) EnsurePullSecret ¶ added in v0.1.1
func (*KubernetesDriver) FindDevContainer ¶ added in v0.1.1
func (k *KubernetesDriver) FindDevContainer(ctx context.Context, workspaceId string) (*config.ContainerDetails, error)
func (*KubernetesDriver) GetDevContainerLogs ¶ added in v0.1.8
func (*KubernetesDriver) ReadSecretContents ¶ added in v0.1.1
func (*KubernetesDriver) RunDevContainer ¶ added in v0.1.1
func (k *KubernetesDriver) RunDevContainer( ctx context.Context, workspaceId string, options *driver.RunOptions, ) error
func (*KubernetesDriver) StartDevContainer ¶ added in v0.1.1
func (k *KubernetesDriver) StartDevContainer(ctx context.Context, workspaceId string) error
func (*KubernetesDriver) StopDevContainer ¶ added in v0.1.1
func (k *KubernetesDriver) StopDevContainer(ctx context.Context, workspaceId string) error
func (*KubernetesDriver) TargetArchitecture ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.