-
askConfigQuestion(obj)
-
Function that prompts questions on command line, writes answers to containerProperties objects, and builds YML file when complete
Parameters:
Name |
Type |
Description |
obj |
object
|
Object containing all attributes of prompted question |
- Source:
-
buildDockerfile(callback)
-
Function that searches root directory for files that require global dependencies
Parameters:
Name |
Type |
Description |
callback |
function
|
Callback function that is invoked once Dockerfile is ready |
- Source:
-
getContainerDetail(context, id)
-
Function to do an AJAX GET request on the express server's REST-ful API to access
detailed Docker information for a specific container
Parameters:
Name |
Type |
Description |
context |
object
|
Reference to the React component that will store the container detail information |
id |
string
|
Docker container's unique hash ID |
- Source:
-
makeDescription(text, options)
-
Function that returns a string of the question and options (if any) for each prompt by the command line tool
Parameters:
Name |
Type |
Description |
text |
string
|
Question to be displayed by command line too |
options |
array
|
Array of selections availale to the user for a given question |
- Source:
-
render()
-
Check if Page component has a layout property; and if yes, wrap the page
into the specified layout, then mount to document.body.
- Source:
-
validateResponse(obj, choice)
-
Function that returns boolean relating to whether user made a valid choice from options provided in command line
Parameters:
Name |
Type |
Description |
obj |
array
|
Array of available prompt options |
choice |
text
|
String of selection made by user |
- Source: