swarm

package
v0.0.0-...-4d778f5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Swarm

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

Swarm can create a new peer service in the docker swarm.

func New

func New(
	ctx context.Context,
	log *logger.Logger,
	peerServiceName string,
	consulAddr string,
) *Swarm

New is a swarm creator constructor.

func (*Swarm) Create

func (s *Swarm) Create(ctx context.Context) (*peers.Peer, *url.URL, error)

Create implements Creator. creates a new docker service in a swarm cluster.

Jump to

Keyboard shortcuts

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