package store

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

Index

Variables

var (
	// ErrAlreadyExist is the error returned when data added in the store
	// already exists.
	//
	// This error has been DEPRECATED and will be removed in 1.5. Please switch
	// usage directly to `errdefs.ErrAlreadyExists`.
	ErrAlreadyExist = errdefs.ErrAlreadyExists
	// ErrNotExist is the error returned when data is not in the store.
	//
	// This error has been DEPRECATED and will be removed in 1.5. Please switch
	// usage directly to `errdefs.ErrNotFound`.
	ErrNotExist = errdefs.ErrNotFound
)

Types

type StopCh

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

StopCh is used to propagate the stop information of a container.

func NewStopCh

func NewStopCh() *StopCh

NewStopCh creates a stop channel. The channel is open by default.

func (*StopCh) Stop

func (s *StopCh) Stop()

Stop close stopCh of the container.

func (*StopCh) Stopped

func (s *StopCh) Stopped() <-chan struct{}

Stopped return the stopCh of the container as a readonly channel.

Source Files

errors.go util.go

Directories

PathSynopsis
pkg/cri/store/container
pkg/cri/store/image
pkg/cri/store/label
pkg/cri/store/sandbox
pkg/cri/store/snapshot
pkg/cri/store/truncindexPackage truncindex provides a general 'index tree', used by Docker in order to be able to reference containers by only a few unambiguous characters of their id.
Version
v1.5.14
Published
Oct 24, 2022
Platform
js/wasm
Imports
2 packages
Last checked
18 minutes ago

Tools for package owners.