kubernetes

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindFirstProcess

func FindFirstProcess(pids []int) (int, error)

func FindPidsInNS

func FindPidsInNS(inod uint64, ns string) ([]int, error)

func NewContainer2Pid

func NewContainer2Pid() platforms.Container2Pid

Types

type CRIContainer2Pid

type CRIContainer2Pid struct {
}

func (*CRIContainer2Pid) GetPid

func (c *CRIContainer2Pid) GetPid(maincontext context.Context, attachment interface{}) (int, error)

type KubeAttachment added in v0.2.0

type KubeAttachment struct {
	Namespace string `json:"namespace"`
	Pod       string `json:"pod"`
	Container string `json:"container"`
}

type KubeOperations

type KubeOperations struct {
	// contains filtered or unexported fields
}

func NewKubeOperations

func NewKubeOperations(ctx context.Context, config *rest.Config) (*KubeOperations, error)

func (*KubeOperations) Locate

func (s *KubeOperations) Locate(context context.Context, attachment interface{}) (interface{}, *platforms.Container, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL