create

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package create provides options for the network create.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SetNetworkCreateOption

type SetNetworkCreateOption func(*network.CreateOptions) error

SetNetworkCreateOption is a function that sets a parameter for the network create.

func WithDriver

func WithDriver(driver string) SetNetworkCreateOption

WithDriver sets the driver for the network create.

Driver is the driver-name used to create the network (e.g. `bridge`, `overlay`)

func WithEnableIPv4

func WithEnableIPv4() SetNetworkCreateOption

WithEnableIPv4 sets the enable IPv4 for the network create.

EnableIPv4 represents whether to enable IPv4.

func WithEnableIPv6

func WithEnableIPv6() SetNetworkCreateOption

WithEnableIPv6 sets the enable IPv6 for the network create.

EnableIPv6 represents whether to enable IPv6.

func WithIPAM

func WithIPAM(setters ...ipam.SetIPAMOption) SetNetworkCreateOption

WithIPAM sets the IPAM for the network create.

IPAM is the network's IP Address Management.

func WithScope

func WithScope(scope string) SetNetworkCreateOption

WithScope sets the scope for the network create.

Scope describes the level at which the network exists (e.g. `swarm` for cluster-wide or `local` for machine level).

Directories

Path Synopsis
package ipam provides options for the network IPAM.
package ipam provides options for the network IPAM.
ipamconfig
package ipamconfig provides options for the network IPAM config.
package ipamconfig provides options for the network IPAM config.

Jump to

Keyboard shortcuts

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