コード例 #1
0
func HandlePOSTAttribute(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var attribute Attribute

	handler := ctp.NewPOSTHandler(ctp.AdminRoleTag)

	handler.Handle(w, r, context, &attribute)
}
コード例 #2
0
ファイル: metrics.go プロジェクト: cloudsecurityalliance/ctpd
func HandlePOSTMetric(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var metric Metric

	handler := ctp.NewPOSTHandler(ctp.AdminRoleTag)

	handler.Handle(w, r, context, &metric)
}
コード例 #3
0
ファイル: assets.go プロジェクト: ehengzh/ctpd
func HandlePOSTAsset(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var asset Asset

	handler := ctp.NewPOSTHandler(ctp.AdminAccess)

	handler.Handle(w, r, context, &asset)
}
コード例 #4
0
func HandlePOSTTrigger(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var trigger Trigger

	handler := ctp.NewPOSTHandler(ctp.AdminRoleTag)

	handler.Handle(w, r, context, &trigger)
}
コード例 #5
0
ファイル: serviceviews.go プロジェクト: ehengzh/ctpd
func HandlePOSTServiceView(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var serviceview ServiceView

	handler := ctp.NewPOSTHandler(ctp.AdminAccess)

	handler.Handle(w, r, context, &serviceview)
}
コード例 #6
0
func HandlePOSTAccount(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var account Account

	handler := ctp.NewPOSTHandler(ctp.AdminRoleTag)

	handler.Handle(w, r, context, &account)
}
コード例 #7
0
func HandlePOSTMeasurement(w http.ResponseWriter, r *http.Request, context *ctp.ApiContext) {
	var measurement Measurement

	handler := ctp.NewPOSTHandler(ctp.AdminRoleTag)

	handler.Handle(w, r, context, &measurement)
}