network

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Alias string
	Type  NetworkType
	// contains filtered or unexported fields
}

Network is a type that represents a network

func NewNetwork

func NewNetwork(opts ...NetworkOption) *Network

NewNetwork creates a new Network

func (*Network) Build

Build creates a new DockerNetwork

type NetworkOption

type NetworkOption func(*Network)

NetworkOption is a type that represents a network option

func WithAlias

func WithAlias(alias string) NetworkOption

WithAlias is a NetworkOption that sets the alias of the network

Default: network

func WithType

func WithType(typeName NetworkType) NetworkOption

WithType is a NetworkOption that sets the type of the network

Default: bridge

type NetworkType

type NetworkType string

NetworkType is a type that represents the type of network

var (
	// NetworkTypeBridge is a network type that represents a bridge network
	NetworkTypeBridge NetworkType = "bridge"
)

Jump to

Keyboard shortcuts

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