rest

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes registers runner-related REST handlers to a router

Types

type HashRequest added in v0.21.0

type HashRequest struct {
	ServiceHash hash.Hash `json:"serviceHash"`
	Env         []string  `json:"env"`
	Address     string    `json:"address"`
}

HashRequest is the request of the hash endpoint.

type HashResponse added in v0.21.0

type HashResponse struct {
	RunnerHash   hash.Hash `json:"runnerHash"`
	InstanceHash hash.Hash `json:"instanceHash"`
	EnvHash      hash.Hash `json:"envHash"`
}

HashResponse is the response of the hash endpoint.

Jump to

Keyboard shortcuts

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