v1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(api API) *mux.Router

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewAPI

NewAPI initializes the API struct

func (API) CreateDeployment

func (api API) CreateDeployment(w http.ResponseWriter, r *http.Request)

CreateDeployment creates a deployment in an environment using details in the request

func (API) CreateEnvironment

func (api API) CreateEnvironment(w http.ResponseWriter, r *http.Request)

CreateEnvironment creates a new environment using details set in the request

func (API) DeleteEnvironment

func (api API) DeleteEnvironment(w http.ResponseWriter, r *http.Request)

DeleteEnvironment deletes an environment by name

func (API) GetDeployment

func (api API) GetDeployment(w http.ResponseWriter, r *http.Request)

GetDeployment gets the deployment in an environment using the environment name and deployment ID

func (API) GetEnvironment

func (api API) GetEnvironment(w http.ResponseWriter, r *http.Request)

GetEnvironment gets an enironent by name

func (API) ListDeployments

func (api API) ListDeployments(w http.ResponseWriter, r *http.Request)

ListDeployments lists all deployments in an environment

func (API) ListEnvironments

func (api API) ListEnvironments(w http.ResponseWriter, r *http.Request)

ListEnvironments lists all environments across all clusters after applying filters, if any

func (API) Ping

func (api API) Ping(w http.ResponseWriter, r *http.Request)

Ping is used to perform server health checks

Jump to

Keyboard shortcuts

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