server

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiController

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

ApiController stores metadata for the API

func NewApiController

func NewApiController(s store.ReleaseStore, opts ...ControllerOpt) *ApiController

NewApiController returns a new API controller with a default timeout of 300 seconds

func (ApiController) ApplyChart

func (c ApiController) ApplyChart(w http.ResponseWriter, r *http.Request)

ApplyChart applies a chart to a tiller server

type ControllerOpt

type ControllerOpt func(*ApiController)

ControllerOpt is a func that modifies an ApiController

func WithAuthorizers

func WithAuthorizers(azs ...go_middlewares.Authorizer) ControllerOpt

WithAutorizer sets the authorizer for an ApiController

func WithTimeout

func WithTimeout(timeout int64) ControllerOpt

WithTimeout sets the timeout in seconds on an ApiController

Jump to

Keyboard shortcuts

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