api

package
v0.0.0-...-ce299e0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GrafanaEnabled      bool
	GrafanaDomain       string
	GrafanaAPIKey       string
	GrafanaDashboardUID string
)
View Source
var (
	LocustMasterSecurityGroups string
	LocustSlaveSecurityGroups  string
)
View Source
var PaginationItems = 10
View Source
var ShuttingDown bool

Functions

func CancelTestDeployment

func CancelTestDeployment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

CancelTestDeployment cancels the test, marks it back as Ready, and cleans up the grid

func CreateGrid

func CreateGrid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func CreateGridTemplate

func CreateGridTemplate(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func CreateTest

func CreateTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DeleteGrid

func DeleteGrid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DeleteGridTemplate

func DeleteGridTemplate(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DeleteTest

func DeleteTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DeleteTestAttachment

func DeleteTestAttachment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DownloadScriptFiles

func DownloadScriptFiles(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func DuplicateTest

func DuplicateTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func EditTest

func EditTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GenerateGrafanaSnapshotHandler

func GenerateGrafanaSnapshotHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GenerateGrafanaSnapshotHandler is used to generate a snapshot

func GetAllGridTemplates

func GetAllGridTemplates(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetGridInstanceTypes

func GetGridInstanceTypes(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetGridPaginateKey

func GetGridPaginateKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetGridProviderTypes

func GetGridProviderTypes(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetGridRegionTypes

func GetGridRegionTypes(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetGridStatus

func GetGridStatus(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetGridStatus gets all grids that have a certain status

func GetGridTemplateById

func GetGridTemplateById(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetTestAttachment

func GetTestAttachment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetTestPaginateKey

func GetTestPaginateKey(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func GetTestStatus

func GetTestStatus(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GetTestStatus returns all the tests with the provided status

func GrafanaConfigs

func GrafanaConfigs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func Grid

func Grids

func GridsPaginate

func GridsPaginate(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func LabelToTest

func LabelToTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func PaginateGridInfo

func PaginateGridInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func PaginateTestInfo

func PaginateTestInfo(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

PaginateTestInfo is to get the first test, last test, and number of tests based on filters.

func PowerTokenAPIAuth

func PowerTokenAPIAuth(handler httprouter.Handle) httprouter.Handle

func RefreshTestStatus

func RefreshTestStatus(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

RefreshTestStatus looks at the current tests that are in a deployed state

func SendStartCmd

func SendStartCmd(message []byte) error

func SendStopCmd

func SendStopCmd(message []byte) error

func SetRouterPaths

func SetRouterPaths(router *httprouter.Router)

func Shutdown

func Shutdown(c <-chan os.Signal)

func StartGrid

func StartGrid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func StartNats

func StartNats(config *viper.Viper)

func StartTest

func StartTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func StopGrid

func StopGrid(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

incomplete

func StopTest

func StopTest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

StopTest calls an ansible job that cleans up the grid and then removes the test from the grids database. Status changes are taken care of in the deployer microservice.

func Test

func TestAttachments

func TestAttachments(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func TestFiles

func TestFiles(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func Tests

func TestsPaginate

func TestsPaginate(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func TokenApiAuth

func TokenApiAuth(handler httprouter.Handle) httprouter.Handle

func UpdateGridTemplate

func UpdateGridTemplate(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

func UploadTestAttachment

func UploadTestAttachment(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Types

type DeploymentLog

type DeploymentLog struct {
	ID         string
	StreamType string
	Output     string
	Running    bool
	Timestamp  int64
	Sequence   uint64
}

Directories

Path Synopsis
grafana

Jump to

Keyboard shortcuts

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