networks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(opts CreateOptions) (string, error)

Create creates a new pod.

func DefaultNetworkDriver

func DefaultNetworkDriver() string

DefaultNetworkDriver returns default network driver name.

func Inspect

func Inspect(id string) (string, error)

Inspect inspects the specified network

func List

func List() ([][]string, error)

List returns list of podman networks

func Prune

func Prune() error

Prune removes all unused network.

func Remove

func Remove(name string) error

Remove removes the network.

Types

type CreateOptions

type CreateOptions struct {
	Name           string
	Labels         map[string]string
	Internal       bool
	Macvlan        string
	Drivers        string
	DriversOptions map[string]string
	IPv6           bool
	Gateway        string
	IPRange        string
	Subnet         string
	DisableDNS     bool
}

CreateOptions implements network create options.

Jump to

Keyboard shortcuts

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