package
1.11.0-alpha.1
Repository: https://github.com/ceshihao/kubernetes.git
Documentation: pkg.go.dev
# Functions
ConnectToDockerOrDie creates docker client connecting to docker daemon.
GetFakeContainerID generates a fake container id from container name with a hash.
IsContainerNotFoundError checks whether the error is container not found error.
IsImageNotFoundError checks whether the error is image not found error.
NewCalledDetail create a new call detail item.
No description provided by the author
NewInstrumentedInterface creates an instrumented Interface from an existing Interface.
ParseDockerTimestamp parses the timestamp returned by Interface from string to time.Time.
# Constants
Fake docker endpoint.
https://docs.docker.com/engine/reference/api/docker_remote_api/ docker version should be at least 1.11.x.
No description provided by the author
No description provided by the author
Status of a container returned by ListContainers.
# Structs
Because the new data type returned by engine-api is too complex to manually initialize, we need a fake container which is easier to initialize.
FakeDockerClient is a simple fake docker client, so that kubelet can be run for testing without requiring a real docker setup.
FakeDockerPuller is meant to be a simple wrapper around FakeDockerClient.
ImageNotFoundError is the error returned by InspectImage when image not found.
StreamOptions are the options used to configure the stream redirection.
# Interfaces
Interface is an abstract interface for testability.