Documentation ¶
Overview ¶
Package projects defines library functions for reconciling projects in a Devfile (i.e. cloning and maintaining state)
Index ¶
- func GetClonePath(project *dw.Project) string
- func GetProjectCloneInitContainer(workspace *dw.DevWorkspaceTemplateSpec, options Options, ...) (*corev1.Container, error)
- func GetStarterProject(workspace *dw.DevWorkspaceTemplateSpec) (*dw.StarterProject, error)
- func ValidateAllProjects(workspace *dw.DevWorkspaceTemplateSpec) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClonePath ¶ added in v0.24.0
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 }
Click to show internal directories.
Click to hide internal directories.