captain

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: AGPL-3.0 Imports: 34 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GossipOpType string = "gossip"
View Source
const GossipQueryOpType string = "gossip/query"
View Source
const PublishOpType string = "publish"

Variables

View Source
var (
	CfgOptionEnableSPNKey = "spn/enable"
)

Functions

func ClientReady

func ClientReady() bool

func EstablishCrane added in v0.3.0

func EstablishCrane(dst *hub.Hub) (*docks.Crane, error)

func EstablishPublicLane added in v0.3.0

func EstablishPublicLane(dst *hub.Hub) (*docks.Crane, error)

func IsExcepted added in v0.3.0

func IsExcepted(ip net.IP) bool

Types

type BootstrapFile

type BootstrapFile struct {
	Main BootstrapFileEntry
}

type BootstrapFileEntry added in v0.3.0

type BootstrapFileEntry struct {
	Hubs []string
}

type GossipMsgType added in v0.3.0

type GossipMsgType uint8
const (
	GossipHubAnnouncementMsg GossipMsgType = 1
	GossipHubStatusMsg       GossipMsgType = 2
)

func (GossipMsgType) String added in v0.3.0

func (msgType GossipMsgType) String() string

type GossipOp added in v0.3.0

type GossipOp struct {
	terminal.OpBase
	// contains filtered or unexported fields
}

func NewGossipOp added in v0.3.0

func NewGossipOp(controller *docks.CraneControllerTerminal) (*GossipOp, *terminal.Error)

func (*GossipOp) Deliver added in v0.3.0

func (op *GossipOp) Deliver(c *container.Container) *terminal.Error

func (*GossipOp) End added in v0.3.0

func (op *GossipOp) End(err *terminal.Error)

func (*GossipOp) Type added in v0.3.0

func (op *GossipOp) Type() string

type GossipQueryOp added in v0.3.0

type GossipQueryOp struct {
	terminal.OpBase
	// contains filtered or unexported fields
}

func NewGossipQueryOp added in v0.3.0

func NewGossipQueryOp(t terminal.OpTerminal) (*GossipQueryOp, *terminal.Error)

func (*GossipQueryOp) Deliver added in v0.3.0

func (op *GossipQueryOp) Deliver(c *container.Container) *terminal.Error

func (*GossipQueryOp) End added in v0.3.0

func (op *GossipQueryOp) End(err *terminal.Error)

func (*GossipQueryOp) Type added in v0.3.0

func (op *GossipQueryOp) Type() string

type PublishOp added in v0.3.0

type PublishOp struct {
	terminal.OpBase
	// contains filtered or unexported fields
}

func NewPublishOp added in v0.3.0

func NewPublishOp(controller *docks.CraneControllerTerminal, identity *cabin.Identity) (*PublishOp, *terminal.Error)

func (*PublishOp) Deliver added in v0.3.0

func (op *PublishOp) Deliver(c *container.Container) *terminal.Error

func (*PublishOp) End added in v0.3.0

func (op *PublishOp) End(tErr *terminal.Error)

func (*PublishOp) Result added in v0.3.0

func (op *PublishOp) Result() <-chan *terminal.Error

func (*PublishOp) Type added in v0.3.0

func (op *PublishOp) Type() string

Jump to

Keyboard shortcuts

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