Documentation ¶
Index ¶
- type FakeClient
- func (c *FakeClient) NetworkConnect(ctx context.Context, networkID, container string, ...) error
- func (c *FakeClient) NetworkCreate(_ context.Context, _ string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
- func (c *FakeClient) NetworkDisconnect(ctx context.Context, networkID, container string, force bool) error
- func (c *FakeClient) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error)
- func (c *FakeClient) NetworkInspectWithRaw(_ context.Context, _ string, _ types.NetworkInspectOptions) (types.NetworkResource, []byte, error)
- func (c *FakeClient) NetworkList(_ context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error)
- func (c *FakeClient) NetworkRemove(ctx context.Context, networkID string) error
- func (c *FakeClient) NetworksPrune(_ context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error)
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 ¶
func (c *FakeClient) NetworkCreate(_ context.Context, _ string, options types.NetworkCreate) (types.NetworkCreateResponse, error)
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
Click to show internal directories.
Click to hide internal directories.