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 ¶
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 ¶
func (*FakeAgentFactory) NewContainerLogger(string, agents.StreamType, io.ReadCloser) agents.Agent
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 ¶
- Version
- v0.1.0-alpha.1
- Published
- Jun 22, 2017
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 4 hours ago –
Tools for package owners.