Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RegionNotFound = errors.New("region not found") DaemonNotFound = errors.New("daemon not found") )
Functions ¶
This section is empty.
Types ¶
type Daemon ¶
type Daemon struct { Id string `json:"id,omitempty"` Region string `json:"region,omitempty"` Tags []string `json:"tags,omitempty"` Workers int `json:"workers,omitempty"` MinFil int `json:"minfil,omitempty"` MinCap int `json:"mincap,omitempty"` DockerRepo string `json:"dockerrepo,omitempty"` DockerTag string `json:"dockerrtag,omitempty"` Wallet *Wallet `json:"wallet,omitempty"` }
type KubernetesSpawner ¶
type KubernetesSpawner struct {
// contains filtered or unexported fields
}
func NewKubernetes ¶
func NewKubernetes() *KubernetesSpawner
func (*KubernetesSpawner) Get ¶
func (s *KubernetesSpawner) Get(regionid string, daemonid string) (daemon *Daemon, err error)
func (*KubernetesSpawner) List ¶
func (s *KubernetesSpawner) List(regionid string) (daemons []*Daemon, err error)
func (*KubernetesSpawner) Regions ¶
func (s *KubernetesSpawner) Regions() []string
func (*KubernetesSpawner) Spawn ¶
func (s *KubernetesSpawner) Spawn(d *Daemon) error
type LocalSpawner ¶
Start dealbot daemons locally
func NewLocal ¶
func NewLocal(endpoint string) (s *LocalSpawner)
func (*LocalSpawner) Get ¶
func (s *LocalSpawner) Get(regionid string, daemonid string) (*Daemon, error)
func (*LocalSpawner) Regions ¶
func (s *LocalSpawner) Regions() []string
func (*LocalSpawner) Spawn ¶
func (s *LocalSpawner) Spawn(d *Daemon) error
Click to show internal directories.
Click to hide internal directories.