package
3.16.1+incompatible
Repository: https://github.com/redhat-developer/odo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AddKubernetesComponentToDevfile adds a resource definition to devfile object as an inlined Kubernetes component.
Build executes the default Build command of the devfile.
Deploy executes the default deploy command of the devfile.
No description provided by the author
No description provided by the author
ExecuteCommandByName executes the specified command cmdName in the Devfile.
ExecuteCommandByNameAndKind executes the specified command cmdName of the given kind in the Devfile.
FindComponentByName returns the Devfile component that matches the specified name.
GetCommand iterates through the devfile commands and returns the devfile command with the specified name and group kind.
GetContainerComponentsForCommand returns the list of container components that would get used if the specified command runs.
GetContainerEndpointMapping returns a map of container names and slice of its endpoints.
GetDebugEndpointsForComponent returns all Debug endpoints for the specified component.
GetDevfileContainerEndpointMapping returns a map of container components names and slice of its endpoints, given a Devfile object in parameter.
GetEndpointsFromDevfile returns a slice of all endpoints in a devfile and ignores the endpoints with exposure values in ignoreExposures.
GetImageComponentsToPushAutomatically returns the list of Image components that can be automatically created on startup.
GetK8sAndOcComponentsToPush returns the list of Kubernetes and OpenShift components to push, The list returned is governed by the DeployByDefault field in each component.
GetK8sComponentAsUnstructuredList parses the Inlined/URI K8s of the Devfile K8s component and returns a list of unstructured.Unstructured objects; List is returned here because it is possible to define multiple K8s resources against a single Devfile K8s component.
GetK8sManifestsWithVariablesSubstituted returns the full content of either a Kubernetes or an Openshift Devfile component, either Inlined or referenced via a URI.
GetReferencedLocalFiles returns the local files referenced by the Devfile.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsDebugEndpoint returns whether the specified endpoint represents a Debug endpoint, based on the following naming convention: it is considered a Debug endpoint if it's named "debug" or if its name starts with "debug-".
IsDebugPort returns whether the specified string represents a Debug endpoint, based on the following naming convention: it is considered a Debug endpoint if it's named "debug" or if its name starts with "debug-".
ListKubernetesComponents lists all the kubernetes components from the devfile.
ListOpenShiftComponents lists all the openshift components from the devfile.
No description provided by the author
No description provided by the author
No description provided by the author
NewMockHandler creates a new mock instance.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateAndGetCommand validates and returns the command specified if it is valid.
ValidateAndGetPushCommands validates the build and the run commands, if provided through odo dev or else checks the devfile for devBuild and devRun.

# Constants

No description provided by the author
PreStop is a devfile event.

# Structs

ComponentNotExistError is returned when a component referenced in a command or component does not exist.
No description provided by the author
ComponentTypeNotFoundError is returned when no component with the specified type has been found in Devfile.
No description provided by the author
MockHandler is a mock of Handler interface.
MockHandlerMockRecorder is the mock recorder for MockHandler.
MoreThanOneDefaultCommandFoundError is returned when several default commands of the specified kind exist.
NoCommandForGroup indicates an error when no command was found for the given Group.
NoCommandFoundError is returned when no command of the specified kind is found in devfile.
NoDefaultCommandFoundError is returned when several commands of the specified kind exist but no one is the default one.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author