package network

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

Index

Functions

func FormatWrite

func FormatWrite(ctx formatter.Context, networks []network.Summary) 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(ctx context.Context, dockerCli command.Cli, _ 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
v28.0.0-rc.2+incompatible
Published
Feb 17, 2025
Platform
darwin/amd64
Imports
23 packages
Last checked
2 minutes ago

Tools for package owners.