Documentation
¶
Index ¶
- func DropletList(ctx context.Context, client *godo.Client) ([]godo.Droplet, error)
- func GetHosts() ([]string, error)
- func GetModule() common.Module
- func UpdateDigitalOceanHosts() error
- func UpdateHosts() error
- type HostEntry
- type HostsFile
- type SSH
- func (m *SSH) GetDescription() string
- func (m *SSH) GetLastRun() string
- func (m *SSH) GetName() string
- func (m *SSH) GetRunInterval() int64
- func (m *SSH) GetRunIntervalOnBattery() int64
- func (m *SSH) GetSlug() string
- func (m *SSH) GetWaybarOutput() (*common.WaybarOutput, error)
- func (m *SSH) IsEnabled() bool
- func (m *SSH) Run() error
- func (m *SSH) RunCommand(name string, args []string) error
- func (m *SSH) SaveLastRun()
- func (m *SSH) SuspendOnBattery() bool
- func (m *SSH) WriteOutput() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DropletList ¶
func UpdateDigitalOceanHosts ¶
func UpdateDigitalOceanHosts() error
func UpdateHosts ¶
func UpdateHosts() error
Types ¶
type SSH ¶
type SSH struct { Name string Description string Slug string // contains filtered or unexported fields }
func (*SSH) GetDescription ¶
func (*SSH) GetLastRun ¶
func (*SSH) GetRunInterval ¶
func (*SSH) GetRunIntervalOnBattery ¶
func (*SSH) GetWaybarOutput ¶
func (m *SSH) GetWaybarOutput() (*common.WaybarOutput, error)
func (*SSH) SaveLastRun ¶
func (m *SSH) SaveLastRun()
func (*SSH) SuspendOnBattery ¶
func (*SSH) WriteOutput ¶
Click to show internal directories.
Click to hide internal directories.