mock

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 16 Imported by: 0

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