network

package
v20.10.7+incompatible Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 4 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

This section is empty.

Types

type FakeClient

type FakeClient struct {
	NetworkInspectFunc func(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)
}

FakeClient is a fake NetworkAPIClient

func (*FakeClient) NetworkConnect

func (c *FakeClient) NetworkConnect(ctx context.Context, networkID, container string, config *network.EndpointSettings) error

NetworkConnect fakes connecting to a network

func (*FakeClient) NetworkCreate

NetworkCreate fakes creating a network

func (*FakeClient) NetworkDisconnect

func (c *FakeClient) NetworkDisconnect(ctx context.Context, networkID, container string, force bool) error

NetworkDisconnect fakes disconnecting from a network

func (*FakeClient) NetworkInspect

func (c *FakeClient) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)

NetworkInspect fakes inspecting a network

func (*FakeClient) NetworkInspectWithRaw

func (c *FakeClient) NetworkInspectWithRaw(_ context.Context, _ string, _ types.NetworkInspectOptions) (types.NetworkResource, []byte, error)

NetworkInspectWithRaw fakes inspecting a network with a raw response

func (*FakeClient) NetworkList

func (c *FakeClient) NetworkList(_ context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)

NetworkList fakes listing networks

func (*FakeClient) NetworkRemove

func (c *FakeClient) NetworkRemove(ctx context.Context, networkID string) error

NetworkRemove fakes removing networks

func (*FakeClient) NetworksPrune

func (c *FakeClient) NetworksPrune(_ context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error)

NetworksPrune fakes pruning networks

Jump to

Keyboard shortcuts

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