Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(user string, owner string) (err error)
- func (s *Service) CreateBin(f io.Reader, own string) error
- func (s *Service) Delete(user string) (err error)
- func (s *Service) DeleteBin() error
- func (s *Service) Run(user string) error
- func (s *Service) Stop(user string) error
- func (s *Service) Update() error
- func (s *Service) UpdateBin() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Mutex *sync.Mutex `json:",omitempty"` ID int64 `json:"id,omitempty"` BinsID int64 `json:"binid,omitempty"` Name string `json:"name"` Host string `json:"host,omitempty"` Status string `json:"status,omitempty"` Port int `json:"port,omitempty"` Type string `json:"type,omitempty"` Projects []string `json:"projects,omitempty"` RunSTR string `json:"runstr,omitempty"` Owner string `json:"owner,omitempty"` DBClient *postgres.PGClient `json:",omitempty"` }
Service - service structure, contains the service name, installation host, launch status, web address and mutex for blocking parallel changes in the launch status by different threads
func (*Service) Stop ¶
Stop - service stop function. performs connection to the host via ssh. executes command pkill for service
Click to show internal directories.
Click to hide internal directories.