project

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL