Function
Static Public Summary | ||
public |
Button(Object}: *): React.Component Button. |
|
public |
Compose form. |
|
public |
Container. |
|
public |
ContainerCard(props: Object): React.Component Container's card for listing. |
|
public |
ContainerInfo(props: Object): React.Component Container's basic informations. |
|
public |
ContainerLogs(props: Object): React.Component Container's logs. |
|
public |
ContainerNetwork(props: Object): React.Component Container's network informations. |
|
public |
ContainerVolumes(props: Object): React.Component Container's volumes informations. |
|
public |
ContainersList(props: Object): React.Component Container's list. |
|
public |
Login form. |
|
public |
Component wrapper for App. |
|
public |
Throbber for displaying background task. |
|
public |
ThrobberButton(props: Object): React.Component Throbber wrapped in a Button for displaying background task on click. |
|
public |
Toolbar for buttons and error message. |
|
public |
* actionContainerSaga(action: Object) Saga of make an action on a container :
|
|
public |
* appSaga() Sagas of app. |
|
public |
* composeSaga(action: Object) Saga of creating new Docker's container from Compose file :
|
|
public |
Container's reducer. |
|
public |
containers(state: Object, action: Object): Object Containers' reducer. |
|
public |
Debounced fetch of containers. |
|
public |
Error's reducer. |
|
public |
* eventsSaga() Saga of handling events' stream:
|
|
public |
* fetchContainerSaga(action: Object) Saga of Fetch container action :
|
|
public |
Saga of Fetch containers action :
|
|
public |
Saga of Login action :
|
|
public |
* logoutSaga() Saga of Logout action :
|
|
public |
Logs's reducer. |
|
public |
Saga of handling logs' stream:
|
|
public |
makeActionAndTypeCreator(type: string, action: string, inputs: Array): object Action creator : return the function and the constant for the given action |
|
public |
makeActionCreator(type: string, argNames: ...objects): func Action creator : return a function for given action |
|
public |
makeApiActionCreator(camelCaseName: string, inputs: Array, outputs: Array): object Action creator for an API call (request, success, fail) |
|
public |
makeOpenCloseActionCreator(camelCaseName: [type], opens: Array, closes: Array): [type] Action creator for an WebSocket call (open, close) |
|
public |
onErrorActions(calledAction: String, error: Error): Array Handle error on sagas. |
|
public |
Handler for keyDown event on keyboard input. |
|
public |
Pendings' reducer. |
|
public |
* readEventsSaga() Saga of reading events' stream :
|
|
public |
* readLogsSaga(action: Object) Saga of reading logs' stream :
|
|
public |
setRef(that: *, name: *, component: *) |
|
public |
toTypeName(name: string): string Transform a name into a type name : SNAKE_UPPER_CASE |
Static Public
public Button(Object}: *): React.Component source
import Button from 'docker-deploy/app/Presentational/Button/Button.jsx'
Button.
Params:
Name | Type | Attribute | Description |
Object} | * | props Props of the component. |
Return:
React.Component | Button with rendered children. |
public Compose(props: Object): React.Component source
import Compose from 'docker-deploy/app/Presentational/Compose/Compose.jsx'
Compose form.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Compose form with inputs. |
public Container(props: Object): React.Component source
import Container from 'docker-deploy/app/Presentational/Container/Container.jsx'
Container.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Container informations. |
public ContainerCard(props: Object): React.Component source
import ContainerCard from 'docker-deploy/app/Presentational/ContainerCard/ContainerCard.jsx'
Container's card for listing.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Card with summarized details of container. |
public ContainerInfo(props: Object): React.Component source
import ContainerInfo from 'docker-deploy/app/Presentational/Container/ContainerInfo.jsx'
Container's basic informations.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Container's basic informations. |
public ContainerLogs(props: Object): React.Component source
import ContainerLogs from 'docker-deploy/app/Presentational/Container/ContainerLogs.jsx'
Container's logs.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Container's logs. |
public ContainerNetwork(props: Object): React.Component source
import ContainerNetwork from 'docker-deploy/app/Presentational/Container/ContainerNetwork.jsx'
Container's network informations.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Container's network information. |
public ContainerVolumes(props: Object): React.Component source
import ContainerVolumes from 'docker-deploy/app/Presentational/Container/ContainerVolumes.jsx'
Container's volumes informations.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Container's volumes information. |
public ContainersList(props: Object): React.Component source
import ContainersList from 'docker-deploy/app/Presentational/ContainersList/ContainersList.jsx'
Container's list.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | List view of containers |
public Login(props: Object): React.Component source
import Login from 'docker-deploy/app/Presentational/Login/Login.jsx'
Login form.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Login with username/password |
public Main(props: Object): React.Component source
import Main from 'docker-deploy/app/Presentational/Main/Main.jsx'
Component wrapper for App.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Wrapper of App |
public Throbber(props: Object): React.Component source
import Throbber from 'docker-deploy/app/Presentational/Throbber/Throbber.jsx'
Throbber for displaying background task.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Throbber with label and title if provided |
public ThrobberButton(props: Object): React.Component source
import ThrobberButton from 'docker-deploy/app/Presentational/Throbber/ThrobberButton.jsx'
Throbber wrapped in a Button for displaying background task on click.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Button with wrapped children or Thorbber if pending. |
public Toolbar(props: Object): React.Component source
import Toolbar from 'docker-deploy/app/Presentational/Toolbar/Toolbar.jsx'
Toolbar for buttons and error message.
Params:
Name | Type | Attribute | Description |
props | Object | Props of the component. |
Return:
React.Component | Toolbar with children and message if provided |
public * actionContainerSaga(action: Object) source
import {actionContainerSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of make an action on a container :
- Execute action on container
- Fetch container if non-destructive action
- Redirect to home otherwise
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public * appSaga() source
import appSaga from 'docker-deploy/app/Container/sagas/index.js'
Sagas of app.
public * composeSaga(action: Object) source
import {composeSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of creating new Docker's container from Compose file :
- Create a new app from Compose
- Redirect to home otherwise
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public container(state: Object, action: Object): Object source
import container from 'docker-deploy/app/Container/reducers/container.js'
Container's reducer.
public containers(state: Object, action: Object): Object source
import containers from 'docker-deploy/app/Container/reducers/containers.js'
Containers' reducer.
public * debounceFetchContainersSaga() source
import {debounceFetchContainersSaga} from 'docker-deploy/app/Container/sagas/index.js'
Debounced fetch of containers. Duration is based on the sleep servier-side before renaming containers.
public error(state: Object, action: Object): Object source
import error from 'docker-deploy/app/Container/reducers/error.js'
Error's reducer.
public * eventsSaga() source
import {eventsSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of handling events' stream:
- Fork the reading channel
- Handle close request
public * fetchContainerSaga(action: Object) source
import {fetchContainerSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of Fetch container action :
- Fetch container
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public * fetchContainersSaga() source
import {fetchContainersSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of Fetch containers action :
- Fetch containers
public * loginSaga(action: Object) source
import {loginSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of Login action :
- Login
- Fetch containers on succeed
- Open events stream
- Redirect to home
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public * logoutSaga() source
import {logoutSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of Logout action :
- Logout
- Close both streams (logs and events)
- Redirect to login
public logs(state: Object, action: Object): Object source
import logs from 'docker-deploy/app/Container/reducers/logs.js'
Logs's reducer.
public * logsSaga(action: Object) source
import {logsSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of handling logs' stream:
- Fork the reading channel
- Handle close request
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public makeActionAndTypeCreator(type: string, action: string, inputs: Array): object source
import {makeActionAndTypeCreator} from 'docker-deploy/app/Container/actions/index.js'
Action creator : return the function and the constant for the given action
public makeActionCreator(type: string, argNames: ...objects): func source
import {makeActionCreator} from 'docker-deploy/app/Container/actions/index.js'
Action creator : return a function for given action
Params:
Name | Type | Attribute | Description |
type | string | Action type |
|
argNames | ...objects | Properties' names of action |
Return:
func | Function that generate action with type and properties given the params |
public makeApiActionCreator(camelCaseName: string, inputs: Array, outputs: Array): object source
import {makeApiActionCreator} from 'docker-deploy/app/Container/actions/index.js'
Action creator for an API call (request, success, fail)
public makeOpenCloseActionCreator(camelCaseName: [type], opens: Array, closes: Array): [type] source
import {makeOpenCloseActionCreator} from 'docker-deploy/app/Container/actions/index.js'
Action creator for an WebSocket call (open, close)
Return:
[type] | An object container constants and functions for requesting WS |
public onErrorActions(calledAction: String, error: Error): Array source
import {onErrorActions} from 'docker-deploy/app/Container/sagas/index.js'
Handle error on sagas. Redirect to login if status is 401.
public onKeyDown(event: Object, callback: Function) source
import onKeyDown from 'docker-deploy/app/Tools/input.js'
Handler for keyDown event on keyboard input.
public pending(state: Object, action: Object): Object source
import pending from 'docker-deploy/app/Container/reducers/pending.js'
Pendings' reducer.
public * readEventsSaga() source
import {readEventsSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of reading events' stream :
- Create a channel to handle every events
- Debounced fetch containers
public * readLogsSaga(action: Object) source
import {readLogsSaga} from 'docker-deploy/app/Container/sagas/index.js'
Saga of reading logs' stream :
- Create a channel to handle every log
- Add log to state
Params:
Name | Type | Attribute | Description |
action | Object | Action dispatched |
public setRef(that: *, name: *, component: *) source
import setRef from 'docker-deploy/app/Tools/ref.js'
Params:
Name | Type | Attribute | Description |
that | * | ||
name | * | ||
component | * |