Documentation ¶
Index ¶
- func Create(ctx context.Context, client client.APIClient, name string, ...) (string, error)
- func CreateNoError(ctx context.Context, t *testing.T, client client.APIClient, name string, ...) string
- func IsRemoved(ctx context.Context, client client.NetworkAPIClient, networkID string) func(log poll.LogT) poll.Result
- func RemoveNoError(ctx context.Context, t *testing.T, apiClient client.APIClient, name string)
- func WithAttachable() func(*types.NetworkCreate)
- func WithDriver(driver string) func(*types.NetworkCreate)
- func WithIPAM(subnet, gateway string) func(*types.NetworkCreate)
- func WithIPAMRange(subnet, iprange, gateway string) func(*types.NetworkCreate)
- func WithIPv6() func(*types.NetworkCreate)
- func WithIPvlan(parent, mode string) func(*types.NetworkCreate)
- func WithInternal() func(*types.NetworkCreate)
- func WithMacvlan(parent string) func(*types.NetworkCreate)
- func WithOption(key, value string) func(*types.NetworkCreate)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, client client.APIClient, name string, ops ...func(*types.NetworkCreate)) (string, error)
Create creates a network with the specified options
func CreateNoError ¶
func CreateNoError(ctx context.Context, t *testing.T, client client.APIClient, name string, ops ...func(*types.NetworkCreate)) string
CreateNoError creates a network with the specified options and verifies there were no errors
func IsRemoved ¶
func IsRemoved(ctx context.Context, client client.NetworkAPIClient, networkID string) func(log poll.LogT) poll.Result
IsRemoved verifies the network is removed.
func RemoveNoError ¶
func WithAttachable ¶
func WithAttachable() func(*types.NetworkCreate)
WithAttachable sets Attachable flag on the create network request
func WithDriver ¶
func WithDriver(driver string) func(*types.NetworkCreate)
WithDriver sets the driver of the network
func WithIPAM ¶
func WithIPAM(subnet, gateway string) func(*types.NetworkCreate)
WithIPAM adds an IPAM with the specified Subnet and Gateway to the network
func WithIPAMRange ¶
func WithIPAMRange(subnet, iprange, gateway string) func(*types.NetworkCreate)
WithIPAM adds an IPAM with the specified Subnet, IPRange and Gateway to the network
func WithIPvlan ¶
func WithIPvlan(parent, mode string) func(*types.NetworkCreate)
WithIPvlan sets the network as ipvlan with the specified parent and mode
func WithInternal ¶
func WithInternal() func(*types.NetworkCreate)
WithInternal enables Internal flag on the create network request
func WithMacvlan ¶
func WithMacvlan(parent string) func(*types.NetworkCreate)
WithMacvlan sets the network as macvlan with the specified parent
func WithOption ¶
func WithOption(key, value string) func(*types.NetworkCreate)
WithOption adds the specified key/value pair to network's options
Types ¶
This section is empty.