network

package
v0.0.0-...-f0373c1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 0

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