cri

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cri is used to get running sandboxes from the CRI socket

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIs

type APIs interface {
	GetRunningPodSandboxes(log logger.Logger) ([]*SandboxInfo, error)
}

APIs is the CRI interface

type Client

type Client struct{}

Client is an empty struct

func New

func New() *Client

New creates a new CRI client

func (*Client) GetRunningPodSandboxes

func (c *Client) GetRunningPodSandboxes(log logger.Logger) ([]*SandboxInfo, error)

GetRunningPodSandboxes get running sandboxIDs

type SandboxInfo

type SandboxInfo struct {
	ID string
	IP string
}

SandboxInfo provides container information

Directories

Path Synopsis
Package mock_cri is a generated GoMock package.
Package mock_cri is a generated GoMock package.

Jump to

Keyboard shortcuts

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