network

package
v1.2.20 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateOption

type CreateOption = dnetwork.CreateOptions

type InspectOption

type InspectOption struct {
	Scope   string
	Verbose bool
}

type ListOption

type ListOption struct {
	Filters filters.Args
}

type Network

type Network interface {
	List(ctx context.Context, opts ...func(*ListOption)) ([]types.NetworkResource, error)
	Inspect(ctx context.Context, id string, opts ...func(*InspectOption)) (types.NetworkResource, error)
	//
	Create(ctx context.Context, name string, opts ...func(*CreateOption)) (types.NetworkCreateResponse, error)
	Remove(ctx context.Context, id string, opts ...func(opt *RemoveOption)) error
	//
	Prune(ctx context.Context, opts ...func(opt *PruneOption)) (types.NetworksPruneReport, error)
}

func New

func New(client *client.Client) Network

New creates a docker image client

type PruneOption

type PruneOption struct {
	Filters filters.Args
}

type RemoveOption

type RemoveOption struct {
}

Jump to

Keyboard shortcuts

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