mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
21 lines
430 B
Go
21 lines
430 B
Go
/*
|
|
Interface between the Node Pool Manager and the Control Plane
|
|
*/
|
|
|
|
package controlplane
|
|
|
|
const CapacityPerRunner = 4096
|
|
|
|
type Runner struct {
|
|
Id string
|
|
Address string
|
|
// Other: certs etc here as managed and installed by CP
|
|
Capacity int64
|
|
}
|
|
|
|
type ControlPlane interface {
|
|
GetLBGRunners(lgbId string) ([]*Runner, error)
|
|
ProvisionRunners(lgbId string, n int) (int, error)
|
|
RemoveRunner(lbgId string, id string) error
|
|
}
|