plugin

package
v0.0.0-...-5981ba6 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 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 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

Jump to

Keyboard shortcuts

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