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
// Whitelist/Blacklist privileges
TaskPrivilege *Privilege
FwPrivilege *Privilege
Separator string
ServiceName string
ServiceTags []string
ServiceIdPrefix 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 service-id-prefix flag, followed by a colon.
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
type Privilege ¶ added in v0.4.0
func NewPrivilege ¶ added in v0.4.0
type RegexList ¶ added in v0.4.0
func NewRegexList ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.