network

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAssigned = errors.New("alias not assigned for the container")

Functions

This section is empty.

Types

type DockerNetwork

type DockerNetwork struct {
	// contains filtered or unexported fields
}

func NewDockerNetwork

func NewDockerNetwork(ctx context.Context, cli *client.Client, name string) (*DockerNetwork, error)

func (*DockerNetwork) ID

func (dn *DockerNetwork) ID() string

func (*DockerNetwork) Join

func (dn *DockerNetwork) Join(ctx context.Context, containerID string) (alias string, err error)

func (*DockerNetwork) Leave

func (dn *DockerNetwork) Leave(ctx context.Context, containerID string) error

func (*DockerNetwork) Resolve

func (dn *DockerNetwork) Resolve(ctx context.Context, address string) (string, error)

Jump to

Keyboard shortcuts

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