Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotRunning = errors.New("not running")
ErrNotRunning is the error when service is not running
View Source
var (
ErrShutdownTimerExpired = errors.New("shutdown timer expired")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.7.3
type Client interface {
Submit(context.Context, *SubmitRequest) error
}
Handler is the interface that wraps HandleManifest method
type Service ¶
type Service interface { StatusClient Client Done() <-chan struct{} }
Service is the interface that includes StatusClient and Handler interfaces. It also wraps Done method
type Status ¶ added in v0.6.0
type Status struct {
Deployments uint32 `json:"deployments"`
}
Status is the data structure
type StatusClient ¶ added in v0.3.4
StatusClient is the interface which includes status of service
type SubmitRequest ¶ added in v0.7.3
type SubmitRequest struct { Deployment dtypes.DeploymentID `json:"deployment"` Manifest manifest.Manifest `json:"manifest"` }
Click to show internal directories.
Click to hide internal directories.