Documentation ¶
Index ¶
- Constants
- Variables
- func AddApiKeys(w http.ResponseWriter, r *http.Request)
- func CreateScript(w http.ResponseWriter, r *http.Request)
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func CreateWebsite(w http.ResponseWriter, r *http.Request)
- func DeleteAgent(w http.ResponseWriter, r *http.Request)
- func DeleteScript(w http.ResponseWriter, r *http.Request)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func DeleteWebsite(w http.ResponseWriter, r *http.Request)
- func GetAgent(w http.ResponseWriter, r *http.Request)
- func GetAgentRouter(b *broker.Broker) *mux.Router
- func GetAgentStatus(w http.ResponseWriter, r *http.Request)
- func GetAgents(w http.ResponseWriter, r *http.Request)
- func GetAlerts(w http.ResponseWriter, r *http.Request)
- func GetApiKeys(w http.ResponseWriter, r *http.Request)
- func GetMainRouter(b *broker.Broker) *mux.Router
- func GetScript(w http.ResponseWriter, r *http.Request)
- func GetScripts(w http.ResponseWriter, r *http.Request)
- func GetUser(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func GetWebsite(w http.ResponseWriter, r *http.Request)
- func GetWebsites(w http.ResponseWriter, r *http.Request)
- func Logger(h http.Handler) http.Handler
- func MiddlewareJson(next http.Handler) http.Handler
- func MiddlewareSession(next http.Handler) http.Handler
- func RegisterAgent(h http.ResponseWriter, r *http.Request)
- func RemoveApiKeys(w http.ResponseWriter, r *http.Request)
- func RunScript(w http.ResponseWriter, r *http.Request)
- func SignIn(w http.ResponseWriter, r *http.Request)
- func UpdateSystemInfo(h http.ResponseWriter, r *http.Request)
- func UpdateUser(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const ContextUser contextkey = iota
Variables ¶
View Source
var ( ErrorLoginIncorrect = errors.New("Incorrect login details") ErrorAPI = errors.New("could not generate api") )
View Source
var (
ErrorNotAuthorized = errors.New("Not authorized")
)
Functions ¶
func AddApiKeys ¶
func AddApiKeys(w http.ResponseWriter, r *http.Request)
func CreateScript ¶
func CreateScript(w http.ResponseWriter, r *http.Request)
func CreateUser ¶
func CreateUser(w http.ResponseWriter, r *http.Request)
func CreateWebsite ¶
func CreateWebsite(w http.ResponseWriter, r *http.Request)
func DeleteAgent ¶
func DeleteAgent(w http.ResponseWriter, r *http.Request)
func DeleteScript ¶
func DeleteScript(w http.ResponseWriter, r *http.Request)
func DeleteUser ¶
func DeleteUser(w http.ResponseWriter, r *http.Request)
func DeleteWebsite ¶
func DeleteWebsite(w http.ResponseWriter, r *http.Request)
func GetAgentStatus ¶
func GetAgentStatus(w http.ResponseWriter, r *http.Request)
{offset}/{noentries}
func GetApiKeys ¶
func GetApiKeys(w http.ResponseWriter, r *http.Request)
func GetScripts ¶
func GetScripts(w http.ResponseWriter, r *http.Request)
func GetWebsite ¶
func GetWebsite(w http.ResponseWriter, r *http.Request)
func GetWebsites ¶
func GetWebsites(w http.ResponseWriter, r *http.Request)
func MiddlewareSession ¶
MiddlewareSession checks the session for request and tags username to request context
func RegisterAgent ¶
func RegisterAgent(h http.ResponseWriter, r *http.Request)
func RemoveApiKeys ¶
func RemoveApiKeys(w http.ResponseWriter, r *http.Request)
func UpdateSystemInfo ¶
func UpdateSystemInfo(h http.ResponseWriter, r *http.Request)
func UpdateUser ¶
func UpdateUser(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.