cri

package
v1.12.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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 PodSandboxMetadata added in v1.11.0

type PodSandboxMetadata struct {
	// Pod's namespace
	Namespace string
	// Pod's name
	Name string
}

PodSandboxMetadata contains metadata about pod sandboxes.

type SandboxInfo

type SandboxInfo struct {
	// Pod sandbox's ID.
	ID string
	// Pod sandbox's IP addresses
	IPs []string
	// Timestamp(in nanoSec) when sandbox was created
	CreationTimestamp int64
	// Pod sandbox's metadata if any.
	Metadata *PodSandboxMetadata
}

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