mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-11-04 03:29:55 +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:
		@@ -38,27 +38,6 @@ func WithNewAgentFunc(ctx context.Context, f newAgentFuncType) context.Context {
 | 
				
			|||||||
	return context.WithValue(ctx, newAgentFuncKey{}, f)
 | 
						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.
 | 
					// agent is the virtcontainers agent interface.
 | 
				
			||||||
// Agents are running in the guest VM and handling
 | 
					// Agents are running in the guest VM and handling
 | 
				
			||||||
// communications between the host and guest.
 | 
					// communications between the host and guest.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -680,7 +680,6 @@ to manage the container lifecycle through the rest of the
 | 
				
			|||||||
  * [Container `DeviceInfo`](#container-deviceinfo)
 | 
					  * [Container `DeviceInfo`](#container-deviceinfo)
 | 
				
			||||||
* [`Process`](#process)
 | 
					* [`Process`](#process)
 | 
				
			||||||
* [`ContainerStatus`](#containerstatus)
 | 
					* [`ContainerStatus`](#containerstatus)
 | 
				
			||||||
* [`ProcessListOptions`](#processlistoptions)
 | 
					 | 
				
			||||||
* [`VCContainer`](#vccontainer)
 | 
					* [`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`
 | 
					#### `VCContainer`
 | 
				
			||||||
```Go
 | 
					```Go
 | 
				
			||||||
// VCContainer is the Container interface
 | 
					// VCContainer is the Container interface
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user