diff --git a/src/runtime/virtcontainers/agent.go b/src/runtime/virtcontainers/agent.go index bf709b1ad7..8e95899461 100644 --- a/src/runtime/virtcontainers/agent.go +++ b/src/runtime/virtcontainers/agent.go @@ -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. diff --git a/src/runtime/virtcontainers/documentation/api/1.0/api.md b/src/runtime/virtcontainers/documentation/api/1.0/api.md index 81872715f3..57faa5ce14 100644 --- a/src/runtime/virtcontainers/documentation/api/1.0/api.md +++ b/src/runtime/virtcontainers/documentation/api/1.0/api.md @@ -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