Documentation
¶
Index ¶
- func Connect(ctx context.Context, cli *client.Client, network string, containerName string) error
- func Connected(ctx context.Context, cli *client.Client, network string, containerName string) (bool, error)
- func Create(ctx context.Context, cli *client.Client, network *networktypes.Inspect) error
- func Get(ctx context.Context, cli *client.Client, name string) (networktypes.Inspect, error)
- func Remove(ctx context.Context, cli *client.Client, network string) error
- func Status(ctx context.Context, cli *client.Client, network string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connected ¶
func Connected(ctx context.Context, cli *client.Client, network string, containerName string) (bool, error)
Connected will check if a container is connected to a network.
func Create ¶
Create is an abstraction layer on top of the Docker API call which will create a Docker network using a specified configuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.