handlers

package
v0.0.0-...-efd19db Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	localCellClient auctioncellrep.AuctionCellClient,
	localMetricCollector MetricCollector,
	executorClient executor.Client,
	evacuatable evacuation_context.Evacuatable,
	requestMetrics helpers.RequestMetrics,
	logger lager.Logger,
	secure bool,
) rata.Handlers

func NewLegacy

func NewLegacy(
	localCellClient auctioncellrep.AuctionCellClient,
	localMetricCollector MetricCollector,
	executorClient executor.Client,
	evacuatable evacuation_context.Evacuatable,
	requestMetrics helpers.RequestMetrics,
	logger lager.Logger,
) rata.Handlers

this isn't being used in the Rep anymore. It is used in tests that run a fake cell. Without this function those tests will have to replicate the code below. Those places are auctioneer fake_cell_test.go and rep's handlers_suite_test.go

Types

type MetricCollector

type MetricCollector interface {
	Metrics(logger lager.Logger) (*rep.ContainerMetricsCollection, error)
}

type StopLRPInstanceHandler

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

This is public for testing purpose

func NewStopLRPInstanceHandler

func NewStopLRPInstanceHandler(client executor.Client, metrics helpers.RequestMetrics) *StopLRPInstanceHandler

This is public for testing purpose

func (*StopLRPInstanceHandler) ServeHTTP

func (h *StopLRPInstanceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, logger lager.Logger)

type UpdateLRPInstanceHandler

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

This is public for testing purpose

func NewUpdateLRPInstanceHandler

func NewUpdateLRPInstanceHandler(client executor.Client, metrics helpers.RequestMetrics) *UpdateLRPInstanceHandler

This is public for testing purpose

func (*UpdateLRPInstanceHandler) ServeHTTP

func (h *UpdateLRPInstanceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request, logger lager.Logger)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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