v1

package
v0.0.153 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package v1 (api/v1) is the first versioned implementation of the API

Package v1 (api/v1) is the first versioned implementation of the API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route added in v0.0.80

func Route(r *mux.Router, s Server) *mux.Router

Route applies all the v1 API functions provided by the Server to the Router given. If the router is nil, a new one is instantiated.

Types

type Server

type Server struct {
	Client                   gcs.ConditionalClient
	DefaultBucket            string
	GridPathPrefix           string
	TabPathPrefix            string
	AccessControlAllowOrigin string
	Timeout                  time.Duration
}

Server contains the necessary settings and i/o objects needed to serve this api

func (*Server) GetDashboard added in v0.0.91

GetDashboard returns a given dashboard

func (*Server) GetDashboardGroup added in v0.0.80

GetDashboardGroup returns a given dashboard group

func (Server) GetDashboardGroupHTTP added in v0.0.118

func (s Server) GetDashboardGroupHTTP(w http.ResponseWriter, r *http.Request)

GetDashboardGroupHTTP returns a given dashboard group Response json: GetDashboardGroupResponse

func (Server) GetDashboardHTTP added in v0.0.118

func (s Server) GetDashboardHTTP(w http.ResponseWriter, r *http.Request)

GetDashboardHTTP returns a given dashboard Response json: GetDashboardResponse

func (Server) Grid added in v0.0.92

func (s Server) Grid(ctx context.Context, scope string, dashboardName, tabName, testGroupNanme string) (*statepb.Grid, error)

Grid fetch tab and grid info (columns, rows, ..etc)

func (Server) GroupGrid added in v0.0.92

func (s Server) GroupGrid(ctx context.Context, configPath *gcs.Path, groupName string) (*statepb.Grid, error)

GroupGrid fetch tab group name grid info (columns, rows, ..etc)

func (*Server) ListDashboard added in v0.0.118

ListDashboard returns every dashboard in TestGrid

func (*Server) ListDashboardGroup added in v0.0.118

ListDashboardGroup returns every dashboard group in TestGrid

func (Server) ListDashboardGroupHTTP added in v0.0.118

func (s Server) ListDashboardGroupHTTP(w http.ResponseWriter, r *http.Request)

ListDashboardGroupHTTP returns every dashboard group in TestGrid Response json: ListDashboardGroupResponse

func (*Server) ListDashboardTabs added in v0.0.91

ListDashboardTabs returns a given dashboard tabs

func (Server) ListDashboardTabsHTTP added in v0.0.118

func (s Server) ListDashboardTabsHTTP(w http.ResponseWriter, r *http.Request)

ListDashboardTabsHTTP returns a given dashboard tabs Response json: ListDashboardTabsResponse

func (Server) ListDashboardsHTTP added in v0.0.118

func (s Server) ListDashboardsHTTP(w http.ResponseWriter, r *http.Request)

ListDashboardsHTTP returns every dashboard in TestGrid Response json: ListDashboardResponse

func (*Server) ListHeaders added in v0.0.92

ListHeaders returns dashboard tab headers

func (Server) ListHeadersHTTP added in v0.0.118

func (s Server) ListHeadersHTTP(w http.ResponseWriter, r *http.Request)

ListHeadersHTTP returns dashboard tab headers Response json: ListHeadersResponse

func (*Server) ListRows added in v0.0.92

ListRows returns dashboard tab rows

func (Server) ListRowsHTTP added in v0.0.118

func (s Server) ListRowsHTTP(w http.ResponseWriter, r *http.Request)

ListRowsHTTP returns dashboard tab rows Response json: ListRowsResponse

Jump to

Keyboard shortcuts

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