外观
lib-docker 库参考
原文: https://finproducts.atlassian.net/wiki/spaces/JIDD3/pages/34793586808/FIN+5.3.1+lib-docker 中文整理基于 FIN 5.3.1
导读: 本页为
lib-docker的 API / 标签 / 函数参考文档。
以下为 API 参考,保留英文以便对照源码;目录已列出(英文标题便于检索);概述已尽量中译。
目录(导读)
- lib
- meta
- tags
- apps
- funcs
- views
- def
- supertypes
- tags
- enum
- dockerDeleteContainer(id)
- dockerListContainers()
- dockerListImages()
- dockerRun(image, config: {})
- src
概述(中译)
Docker 管理
API 正文(英文)
tags
| dockerContainer | Docker container |
| dockerImage | Docker image |
| dockerState | Current status of a Docker container |
| dockerStatus | Additional human-readable status of the container |
apps
| docker | Views used to manage Docker images |
funcs
| dockerDeleteContainer | Kill and remove a container |
| dockerListContainers | |
| dockerListImages | |
| dockerRun |
views
| dockerContainers | Manage Docker containers |
| dockerImages | Mange Docker images |
| dockerSettings | Settings for the Docker extension |
def
app:docker
Views used to manage Docker images
meta
| def | app:docker |
| dis | Docker |
| icon | docker |
| is | app |
| lib | lib:docker |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| app | UI application grouping of views |
def
dockerContainer
Docker container
meta
| def | dockerContainer |
| is | entity |
| lib | lib:docker |
| mandatory | ✓ |
supertypes
| marker | Marker labels a dict with typing information |
| entity | Top-level dicts with a unique identifier |
tags
| dis | Display name for an entity |
| dockerState | Current status of a Docker container |
| dockerStatus | Additional human-readable status of the container |
| id | Defines the unique identifier of an entity in system using a ref value type |
def
dockerImage
Docker image
meta
| def | dockerImage |
| is | entity |
| lib | lib:docker |
| mandatory | ✓ |
supertypes
| marker | Marker labels a dict with typing information |
| entity | Top-level dicts with a unique identifier |
tags
| dis | Display name for an entity |
| id | Defines the unique identifier of an entity in system using a ref value type |
def
dockerState
Current status of a Docker container
meta
| def | dockerState |
| enum | See below |
| is | str |
| lib | lib:docker |
| tagOn | dockerContainer |
| transient | ✓ |
enum
| created | |
| restarting | |
| running | |
| removing | |
| paused | |
| exited | |
| dead |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
dockerStatus
Additional human-readable status of the container
meta
| def | dockerStatus |
| is | str |
| lib | lib:docker |
| tagOn | dockerContainer |
supertypes
| val | Data value type |
| scalar | Scalar is an atomic value kind |
| str | Unicode string of characters |
def
func:dockerDeleteContainer
dockerDeleteContainer(id)
Kill and remove a container.
meta
| admin | ✓ |
| def | func:dockerDeleteContainer |
| is | func |
| lib | lib:docker |
| name | dockerDeleteContainer |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:dockerListContainers
dockerListContainers()
meta
| admin | ✓ |
| def | func:dockerListContainers |
| is | func |
| lib | lib:docker |
| name | dockerListContainers |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:dockerListImages
dockerListImages()
meta
| admin | ✓ |
| def | func:dockerListImages |
| is | func |
| lib | lib:docker |
| name | dockerListImages |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
func:dockerRun
dockerRun(image, config: {})
meta
| admin | ✓ |
| def | func:dockerRun |
| is | func |
| lib | lib:docker |
| name | dockerRun |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| func | Axon function |
def
view:dockerContainers
Manage Docker containers
meta
| admin | ✓ |
| appName | docker |
| def | view:dockerContainers |
| dis | Containers |
| icon | view |
| is | view |
| lib | lib:docker |
| order | 101 |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: { inherit:"table" }
delete: { action:"dockerDeleteContainer", select, disKey:"ui::delete" }
data: { expr:"dockerListContainers()" }def
view:dockerImages
Mange Docker images
meta
| appName | docker |
| def | view:dockerImages |
| dis | Images |
| icon | view |
| is | view |
| lib | lib:docker |
| order | 100 |
| su | ✓ |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: { inherit:"table" }
data: { expr:"dockerListImages()" }def
view:dockerSettings
Settings for the Docker extension
meta
| admin | ✓ |
| appName | settings |
| def | view:dockerSettings |
| disKey | Docker |
| icon | view |
| is | view |
| lib | lib:docker |
supertypes
| feature | Feature namespace of definitions formatted as feature:name |
| view | Fresco UI view |
src
view: {inherit:"form"}
submit: {action:"extSettingsCommit"}
data: {expr:"extSettings(\"docker\")"}