Global

Members

ContainerComponent

Panel of a container's specific characteristic (similar to info from docker inspect command)
Source:

containerProperties

Object containing all user input from prompt and an entry with the current working directory
Source:

ContainerRow

Provides high-level information of a container
Source:

ContainersTable

Lists all active and inactive containers in a table (similar to info from docker ps -a command)
Source:

DetailedView

Detailed view of Lifter Monitor that shows all the properties of the containers in a panel format
Source:

Display

Main section of the Lifter Monitor user interface that switches between dashboard view and detailed view
Source:

dockerfileContents

Array that constructs basic template to build Dockerfile Each subarray of dockerfileContents will render as its own line in Dockerfile
Source:

Methods

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: