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
Click to show internal directories.
Click to hide internal directories.