feat: add auto update
This commit is contained in:
@ -52,6 +52,14 @@ func NewRouter(h *Handler) http.Handler {
|
||||
r.Post("/agents/{agentID}/containers/{containerID}/action", h.ContainerAction)
|
||||
r.Get("/agents/{agentID}/containers/{containerID}/logs", h.LogsWS)
|
||||
r.Get("/events", h.EventsWS)
|
||||
r.Get("/agents/{agentID}/fs/list", h.FsList)
|
||||
r.Get("/agents/{agentID}/fs/read", h.FsRead)
|
||||
r.Post("/agents/{agentID}/fs/write", h.FsWrite)
|
||||
r.Post("/agents/{agentID}/fs/mkdir", h.FsMkdir)
|
||||
r.Post("/agents/{agentID}/compose", h.ComposeAction)
|
||||
r.Get("/agents/{agentID}/containers/{containerID}/auto-update", h.GetAutoUpdatePolicy)
|
||||
r.Put("/agents/{agentID}/containers/{containerID}/auto-update", h.PutAutoUpdatePolicy)
|
||||
r.Post("/agents/{agentID}/containers/{containerID}/update-now", h.UpdateNow)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user