mirror of
https://github.com/containers/podman.git
synced 2025-10-25 02:04:43 +08:00
Merge pull request #8400 from rhatdan/varlink
Remove varlink support from podman
This commit is contained in:
@ -80,8 +80,8 @@ func (c *Container) Top(descriptors []string) ([]string, error) {
|
||||
func (c *Container) GetContainerPidInformation(descriptors []string) ([]string, error) {
|
||||
pid := strconv.Itoa(c.state.PID)
|
||||
// TODO: psgo returns a [][]string to give users the ability to apply
|
||||
// filters on the data. We need to change the API here and the
|
||||
// varlink API to return a [][]string if we want to make use of
|
||||
// filters on the data. We need to change the API here
|
||||
// to return a [][]string if we want to make use of
|
||||
// filtering.
|
||||
opts := psgo.JoinNamespaceOpts{FillMappings: rootless.IsRootless()}
|
||||
|
||||
|
||||
@ -95,10 +95,6 @@ type Type string
|
||||
type Status string
|
||||
|
||||
const (
|
||||
// If you add or subtract any values to the following lists, make sure you also update
|
||||
// the switch statements below and the enums for EventType or EventStatus in the
|
||||
// varlink description file.
|
||||
|
||||
// Container - event is related to containers
|
||||
Container Type = "container"
|
||||
// Image - event is related to images
|
||||
|
||||
@ -53,9 +53,8 @@ func (p *Pod) GetPodPidInformation(descriptors []string) ([]string, error) {
|
||||
}
|
||||
|
||||
// TODO: psgo returns a [][]string to give users the ability to apply
|
||||
// filters on the data. We need to change the API here and the
|
||||
// varlink API to return a [][]string if we want to make use of
|
||||
// filtering.
|
||||
// filters on the data. We need to change the API here to return
|
||||
// a [][]string if we want to make use of filtering.
|
||||
opts := psgo.JoinNamespaceOpts{FillMappings: rootless.IsRootless()}
|
||||
output, err := psgo.JoinNamespaceAndProcessInfoByPidsWithOptions(pids, psgoDescriptors, &opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user