handlers

package
v0.1442.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 2

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 added in v0.1442.0

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 added in v0.1442.0

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 added in v0.1442.0

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

This is public for testing purpose

func NewUpdateLRPInstanceHandler added in v0.1442.0

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

This is public for testing purpose

func (*UpdateLRPInstanceHandler) ServeHTTP added in v0.1442.0

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