Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheEntry ¶ added in v0.3.0
type CacheEntry struct {
// contains filtered or unexported fields
}
type Mesos ¶
type Mesos struct { Registry registry.Registry Agents map[string]string Lock sync.Mutex Leader *proto.MasterInfo Masters []*proto.MasterInfo IpOrder []string // contains filtered or unexported fields }
func (*Mesos) LoadCache ¶ added in v0.3.0
Query the consul agent on the Mesos Master to initialize the cache.
All services created by mesos-consul are prefixed with `mesos-consul:`
func (*Mesos) OnMasterChanged ¶ added in v0.3.0
func (m *Mesos) OnMasterChanged(leader *proto.MasterInfo)
func (*Mesos) RegisterHosts ¶
func (*Mesos) UpdatedMasters ¶ added in v0.3.0
func (m *Mesos) UpdatedMasters(masters []*proto.MasterInfo)
type MesosHost ¶
type MesosHost struct { Ip string Host string Port int PortString string IsLeader bool IsRegistered bool }
func MasterInfoToMesosHost ¶ added in v0.3.0
func MasterInfoToMesosHost(mi *proto.MasterInfo) *MesosHost
func ProtoBufToMesosHost ¶ added in v0.3.0
func ProtoBufToMesosHost(mi *proto.MasterInfo) *MesosHost
Click to show internal directories.
Click to hide internal directories.