Documentation ¶
Index ¶
- type ApplicationSupervisor
- type Lookup
- type PullEvent
- type Reporter
- func (r *Reporter) SetDesiredApplication(release string, applicationConfig map[string]models.Service)
- func (r *Reporter) SetServiceState(serviceName string, state models.SetDeviceServiceStateRequest)
- func (r *Reporter) SetServiceStatus(serviceName string, status models.SetDeviceServiceStatusRequest)
- func (r *Reporter) Stop()
- type ServiceSupervisor
- type Supervisor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationSupervisor ¶
type ApplicationSupervisor struct {
// contains filtered or unexported fields
}
func (*ApplicationSupervisor) Set ¶
func (s *ApplicationSupervisor) Set(bundle models.Bundle, application models.FullBundledApplication)
func (*ApplicationSupervisor) Stop ¶
func (s *ApplicationSupervisor) Stop()
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
func NewReporter ¶
func NewReporter( applicationID string, reportApplicationStatus func(ctx *dpcontext.Context, applicationID, currentRelease string) error, reportServiceStatus func(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStatusRequest) error, reportServiceState func(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStateRequest) error, ) *Reporter
func (*Reporter) SetDesiredApplication ¶
func (*Reporter) SetServiceState ¶
func (r *Reporter) SetServiceState(serviceName string, state models.SetDeviceServiceStateRequest)
func (*Reporter) SetServiceStatus ¶
func (r *Reporter) SetServiceStatus(serviceName string, status models.SetDeviceServiceStatusRequest)
type ServiceSupervisor ¶
type ServiceSupervisor struct {
// contains filtered or unexported fields
}
func NewServiceSupervisor ¶
func (*ServiceSupervisor) Stop ¶
func (s *ServiceSupervisor) Stop()
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
func NewSupervisor ¶
func NewSupervisor( engine engine.Engine, variables variables.Interface, reportApplicationStatus func(ctx *dpcontext.Context, applicationID, currentReleaseID string) error, reportServiceStatus func(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStatusRequest) error, reportServiceState func(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStateRequest) error, validators []validator.Validator, ) *Supervisor
func (*Supervisor) GetContainerID ¶
func (s *Supervisor) GetContainerID(applicationID, service string) (string, bool)
func (*Supervisor) GetImagePullProgress ¶
func (s *Supervisor) GetImagePullProgress(applicationID, service string) (map[string]PullEvent, bool)
func (*Supervisor) Set ¶
func (s *Supervisor) Set(bundle models.Bundle, applications []models.FullBundledApplication)
Click to show internal directories.
Click to hide internal directories.