plugin

package
v0.0.0-...-c458bef Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 13 Imported by: 0

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
}

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