package network

import "github.com/docker/cli/cli/command/network"

Index

Functions

func FormatWrite

func FormatWrite(ctx formatter.Context, networks []types.NetworkResource) error

FormatWrite writes the context

func NewFormat

func NewFormat(source string, quiet bool) formatter.Format

NewFormat returns a Format for rendering using a network Context

func NewNetworkCommand

func NewNetworkCommand(dockerCli command.Cli) *cobra.Command

NewNetworkCommand returns a cobra command for `network` subcommands

func NewPruneCommand

func NewPruneCommand(dockerCli command.Cli) *cobra.Command

NewPruneCommand returns a new cobra prune command for networks

func RunPrune

func RunPrune(dockerCli command.Cli, all bool, filter opts.FilterOpt) (uint64, string, error)

RunPrune calls the Network Prune API This returns the amount of space reclaimed and a detailed output string

Source Files

cmd.go connect.go create.go disconnect.go formatter.go inspect.go list.go prune.go remove.go

Version
v23.0.1+incompatible
Published
Feb 9, 2023
Platform
js/wasm
Imports
19 packages
Last checked
3 hours ago

Tools for package owners.