Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CgroupIDManager ¶
type CgroupIDManager interface { Run(ctx context.Context) GetCgroupIDForContainer(podUID, containerID string) (uint64, error) ListCgroupIDsForPod(podUID string) ([]uint64, error) }
CgroupIDManager maintains the mapping of pod to cgroup id.
func NewCgroupIDManager ¶
func NewCgroupIDManager(podFetcher pod.PodFetcher) CgroupIDManager
NewCgroupIDManager returns a CgroupIDManager
type CgroupIDManagerStub ¶ added in v0.5.9
func (*CgroupIDManagerStub) GetCgroupIDForContainer ¶ added in v0.5.9
func (c *CgroupIDManagerStub) GetCgroupIDForContainer(podUID, containerID string) (uint64, error)
func (*CgroupIDManagerStub) ListCgroupIDsForPod ¶ added in v0.5.9
func (c *CgroupIDManagerStub) ListCgroupIDsForPod(podUID string) ([]uint64, error)
func (*CgroupIDManagerStub) Run ¶ added in v0.5.9
func (c *CgroupIDManagerStub) Run(_ context.Context)
type ContainerCache ¶
type PodCache ¶
type PodCache map[string]ContainerCache // Keyed by pod UID
Click to show internal directories.
Click to hide internal directories.