Versions in this module Expand all Collapse all v0 v0.4.0 Jun 23, 2016 Changes in this version + func NewFakeCache(runtime container.Runtime) container.Cache + func NewFakeRuntimeCache(getter podsGetter) RuntimeCache + type FakeOS struct + func (FakeOS) Mkdir(path string, perm os.FileMode) error + func (FakeOS) Symlink(oldname string, newname string) error + type FakeRuntime struct + APIPodStatus api.PodStatus + APIVersionInfo string + AllPodList []*Pod + CalledFunctions []string + Err error + ImageList []Image + InspectErr error + KilledContainers []string + KilledPods []string + PodList []*Pod + PodStatus PodStatus + RuntimeType string + StartedContainers []string + StartedPods []string + StatusErr error + VersionInfo string + func (f *FakeRuntime) APIVersion() (Version, error) + func (f *FakeRuntime) AssertCalls(calls []string) error + func (f *FakeRuntime) AssertKilledContainers(containers []string) error + func (f *FakeRuntime) AssertKilledPods(pods []string) error + func (f *FakeRuntime) AssertStartedContainers(containers []string) error + func (f *FakeRuntime) AssertStartedPods(pods []string) error + func (f *FakeRuntime) AttachContainer(containerID ContainerID, stdin io.Reader, stdout, stderr io.WriteCloser, ...) error + func (f *FakeRuntime) ClearCalls() + func (f *FakeRuntime) ExecInContainer(containerID ContainerID, cmd []string, stdin io.Reader, ...) error + func (f *FakeRuntime) GarbageCollect(gcPolicy ContainerGCPolicy) error + func (f *FakeRuntime) GetContainerLogs(pod *api.Pod, containerID ContainerID, logOptions *api.PodLogOptions, ...) (err error) + func (f *FakeRuntime) GetPodStatus(uid types.UID, name, namespace string) (*PodStatus, error) + func (f *FakeRuntime) GetPods(all bool) ([]*Pod, error) + func (f *FakeRuntime) IsImagePresent(image ImageSpec) (bool, error) + func (f *FakeRuntime) KillContainerInPod(container api.Container, pod *api.Pod) error + func (f *FakeRuntime) KillPod(pod *api.Pod, runningPod Pod) error + func (f *FakeRuntime) ListImages() ([]Image, error) + func (f *FakeRuntime) Name() string + func (f *FakeRuntime) PortForward(pod *Pod, port uint16, stream io.ReadWriteCloser) error + func (f *FakeRuntime) PullImage(image ImageSpec, pullSecrets []api.Secret) error + func (f *FakeRuntime) RemoveImage(image ImageSpec) error + func (f *FakeRuntime) RunContainerInPod(container api.Container, pod *api.Pod, ...) error + func (f *FakeRuntime) RunInContainer(containerID ContainerID, cmd []string) ([]byte, error) + func (f *FakeRuntime) Status() error + func (f *FakeRuntime) SyncPod(pod *api.Pod, _ api.PodStatus, _ *PodStatus, _ []api.Secret, ...) (result PodSyncResult) + func (f *FakeRuntime) Type() string + func (f *FakeRuntime) Version() (Version, error) + type FakeRuntimeCache struct + func (f *FakeRuntimeCache) ForceUpdateIfOlder(time.Time) error + func (f *FakeRuntimeCache) GetPods() ([]*Pod, error) + type FakeVersion struct + Version string + func (fv *FakeVersion) Compare(other string) (int, error) + func (fv *FakeVersion) String() string + type Mock struct + func (r *Mock) APIVersion() (Version, error) + func (r *Mock) AttachContainer(containerID ContainerID, stdin io.Reader, stdout, stderr io.WriteCloser, ...) error + func (r *Mock) ExecInContainer(containerID ContainerID, cmd []string, stdin io.Reader, ...) error + func (r *Mock) GarbageCollect(gcPolicy ContainerGCPolicy) error + func (r *Mock) GetContainerLogs(pod *api.Pod, containerID ContainerID, logOptions *api.PodLogOptions, ...) (err error) + func (r *Mock) GetPodStatus(uid types.UID, name, namespace string) (*PodStatus, error) + func (r *Mock) GetPods(all bool) ([]*Pod, error) + func (r *Mock) IsImagePresent(image ImageSpec) (bool, error) + func (r *Mock) KillContainerInPod(container api.Container, pod *api.Pod) error + func (r *Mock) KillPod(pod *api.Pod, runningPod Pod) error + func (r *Mock) ListImages() ([]Image, error) + func (r *Mock) PortForward(pod *Pod, port uint16, stream io.ReadWriteCloser) error + func (r *Mock) PullImage(image ImageSpec, pullSecrets []api.Secret) error + func (r *Mock) RemoveImage(image ImageSpec) error + func (r *Mock) RunContainerInPod(container api.Container, pod *api.Pod, ...) error + func (r *Mock) RunInContainer(containerID ContainerID, cmd []string) ([]byte, error) + func (r *Mock) Start() error + func (r *Mock) Status() error + func (r *Mock) SyncPod(pod *api.Pod, apiStatus api.PodStatus, status *PodStatus, secrets []api.Secret, ...) PodSyncResult + func (r *Mock) Type() string + func (r *Mock) Version() (Version, error)