Documentation
¶
Index ¶
- func DeleteJob(c *gin.Context)
- func DeleteService(c *gin.Context)
- func GetJob(c *gin.Context)
- func GetJobs(c *gin.Context)
- func GetService(c *gin.Context)
- func GetServices(c *gin.Context)
- func Health(c *gin.Context)
- func Home(c *gin.Context)
- func Metrics() http.Handler
- func Ready(c *gin.Context)
- type DeployRequest
- type DestroyRequest
- type Message
- type ServicePayload
- type Workers
- func (w *Workers) DeployRequest(c *gin.Context, rawBody []byte)
- func (w *Workers) DestroyRequest(c *gin.Context, rawBody []byte)
- func (w *Workers) Finalize(notifyChannel <-chan Message)
- func (w *Workers) HandleWorkload() <-chan Message
- func (w *Workers) ProcessRequest(notifyChannel chan<- Message, wg *sync.WaitGroup)
- func (w *Workers) Watch()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeployRequest ¶ added in v0.1.6
type DeployRequest struct { JobID string `json:"jobId"` ServiceID string `json:"serviceId"` Template string `json:"template"` Configs map[string]string `json:"configs"` DeleteAfter string `json:"deleteAfter"` Type string `json:"type"` CorrelationID string `json:"correlationID"` }
DeployRequest type
func (DeployRequest) GetCorrelation ¶ added in v0.1.6
func (d DeployRequest) GetCorrelation() string
GetCorrelation gets the correlation id
func (DeployRequest) GetJob ¶ added in v0.1.6
func (d DeployRequest) GetJob() string
GetJob gets the job id
func (DeployRequest) GetService ¶ added in v0.1.6
func (d DeployRequest) GetService() string
GetService gets the service id
func (DeployRequest) GetType ¶ added in v0.1.6
func (d DeployRequest) GetType() string
GetType gets the job type
type DestroyRequest ¶ added in v0.1.6
type DestroyRequest struct { JobID string `json:"jobId"` ServiceID string `json:"serviceId"` Template string `json:"template"` Configs map[string]string `json:"configs"` DeleteAfter string `json:"deleteAfter"` Type string `json:"type"` CorrelationID string `json:"correlationID"` }
DestroyRequest type
func (DestroyRequest) GetCorrelation ¶ added in v0.1.6
func (d DestroyRequest) GetCorrelation() string
GetCorrelation gets the correlation id
func (DestroyRequest) GetJob ¶ added in v0.1.6
func (d DestroyRequest) GetJob() string
GetJob gets the job id
func (DestroyRequest) GetService ¶ added in v0.1.6
func (d DestroyRequest) GetService() string
GetService gets the service id
func (DestroyRequest) GetType ¶ added in v0.1.6
func (d DestroyRequest) GetType() string
GetType gets the job type
type Message ¶ added in v0.1.2
type Message interface { GetCorrelation() string GetService() string GetJob() string GetType() string }
Message interface
type ServicePayload ¶ added in v0.1.1
type ServicePayload struct { ID string `json:"id"` Template string `json:"template"` Configs map[string]string `json:"configs"` DeleteAfter string `json:"deleteAfter"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
ServicePayload type
type Workers ¶ added in v0.1.2
type Workers struct {
// contains filtered or unexported fields
}
Workers type
func (*Workers) DeployRequest ¶ added in v0.1.6
DeployRequest sends a deploy request to workers
func (*Workers) DestroyRequest ¶ added in v0.1.6
DestroyRequest sends a destroy request to workers
func (*Workers) HandleWorkload ¶ added in v0.1.2
HandleWorkload handles all incoming requests
func (*Workers) ProcessRequest ¶ added in v0.1.6
ProcessRequest process incoming request
Click to show internal directories.
Click to hide internal directories.