projects

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package projects defines library functions for reconciling projects in a Devfile (i.e. cloning and maintaining state)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClonePath added in v0.24.0

func GetClonePath(project *dw.Project) string

GetClonePath gets the correct clonePath for a project, given the semantics in devfile/api

func GetProjectCloneInitContainer added in v0.12.0

func GetProjectCloneInitContainer(workspace *dw.DevWorkspaceTemplateSpec, options Options, proxyConfig *controllerv1alpha1.Proxy) (*corev1.Container, error)

func GetStarterProject added in v0.22.0

func GetStarterProject(workspace *dw.DevWorkspaceTemplateSpec) (*dw.StarterProject, error)

func ValidateAllProjects added in v0.25.0

func ValidateAllProjects(workspace *dw.DevWorkspaceTemplateSpec) error

ValidateAllProjectsvalidates that no two projects, dependentProjects or starterProjects (if one is selected) share the same name or cloned path

Types

type Options added in v0.21.0

type Options struct {
	Image      string
	PullPolicy corev1.PullPolicy
	Resources  *corev1.ResourceRequirements
	Env        []corev1.EnvVar
}

Jump to

Keyboard shortcuts

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