Documentation
¶
Index ¶
- type Service
- func (s *Service) AgentAdd(uid string, info *types.AgentBasic) (*types.Agent, error)
- func (s *Service) AgentDelete(aid string) error
- func (s *Service) AgentOffline(aid string)
- func (s *Service) AgentOnline(aid, ip string)
- func (s *Service) AgentSecret(aid string) (string, error)
- func (s *Service) AgentSecretReset(aid string) (string, error)
- func (s *Service) AuthValidator(key string, c echo.Context) (bool, error)
- func (s *Service) FindAgent(aid string) (*types.Agent, error)
- func (s *Service) FindUserAgentByName(uid, name string) (id string, ok bool, err error)
- func (s *Service) IsAgentOnline(aid string) bool
- func (s *Service) JobCancel(id string)
- func (s *Service) JobExpire(id string)
- func (s *Service) JobFail(id string, result string)
- func (s *Service) JobPop(aid string) *types.JobBasic
- func (s *Service) JobPush(input *types.JobInput) error
- func (s *Service) JobSucceed(id string, result string)
- func (s *Service) UserAgents(uid string) ([]*types.Agent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AgentDelete ¶
func (*Service) AgentOffline ¶
call after the watcher found agent status switch to offline
func (*Service) AgentOnline ¶
call after every agent job pull
func (*Service) AuthValidator ¶
func (*Service) FindUserAgentByName ¶
func (*Service) IsAgentOnline ¶
func (*Service) JobSucceed ¶
Click to show internal directories.
Click to hide internal directories.