Documentation
¶
Overview ¶
Package deployment provides functionality for planning and running deployment jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbortedError ¶
AbortedError is an error implementation that includes the ids of the aborted evaluation and message correlation.
func (*AbortedError) Error ¶
func (e *AbortedError) Error() string
type ClientResponseError ¶
ClientResponseError is an error implementation that includes the body and status code of the response.
func (*ClientResponseError) Error ¶
func (e *ClientResponseError) Error() string
type Deployment ¶
type Deployment struct {
// contains filtered or unexported fields
}
Deployment represents a deployment.
func New ¶
func New(cfg *config.Configuration, deploymentsClient s3.Client, nomadClient *nomad.Client) *Deployment
New returns a new deployment.
func (*Deployment) Handler ¶
Handler handles deployment messages that are delegated by the engine. TODO This function will be removed once the new queue has been implemented
func (*Deployment) NewHandler ¶ added in v1.16.0
func (d *Deployment) NewHandler(ctx context.Context, cfg config.Configuration, msg *message.MessageSQS) error
NewHandler change this to our way not using S3
type EvaluationAbortedError ¶
type EvaluationAbortedError struct {
ID string
}
EvaluationAbortedError is an error implementation that includes the id of the evaluation.
func (*EvaluationAbortedError) Error ¶
func (e *EvaluationAbortedError) Error() string
type EvaluationError ¶
type EvaluationError struct {
ID string
}
EvaluationError is an error implementation that includes the evaluation id of the allocations.
func (*EvaluationError) Error ¶
func (e *EvaluationError) Error() string
type TimeoutError ¶
type TimeoutError struct {
Action string
}
TimeoutError is an error implementation that includes the action that timed out.
func (*TimeoutError) Error ¶
func (e *TimeoutError) Error() string