package sbserver

import "github.com/containerd/containerd/pkg/cri/sbserver"

Index

Functions

func ParseAuth

func ParseAuth(auth *runtime.AuthConfig, host string) (string, string, error)

ParseAuth parses AuthConfig and returns username and password/secret required by containerd.

func ValidateMode

func ValidateMode(modeStr string) error

ValidateMode validate the given mod value, returns err if mod is empty or unknown

Types

type CRIService

type CRIService interface {
	runtime.RuntimeServiceServer
	runtime.ImageServiceServer
	// Closer is used by containerd to gracefully stop cri service.
	io.Closer

	Run(ready func()) error

	Register(*grpc.Server) error
}

CRIService is the interface implement CRI remote service server.

func NewCRIService

func NewCRIService(config criconfig.Config, client *containerd.Client, nri *nri.API) (CRIService, error)

NewCRIService returns a new instance of CRIService

type ContainerInfo

type ContainerInfo struct {
	// TODO(random-liu): Add sandboxID in CRI container status.
	SandboxID      string                   `json:"sandboxID"`
	Pid            uint32                   `json:"pid"`
	Removing       bool                     `json:"removing"`
	SnapshotKey    string                   `json:"snapshotKey"`
	Snapshotter    string                   `json:"snapshotter"`
	RuntimeType    string                   `json:"runtimeType"`
	RuntimeOptions interface{}              `json:"runtimeOptions"`
	Config         *runtime.ContainerConfig `json:"config"`
	RuntimeSpec    *runtimespec.Spec        `json:"runtimeSpec"`
}

ContainerInfo is extra information for a container.

Source Files

blockio_stub.go cni_conf_syncer.go container_attach.go container_checkpoint.go container_create.go container_create_other.go container_events.go container_exec.go container_execsync.go container_list.go container_log_reopen.go container_remove.go container_start.go container_stats.go container_stats_list.go container_status.go container_stop.go container_update_resources.go container_update_resources_other.go events.go helpers.go helpers_other.go image_list.go image_pull.go image_remove.go image_status.go imagefs_info.go list_metric_descriptors.go list_pod_sandbox_metrics.go metrics.go nri.go nri_other.go rdt.go restart.go sandbox_list.go sandbox_portforward.go sandbox_portforward_other.go sandbox_remove.go sandbox_run.go sandbox_run_other.go sandbox_stats.go sandbox_stats_list.go sandbox_stats_other.go sandbox_status.go sandbox_stop.go service.go service_other.go snapshots.go status.go streaming.go test_config.go update_runtime_config.go version.go

Directories

PathSynopsis
pkg/cri/sbserver/podsandbox
Version
v1.7.4
Published
Aug 24, 2023
Platform
js/wasm
Imports
112 packages
Last checked
35 minutes ago

Tools for package owners.