Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterApi ¶
func RegisterApi(router *chi.Mux, statusUpdater *service.StatusUpdater, dataDir string)
func RegisterFileServer ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves 3 endpoints: - /login serves the credentials login form - /api/v1/credentials called by the agent ui to pass the credentials entered by the user - /api/v1/status return the status of the agent.
func (*Server) Start ¶
func (s *Server) Start(statusUpdater *service.StatusUpdater)
type StatusReply ¶
func (StatusReply) Render ¶
func (s StatusReply) Render(w http.ResponseWriter, r *http.Request) error
type VersionReply ¶
type VersionReply struct {
Version string `json:"version"`
}
func (VersionReply) Render ¶
func (v VersionReply) Render(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.