mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
runtime: delete types or const that no longer needed
type: ProcessListOptions; ProcessList const: SocketTypeVSOCK Fixes: #2285 Signed-off-by: Binbin Zhang <binbin36520@gmail.com>
This commit is contained in:
parent
fb583780f6
commit
39ffd8ee84
@ -38,27 +38,6 @@ func WithNewAgentFunc(ctx context.Context, f newAgentFuncType) context.Context {
|
||||
return context.WithValue(ctx, newAgentFuncKey{}, f)
|
||||
}
|
||||
|
||||
// ProcessListOptions contains the options used to list running
|
||||
// processes inside the container
|
||||
type ProcessListOptions struct {
|
||||
// Format describes the output format to list the running processes.
|
||||
// Formats are unrelated to ps(1) formats, only two formats can be specified:
|
||||
// "json" and "table"
|
||||
Format string
|
||||
|
||||
// Args contains the list of arguments to run ps(1) command.
|
||||
// If Args is empty the agent will use "-ef" as options to ps(1).
|
||||
Args []string
|
||||
}
|
||||
|
||||
// ProcessList represents the list of running processes inside the container
|
||||
type ProcessList []byte
|
||||
|
||||
const (
|
||||
// SocketTypeVSOCK is a VSOCK socket type for talking to an agent.
|
||||
SocketTypeVSOCK = "vsock"
|
||||
)
|
||||
|
||||
// agent is the virtcontainers agent interface.
|
||||
// Agents are running in the guest VM and handling
|
||||
// communications between the host and guest.
|
||||
|
@ -680,7 +680,6 @@ to manage the container lifecycle through the rest of the
|
||||
* [Container `DeviceInfo`](#container-deviceinfo)
|
||||
* [`Process`](#process)
|
||||
* [`ContainerStatus`](#containerstatus)
|
||||
* [`ProcessListOptions`](#processlistoptions)
|
||||
* [`VCContainer`](#vccontainer)
|
||||
|
||||
|
||||
@ -873,22 +872,6 @@ type ContainerStatus struct {
|
||||
}
|
||||
```
|
||||
|
||||
#### `ProcessListOptions`
|
||||
```Go
|
||||
// ProcessListOptions contains the options used to list running
|
||||
// processes inside the container
|
||||
type ProcessListOptions struct {
|
||||
// Format describes the output format to list the running processes.
|
||||
// Formats are unrelated to ps(1) formats, only two formats can be specified:
|
||||
// "json" and "table"
|
||||
Format string
|
||||
|
||||
// Args contains the list of arguments to run ps(1) command.
|
||||
// If Args is empty the agent will use "-ef" as options to ps(1).
|
||||
Args []string
|
||||
}
|
||||
```
|
||||
|
||||
#### `VCContainer`
|
||||
```Go
|
||||
// VCContainer is the Container interface
|
||||
|
Loading…
Reference in New Issue
Block a user