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

# Packages

No description provided by the author

# Functions

CreateFakeContainer creates a container with the given containerName.
CreateFakeContainerWithVolumeMounts creates a container with the given containerName and volumeMounts.
CreateFakeDeployment creates a fake deployment with the given pod name and labels.
CreateFakeDeploymentsWithContainers creates a fake pod with the given pod name, container name and containers.
CreateFakePod creates a fake pod with the given pod name and component name.
CreateFakePodWithContainers creates a fake pod with the given pod name, container name and containers.
DevfileObjWithInternalNoneEndpoints returns a devfile object with internal endpoints for testing.
DevfileObjWithSecureEndpoints returns a devfile object with internal endpoints for testing.
FakeClusterServiceClass creates a fake service class with the specified name for testing purposes.
FakeClusterServicePlan creates a fake plan with the specified external name and using planNumber to customize description, metadata and parameter values.
No description provided by the author
No description provided by the author
FakeNamespaces returns fake namespace list for use by API mock functions for Unit tests.
FakeNamespaceStatus returns fake namespace status for use by mock watch on namespace.
FakeOnlyOneExistingNamespace similar as FakeOnlyOneExistingProjects only with Namespace.
FakeOnlyOneExistingProjects returns fake projectlist with single project for use by API mock functions for Unit tests testing delete of the only available project.
FakePlanInstanceCreateParameterSchemasRaw creates 2 create parameter schemas for testing purposes.
FakePortListener starts a fake test server and listens on the given localPort.
FakeProjects returns fake projectlist for use by API mock functions for Unit tests.
FakeProjectStatus returns fake project status for use by mock watch on project.
No description provided by the author
FakeRemoveProject removes the delete requested project from the list of projects passed.
FakeServiceClassInstance creates and returns a simple service class instance for testing purpose serviceInstanceName is the name of the service class instance serviceClassName is the name of the service class planName is the name of the plan status is the status of the service instance.
GetFakeContainerComponent returns a fake container component for testing.
GetFakeExecRunCommands returns a fake env for testing.
GetFakeExecRunCommands returns fake commands for testing.
GetFakeVolumeComponent returns a fake volume component for testing.
GetFakeVolumeMount returns a fake volume mount for testing.
No description provided by the author
No description provided by the author
GetSingleSecureRoute returns a secure route generated with the given parameters.
GetTestDevfileObj returns a devfile object for testing.
GetTestDevfileObjWithMultipleEndpoints returns a devfile object with multiple endpoints for testing.
GetTestDevfileObjWithPath returns a devfile object for testing.
No description provided by the author
RunPromptTest runs the specified PromptTest in the given testing context.
RunTest runs the given test using the specified procedure simulating the user interaction with the console.
SimulateFileModifications mock function to simulate requested file/folder operation Parameters: basePath: The parent directory for file/folder involved in desired file operation fileModification: Meta-data of file/folder Returns: path to file/folder involved in the operation error if any or nil.
SingleValuedRawExtension creates a simple, single valued (name=value), raw extension.
Stdio converts an expect.Console into a survey terminal.Stdio.
TempMkdir creates a temporary directory.
TempMkFile creates a temporary file.

# Constants

APPEND enum representing append operation on a file.
CREATE enum representing create operation for a file/folder.
DELETE enum representing delete operation for a file/folder.
Directory enum to represent directory.
RegularFile enum to represent regular file.
UPDATE enum representing update operation on a file.

# Structs

FileProperties to contain meta-data of a file like, file/folder name, file/folder parent dir, file type and desired file modification type.
PromptTest encapsulates a survey prompt test.

# Type aliases

FileType custom type to indicate type of file.
M is an alias for map[string]interface{}.
ModificationType custom type to indicate file modification type.