plugin

package
v0.0.0-...-b22cb63 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 13 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExternalServiceQuery

func NewExternalServiceQuery(externalURL url.URL, authInjector middleware.AuthInjector) scaling.ServiceQuery

NewExternalServiceQuery proxies service queries to external plugin via HTTP

Types

type ExternalServiceQuery

type ExternalServiceQuery struct {
	URL          url.URL
	ProxyClient  http.Client
	AuthInjector middleware.AuthInjector

	// IncludeUsage includes usage metrics in the response
	IncludeUsage bool
}

ExternalServiceQuery proxies service queries to external plugin via HTTP

func (ExternalServiceQuery) GetReplicas

func (s ExternalServiceQuery) GetReplicas(serviceName, serviceNamespace string) (scaling.ServiceQueryResponse, error)

GetReplicas replica count for function

func (ExternalServiceQuery) SetReplicas

func (s ExternalServiceQuery) SetReplicas(serviceName, serviceNamespace string, count uint64) error

SetReplicas update the replica count

Jump to

Keyboard shortcuts

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