Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func (*APIServer) SyncGit ¶
func (s *APIServer) SyncGit(w http.ResponseWriter, r *http.Request)
SyncGit starts a goroutine in the background to sync all git mirrors _if there is not one running at time of request_. It writes back a HTTP 200 status header and 'OK' body to inform the request was successful. TODO(hidde): in the future we may want to give users the option to request the status after it has been started. The Flux (daemon) API achieves this by working with jobs whos IDs can be tracked.
Click to show internal directories.
Click to hide internal directories.