Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DockerImageIDPrefix is the prefix of image id in container status. DockerImageIDPrefix = "docker://" // DockerPullableImageIDPrefix is the prefix of pullable image id in container status. DockerPullableImageIDPrefix = "docker-pullable://" )
Variables ¶
This section is empty.
Functions ¶
func NewDockerClientFromConfig ¶
func NewDockerClientFromConfig(config *ClientConfig) libdocker.Interface
NetDockerClientFromConfig create a docker client from given configure return nil if nil configure is given.
Types ¶
type CRIService ¶
type CRIService interface { /* runtimeapi.RuntimeServiceServer runtimeapi.ImageServiceServer */ Start() error }
type ClientConfig ¶
type ClientConfig struct { DockerEndpoint string RuntimeRequestTimeout time.Duration ImagePullProgressDeadline time.Duration // Configuration for fake docker client EnableSleep bool WithTraceDisabled bool }
ClientConfig is parameters used to initialize docker client
type DockerService ¶
type DockerService interface { CRIService // For serving streaming calls. http.Handler }
DockerService is an interface that embeds the new RuntimeService and ImageService interface
func NewDockerService ¶
func NewDockerService(config *ClientConfig, startLocalStreamingServer bool) (DockerService, error)
NOTE: Anything passed to DockerService should be enventually handled in another way when we switch to running the shim as a different process.
Directories
¶
Path | Synopsis |
---|---|
Inspired by - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/libdocker/client.go Inspired by: - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubeletdockershim/libdocker/helpers.go Inspired by - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/libdocker/instrumented_client.go
|
Inspired by - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/libdocker/client.go Inspired by: - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubeletdockershim/libdocker/helpers.go Inspired by - https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/dockershim/libdocker/instrumented_client.go |
Click to show internal directories.
Click to hide internal directories.