Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExternalServiceQuery ¶
func NewExternalServiceQuery(externalURL url.URL, authInjector handlers.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 handlers.AuthInjector }
ExternalServiceQuery proxies service queries to external plugin via HTTP
func (ExternalServiceQuery) GetReplicas ¶
func (s ExternalServiceQuery) GetReplicas(serviceName string) (scaling.ServiceQueryResponse, error)
GetReplicas replica count for function
func (ExternalServiceQuery) SetReplicas ¶
func (s ExternalServiceQuery) SetReplicas(serviceName string, count uint64) error
SetReplicas update the replica count
type ScaleServiceRequest ¶
type ScaleServiceRequest struct { ServiceName string `json:"serviceName"` Replicas uint64 `json:"replicas"` }
ScaleServiceRequest request scaling of replica
Click to show internal directories.
Click to hide internal directories.