Merge pull request #1565 from jodh-intel/fix-markdown

Fix markdown
This commit is contained in:
Hui Zhu 2019-04-23 12:52:09 +08:00 committed by GitHub
commit 0c5cfcd302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 25 deletions

View File

@ -68,11 +68,7 @@ $ kata-runtime kata-check
> **Note:** > **Note:**
> >
> If you run the previous command as the `root` user, further checks will be > If you run the previous command as the `root` user, further checks will be
> performed (e.g. it will check if another incompatible hypervisor is running): > performed (e.g. it will check if another incompatible hypervisor is running).
>
> ```bash
> $ sudo kata-runtime kata-check
> ```
## Download and install ## Download and install
@ -124,7 +120,7 @@ $ kata-runtime --kata-config=/some/where/configuration.toml ...
``` ```
The runtime will log the full path to the configuration file it is using. See The runtime will log the full path to the configuration file it is using. See
the [logging](#Logging) section for further details. the [logging](#logging) section for further details.
To see details of your systems runtime environment (including the location of To see details of your systems runtime environment (including the location of
the configuration file being used), run: the configuration file being used), run:

View File

@ -52,5 +52,5 @@ This will:
# Submitting changes # Submitting changes
For details on the format and how to submit changes, refer to the For details on the format and how to submit changes, refer to the
[Contributing](CONTRIBUTING.md) document. [Contributing](../../CONTRIBUTING.md) document.

View File

@ -16,7 +16,7 @@ semantics strictly follow the
The sandbox API allows callers to [create](#createsandbox), [delete](#deletesandbox), The sandbox API allows callers to [create](#createsandbox), [delete](#deletesandbox),
[start](#startsandbox), [stop](#stopsandbox), [run](#runsandbox), [pause](#pausesandbox), [start](#startsandbox), [stop](#stopsandbox), [run](#runsandbox), [pause](#pausesandbox),
[resume](resumesandbox) and [list](#listsandbox) VM (Virtual Machine) based sandboxes. [resume](#resumesandbox) and [list](#listsandbox) VM (Virtual Machine) based sandboxes.
To initially create a sandbox, the API caller must prepare a To initially create a sandbox, the API caller must prepare a
[`SandboxConfig`](#sandboxconfig) and pass it to either [`CreateSandbox`](#createsandbox) [`SandboxConfig`](#sandboxconfig) and pass it to either [`CreateSandbox`](#createsandbox)
@ -43,10 +43,10 @@ sandbox lifecycle through the rest of the [sandbox API](#sandbox-functions).
* [NetworkConfig](#networkconfig) * [NetworkConfig](#networkconfig)
* [NetInterworkingModel](#netinterworkingmodel) * [NetInterworkingModel](#netinterworkingmodel)
* [Volume](#volume) * [Volume](#volume)
* [ContainerConfig](#containerconfig) * [Sandbox ContainerConfig](#sandbox-containerconfig)
* [Cmd](#cmd) * [Sandbox Cmd](#sandbox-cmd)
* [Mount](#mount) * [Sandbox Mount](#sandbox-mount)
* [DeviceInfo](#deviceinfo) * [Sandbox DeviceInfo](#sandbox-deviceinfo)
* [VCSandbox](#vcsandbox) * [VCSandbox](#vcsandbox)
#### `SandboxConfig` #### `SandboxConfig`
@ -298,7 +298,7 @@ type Volume struct {
} }
``` ```
##### `ContainerConfig` ##### Sandbox `ContainerConfig`
```Go ```Go
// ContainerConfig describes one container runtime configuration. // ContainerConfig describes one container runtime configuration.
type ContainerConfig struct { type ContainerConfig struct {
@ -325,7 +325,7 @@ type ContainerConfig struct {
} }
``` ```
###### `Cmd` ###### Sandbox `Cmd`
```Go ```Go
// Cmd represents a command to execute in a running container. // Cmd represents a command to execute in a running container.
type Cmd struct { type Cmd struct {
@ -367,7 +367,7 @@ type Cmd struct {
} }
``` ```
###### `Mount` ###### Sandbox `Mount`
```Go ```Go
// Mount describes a container mount. // Mount describes a container mount.
type Mount struct { type Mount struct {
@ -388,7 +388,7 @@ type Mount struct {
} }
``` ```
###### `DeviceInfo` ###### Sandbox `DeviceInfo`
```Go ```Go
// DeviceInfo is an embedded type that contains device data common to all types of devices. // DeviceInfo is an embedded type that contains device data common to all types of devices.
type DeviceInfo struct { type DeviceInfo struct {
@ -541,7 +541,7 @@ As a virtcontainers container is always linked to a sandbox, the entire containe
API always takes a sandbox ID as its first argument. API always takes a sandbox ID as its first argument.
To create a container, the API caller must prepare a To create a container, the API caller must prepare a
[`ContainerConfig`](#containerconfig) and pass it to [`ContainerConfig`](#sandbox-containerconfig) and pass it to
[`CreateContainer`](#createcontainer) together with a sandbox ID. Upon successful [`CreateContainer`](#createcontainer) together with a sandbox ID. Upon successful
container creation, the virtcontainers API will return a container creation, the virtcontainers API will return a
[`VCContainer`](#vccontainer) interface back to the caller. [`VCContainer`](#vccontainer) interface back to the caller.
@ -556,17 +556,17 @@ to manage the container lifecycle through the rest of the
### Container Structures ### Container Structures
* [ContainerConfig](#containerconfig-1) * [Container ContainerConfig](#container-containerconfig)
* [Cmd](#cmd-1) * [Container Cmd](#container-cmd)
* [Mount](#mount-1) * [Container Mount](#container-mount)
* [DeviceInfo](#deviceinfo-1) * [Container DeviceInfo](#container-deviceinfo)
* [Process](#process) * [Process](#process)
* [ContainerStatus](#containerstatus) * [ContainerStatus](#containerstatus)
* [ProcessListOptions](#processlistoptions) * [ProcessListOptions](#processlistoptions)
* [VCContainer](#vccontainer) * [VCContainer](#vccontainer)
#### `ContainerConfig` #### Container `ContainerConfig`
```Go ```Go
// ContainerConfig describes one container runtime configuration. // ContainerConfig describes one container runtime configuration.
type ContainerConfig struct { type ContainerConfig struct {
@ -593,7 +593,7 @@ type ContainerConfig struct {
} }
``` ```
##### `Cmd` ##### Container `Cmd`
```Go ```Go
// Cmd represents a command to execute in a running container. // Cmd represents a command to execute in a running container.
type Cmd struct { type Cmd struct {
@ -635,7 +635,7 @@ type Cmd struct {
} }
``` ```
##### `Mount` ##### Container `Mount`
```Go ```Go
// Mount describes a container mount. // Mount describes a container mount.
type Mount struct { type Mount struct {
@ -656,7 +656,7 @@ type Mount struct {
} }
``` ```
##### `DeviceInfo` ##### Container `DeviceInfo`
```Go ```Go
// DeviceInfo is an embedded type that contains device data common to all types of devices. // DeviceInfo is an embedded type that contains device data common to all types of devices.
type DeviceInfo struct { type DeviceInfo struct {