Documentation ¶
Index ¶
- Constants
- Variables
- func ClientBootstrapping() bool
- func ClientReady() bool
- func EstablishCrane(dst *hub.Hub) (*docks.Crane, error)
- func EstablishPublicLane(dst *hub.Hub) (*docks.Crane, error)
- func IsExcepted(ip net.IP) bool
- type BootstrapFile
- type BootstrapFileEntry
- type GossipMsgType
- type GossipOp
- type GossipQueryOp
- type PublishOp
- type SPNStatus
- type SPNStatusName
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 ClientBootstrapping ¶ added in v0.3.8
func ClientBootstrapping() bool
ClientBootstrapping signifies if the SPN is currently bootstrapping and requires normal connectivity for download assets.
func ClientReady ¶
func ClientReady() bool
ClientReady signifies if the SPN client is fully ready to handle connections.
func EstablishPublicLane ¶ added in v0.3.0
func IsExcepted ¶ added in v0.3.0
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
func NewGossipOp ¶ added in v0.3.0
func NewGossipOp(controller *docks.CraneControllerTerminal) (*GossipOp, *terminal.Error)
type GossipQueryOp ¶ added in v0.3.0
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
func NewPublishOp ¶ added in v0.3.0
type SPNStatusName ¶ added in v0.3.7
type SPNStatusName string
const ( StatusFailed SPNStatusName = "failed" StatusDisabled SPNStatusName = "disabled" StatusConnecting SPNStatusName = "connecting" StatusConnected SPNStatusName = "connected" )
Click to show internal directories.
Click to hide internal directories.