v1

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1 provides routing and endpoints for the Custom Pod Autoscaler HTTP REST API version 1. Endpoints implemented as handlers, errors returned as valid JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Router          chi.Router
	Config          *config.Config
	Client          resourceclient.Client
	Scaler          scaling.Scaler
	GetMetricer     metricget.GetMetricer
	GetEvaluationer evaluatecalc.GetEvaluationer
}

API is the Custom Pod Autoscaler REST API, exposing endpoints to retrieve metrics/evaluations

func (*API) Routes

func (api *API) Routes()

Routes sets up routing for the API

Jump to

Keyboard shortcuts

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