Documentation
¶
Index ¶
- Constants
- type Agent
- func (agent *Agent) GetUrlPing() (*url.URL, error)
- func (agent *Agent) GetUrlTaskDone() (*url.URL, error)
- func (agent *Agent) GetUrlTaskRequest() (*url.URL, error)
- func (agent *Agent) Run()
- func (agent *Agent) StartHeartBeatMonitor()
- func (agent *Agent) StartTaskRequestMonitor()
- func (agent *Agent) StartTaskWorkMonitor()
- type Config
- type Event
- type RegistryConfig
Constants ¶
View Source
const ResultLineLimit = 30
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
*Config
// contains filtered or unexported fields
}
func CreateAgent ¶
func (*Agent) StartHeartBeatMonitor ¶ added in v0.2.0
func (agent *Agent) StartHeartBeatMonitor()
StartHeartBeatMonitor signal only
func (*Agent) StartTaskRequestMonitor ¶ added in v0.2.0
func (agent *Agent) StartTaskRequestMonitor()
func (*Agent) StartTaskWorkMonitor ¶ added in v0.2.0
func (agent *Agent) StartTaskWorkMonitor()
type Config ¶
type Config struct {
Registry RegistryConfig `json:"registry"`
Period int `json:"period"`
MachineLabel string `json:"machineLabel"`
}
func (*Config) GetRegistry ¶
type RegistryConfig ¶
Click to show internal directories.
Click to hide internal directories.