package testing

import "github.com/containerd/cri/pkg/server/agents/testing"

Index

Functions

func NewFakeAgentFactory

func NewFakeAgentFactory() agents.AgentFactory

NewFakeAgentFactory creates fake agent factory.

Types

type FakeAgent

type FakeAgent struct{}

FakeAgent is a fake agent for test.

func (*FakeAgent) Start

func (f *FakeAgent) Start() error

Start always return nil not. TODO(random-liu): Inject error and test error.

type FakeAgentFactory

type FakeAgentFactory struct{}

FakeAgentFactory is a fake agent factory for test.

func (*FakeAgentFactory) NewContainerLogger

NewContainerLogger creates a fake agent as container logger.

func (*FakeAgentFactory) NewSandboxLogger

func (*FakeAgentFactory) NewSandboxLogger(rc io.ReadCloser) agents.Agent

NewSandboxLogger creates a fake agent as sandbox logger.

Source Files

fake_agent_factory.go

Version
v0.1.0
Published
Jun 29, 2017
Platform
js/wasm
Imports
2 packages
Last checked
4 hours ago

Tools for package owners.