Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CREATE_MSP_PROJECT = apis.ApiSpec{ Path: "/api/msp/tenant/project", BackendPath: "/api/msp/tenant/project", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "POST", CheckLogin: true, CheckToken: true, Doc: "Create MSP project", }
View Source
var MSP_METRIC_PROJECT_OVERVIEW = apis.ApiSpec{ Path: "/api/msp/metrics/tenant/project/overview", BackendPath: "/api/msp/metrics/tenant/project/overview", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "POST", CheckLogin: true, CheckToken: true, Custom: attachMetricProjectParams, IsOpenAPI: true, Doc: "GET MSP project overview for dashboard", }
View Source
var MSP_PROJECT_DELETE = apis.ApiSpec{ Path: "/api/msp/tenant/project", BackendPath: "/api/msp/tenant/project", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "DELETE", CheckLogin: true, CheckToken: true, Doc: "DELETE MSP project", }
View Source
var MSP_PROJECT_GET = apis.ApiSpec{ Path: "/api/msp/tenant/project", BackendPath: "/api/msp/tenant/project", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, Doc: "GET MSP project", }
View Source
var MSP_PROJECT_LIST = apis.ApiSpec{ Path: "/api/msp/tenant/projects", BackendPath: "/api/msp/tenant/projects", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, Custom: attachProjectParams, IsOpenAPI: true, Doc: "GET MSP projects", }
View Source
var MSP_PROJECT_OVERVIEW = apis.ApiSpec{ Path: "/api/msp/tenant/project/overview", BackendPath: "/api/msp/tenant/project/overview", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, Custom: attachProjectParams, IsOpenAPI: true, Doc: "GET MSP project overview for dashboard", }
View Source
var UPDATE_MSP_PROJECT = apis.ApiSpec{ Path: "/api/msp/tenant/project", BackendPath: "/api/msp/tenant/project", Host: "msp.marathon.l4lb.thisdcos.directory:8080", Scheme: "http", Method: "PUT", CheckLogin: true, CheckToken: true, Doc: "Update MSP projects", }
Functions ¶
func Err ¶
func Err(w http.ResponseWriter, err *apistructs.ErrorResponse, httpCode int)
func ErrFromError ¶
func ErrFromError(w http.ResponseWriter, error error)
func Success ¶
func Success(w http.ResponseWriter, data interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.