state

package
v0.0.0-...-4391b25 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Containers *containerList
	Networks   *networkList
)

Functions

func NewContainerList

func NewContainerList(ctx context.Context, cli *client.Client) *containerList

func NewNetworkList

func NewNetworkList(ctx context.Context, cli *client.Client) *networkList

Types

type Container

type Container struct {
	Name        string
	IPv4Address string
	IPv6Address string
}

type ContainerEndpoint

type ContainerEndpoint struct {
	ContainerID   string
	ContainerName string
	IPv4Address   string
	IPv6Address   string
}

func (*ContainerEndpoint) String

func (e *ContainerEndpoint) String() string

type Network

type Network struct {
	ID                 string
	Name               string
	ContainerEndpoints map[string]*ContainerEndpoint
}

func (*Network) CompactString

func (n *Network) CompactString() string

func (*Network) String

func (n *Network) String() string

Jump to

Keyboard shortcuts

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