mock

package
v1.40.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteLog added in v1.39.0

func WriteLog(ctx context.Context, t *testing.T, w http.ResponseWriter, msgs <-chan *Logs)

Types

type Logs

type Logs struct {
	Content     string
	Multiplexed bool
}

type Server

type Server struct {
	Info       system.Info
	List       []container.Summary
	Disks      system.DiskUsage
	RawDisks   []byte // Raw response as the disks response format depends on the API version
	Inspect    map[string]container.InspectResponse
	Stats      map[string]container.StatsResponse
	Logs       map[string]Logs
	LogStreams map[string]chan *Logs

	Services []swarm.Service
	Tasks    []swarm.Task
	Nodes    []swarm.Node

	APIVersion string

	ListParams map[string]string
	// contains filtered or unexported fields
}

func NewServerFromFiles

func NewServerFromFiles(path string) (*Server, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) Start

func (s *Server) Start(t *testing.T) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL