Documentation ¶
Index ¶
- Constants
- Variables
- type Host
- type Settings
- type StaticManager
- func (staticMgr *StaticManager) CanSpawn() (bool, error)
- func (staticMgr *StaticManager) Configure(settings *evergreen.Settings) error
- func (staticMgr *StaticManager) GetDNSName(host *host.Host) (string, error)
- func (staticMgr *StaticManager) GetInstanceStatus(host *host.Host) (cloud.CloudStatus, error)
- func (staticMgr *StaticManager) GetSSHOptions(h *host.Host, keyPath string) (opts []string, err error)
- func (_ *StaticManager) GetSettings() cloud.ProviderSettings
- func (staticMgr *StaticManager) IsSSHReachable(host *host.Host, keyPath string) (bool, error)
- func (staticMgr *StaticManager) IsUp(host *host.Host) (bool, error)
- func (staticMgr *StaticManager) OnUp(host *host.Host) error
- func (staticMgr *StaticManager) SpawnInstance(distro *distro.Distro, hostOpts cloud.HostOptions) (*host.Host, error)
- func (staticMgr *StaticManager) TerminateInstance(host *host.Host) error
- func (staticMgr *StaticManager) TimeTilNextPayment(host *host.Host) time.Duration
Constants ¶
View Source
const ProviderName = "static"
Variables ¶
View Source
var ( // bson fields for the Settings struct HostsKey = bsonutil.MustHaveTag(Settings{}, "Hosts") // bson fields for the Host struct NameKey = bsonutil.MustHaveTag(Host{}, "Name") )
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct {
Hosts []Host `mapstructure:"hosts" json:"hosts" bson:"hosts"`
}
type StaticManager ¶
type StaticManager struct{}
func (*StaticManager) CanSpawn ¶
func (staticMgr *StaticManager) CanSpawn() (bool, error)
func (*StaticManager) Configure ¶
func (staticMgr *StaticManager) Configure(settings *evergreen.Settings) error
func (*StaticManager) GetDNSName ¶
func (staticMgr *StaticManager) GetDNSName(host *host.Host) (string, error)
get instance DNS
func (*StaticManager) GetInstanceStatus ¶
func (staticMgr *StaticManager) GetInstanceStatus(host *host.Host) (cloud.CloudStatus, error)
get the status of an instance
func (*StaticManager) GetSSHOptions ¶
func (*StaticManager) GetSettings ¶
func (_ *StaticManager) GetSettings() cloud.ProviderSettings
func (*StaticManager) IsSSHReachable ¶
func (*StaticManager) SpawnInstance ¶
func (staticMgr *StaticManager) SpawnInstance(distro *distro.Distro, hostOpts cloud.HostOptions) (*host.Host, error)
func (*StaticManager) TerminateInstance ¶
func (staticMgr *StaticManager) TerminateInstance(host *host.Host) error
terminate an instance
func (*StaticManager) TimeTilNextPayment ¶
func (staticMgr *StaticManager) TimeTilNextPayment(host *host.Host) time.Duration
determine how long until a payment is due for the host. static hosts always return 0 for this number
Click to show internal directories.
Click to hide internal directories.