configserver

package
v0.0.0-...-7fe2d08 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStatusUnsupportedMediaType = errors.New("content-type is not supported")
	ErrCannotParseContentType     = errors.New("content-type header could not be parsed")
	ErrMalformedRequestPayload    = errors.New("data in body could not be decoded")
	ErrFailedToConstructDecoder   = errors.New("decoder could not be constructed")
	ErrCouldNotDecode             = errors.New("data could not be decoded into config structure")
	ErrInvalidPausedValue         = errors.New("invalid paused value")
)

Functions

This section is empty.

Types

type ConfigValidator

type ConfigValidator func(atc.Config) ([]config.Warning, []string)

type ExtraKeysError

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

func (ExtraKeysError) Error

func (eke ExtraKeysError) Error() string

type SaveConfigResponse

type SaveConfigResponse struct {
	Errors   []string         `json:"errors,omitempty"`
	Warnings []config.Warning `json:"warnings,omitempty"`
}

type Server

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

func NewServer

func NewServer(
	logger lager.Logger,
	teamDBFactory db.TeamDBFactory,
	validator ConfigValidator,
) *Server

func (*Server) GetConfig

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

func (*Server) SaveConfig

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

Jump to

Keyboard shortcuts

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