Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ContainerdHasNoDeprecationWarnings is a string for [runtime.RuntimeCondition.Type]. ContainerdHasNoDeprecationWarnings = "ContainerdHasNoDeprecationWarnings" // ContainerdHasDeprecationWarnings is a string for [runtime.RuntimeCondition.Reason]. // CamelCase is demanded by the spec. // https://github.com/kubernetes/cri-api/blob/v0.29.1/pkg/apis/runtime/v1/api.proto#L1514 ContainerdHasDeprecationWarnings = "ContainerdHasDeprecationWarnings" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRIService ¶
type CRIService interface {
// Closer is used by containerd to gracefully stop cri service.
io.Closer
IsInitialized() bool
Run(ready func()) error
}
CRIService is the interface implement CRI remote service server.
func NewCRIService ¶
func NewCRIService(options *CRIServiceOptions) (CRIService, runtime.RuntimeServiceServer, error)
NewCRIService returns a new instance of CRIService
type CRIServiceOptions ¶
type CRIServiceOptions struct {
RuntimeService RuntimeService
ImageService ImageService
StreamingConfig streaming.Config
NRI nriservice.API
// SandboxControllers is a map of all the loaded sandbox controllers
SandboxControllers map[string]sandbox.Controller
// Client is the base containerd client used for accessing services,
//
// TODO: Replace this gradually with directly configured instances
Client *containerd.Client
}
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.
type ImageService ¶
type ImageService interface {
RuntimeSnapshotter(ctx context.Context, ociRuntime criconfig.Runtime) string
PullImage(ctx context.Context, name string, credentials func(string) (string, string, error), sandboxConfig *runtime.PodSandboxConfig, runtimeHandler string) (string, error)
UpdateImage(ctx context.Context, r string) error
CheckImages(ctx context.Context) error
GetImage(id string) (imagestore.Image, error)
GetSnapshot(key, snapshotter string) (snapshotstore.Snapshot, error)
LocalResolve(refOrID string) (imagestore.Image, error)
ImageFSPaths() map[string]string
}
ImageService specifies dependencies to image service.
type RuntimeService ¶
type RuntimeService interface {
Config() criconfig.Config
// LoadCISpec loads cached OCI specs via `Runtime.BaseRuntimeSpec`
LoadOCISpec(string) (*oci.Spec, error)
}
RuntimeService specifies dependencies to runtime service which provides the runtime configuration and OCI spec loading.
Source Files
¶
- blockio_linux.go
- cni_conf_syncer.go
- container_attach.go
- container_checkpoint_linux.go
- container_create.go
- container_create_linux.go
- container_events.go
- container_exec.go
- container_execsync.go
- container_image_mount.go
- container_image_mount_linux.go
- container_list.go
- container_log_reopen.go
- container_remove.go
- container_start.go
- container_start_linux.go
- container_stats.go
- container_stats_list.go
- container_status.go
- container_status_linux.go
- container_stop.go
- container_update_resources.go
- container_update_resources_linux.go
- events.go
- helpers.go
- helpers_linux.go
- list_metric_descriptors.go
- list_pod_sandbox_metrics.go
- metrics.go
- nri.go
- nri_linux.go
- rdt.go
- restart.go
- runtime_config.go
- runtime_config_linux.go
- sandbox_list.go
- sandbox_portforward.go
- sandbox_portforward_linux.go
- sandbox_remove.go
- sandbox_run.go
- sandbox_run_linux.go
- sandbox_service.go
- sandbox_stats.go
- sandbox_stats_linux.go
- sandbox_stats_list.go
- sandbox_status.go
- sandbox_stop.go
- sandbox_update_resources.go
- service.go
- service_linux.go
- status.go
- streaming.go
- test_config.go
- update_runtime_config.go
- version.go
Click to show internal directories.
Click to hide internal directories.