docker: github.com/docker/docker/vendor/github.com/docker/libnetwork/cluster Index | Files

package cluster

import "github.com/docker/docker/vendor/github.com/docker/libnetwork/cluster"

Index

Package Files

provider.go

Constants

const (
    // EventSocketChange control socket changed
    EventSocketChange = iota
    // EventNodeReady cluster node in ready state
    EventNodeReady
    // EventNodeLeave node is leaving the cluster
    EventNodeLeave
    // EventNetworkKeysAvailable network keys correctly configured in the networking layer
    EventNetworkKeysAvailable
)

type ConfigEventType Uses

type ConfigEventType uint8

ConfigEventType type of the event produced by the cluster

type Provider Uses

type Provider interface {
    IsManager() bool
    IsAgent() bool
    GetLocalAddress() string
    GetListenAddress() string
    GetAdvertiseAddress() string
    GetDataPathAddress() string
    GetRemoteAddressList() []string
    ListenClusterEvents() <-chan ConfigEventType
    AttachNetwork(string, string, []string) (*network.NetworkingConfig, error)
    DetachNetwork(string, string) error
    UpdateAttachment(string, string, *network.NetworkingConfig) error
    WaitForDetachment(context.Context, string, string, string, string) error
}

Provider provides clustering config details

Package cluster imports 2 packages (graph). Updated 2018-06-25. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).