controllers

package
v0.0.0-...-55a49cc Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkCreate

func BenchmarkCreate(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

BenchmarkCreate creates a new benchmark metric You can request this method with the following curl request: curl -k -X POST -d @result.json http://localhost:8000/1.0/benchmarks/{library}

func BenchmarkDates

func BenchmarkDates(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

BenchmarkDates returns the set of dates that have benchmark data. You can request the data series for a benchmark using: curl -k -X GET http://localhost:8000/1.0/benchmarks/{library}/dates

func BenchmarkSummary

func BenchmarkSummary(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

BenchmarkSummary returns all the benchmark libs along with the set of available tests. You can request this information using: curl -k -X GET http://localhost:8000/1.0/benchmarks

func Benchmarks

func Benchmarks(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

Benchmarks returns either the set of benchmark test names, or data series for a particular benchmark. You can request all the benchmark test names for a library using: curl -k -X GET http://localhost:8000/1.0/benchmarks/{library}

You can request the data series for a benchmark using: curl -k -X GET http://localhost:8000/1.0/benchmarks/{library}?benchmark={benchmark_name}

func Docs

func Docs(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

Docs returns a map of version names to array of tutorial names.

func DocsPage

func DocsPage(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

DocsPage returns the specified markdown file

func LibsCreate

func LibsCreate(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

LibsCreate creates a new library You can request this method with the following curl request: curl -k -X POST -d '{"name":"math", "repo":"https://github.com/gazebosim/gz-math", "description":"Math description","password":"secret"}' http://localhost:8000/1.0/libs

func LibsList

func LibsList(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

LibsList returns the list of models from a team/user. The returned value will be of type "fuel.Models" You can request this method with the following curl request:

curl -k -X GET --url https://localhost:4430/1.0/models

or curl -k -X GET --url https://localhost:4430/1.0/models.proto or curl -k -X GET --url https://localhost:4430/1.0/models.json or curl -k -X GET --url https://localhost:4430/1.0/{owner}/models with all the above format variants.

func Tutorials

func Tutorials(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

Tutorials returns a map of version names to array of tutorial names.

func VersionCreate

func VersionCreate(tx *gorm.DB, w http.ResponseWriter, r *http.Request) (interface{}, *ign.ErrMsg)

VersionCreate creates a new version curl -k -X POST -d '{"libName":"common", "version":"1.2.4", "releaseDate":"2017-11-14T12:02:54-07:00","password":"secret"}' http://localhost:8000/1.0/versions

Types

This section is empty.

Jump to

Keyboard shortcuts

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