ssh

package
v0.0.0-...-71090b4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropletList

func DropletList(ctx context.Context, client *godo.Client) ([]godo.Droplet, error)

func GetHosts

func GetHosts() ([]string, error)

func GetModule

func GetModule() common.Module

func UpdateDigitalOceanHosts

func UpdateDigitalOceanHosts() error

func UpdateHosts

func UpdateHosts() error

Types

type HostEntry

type HostEntry struct {
	Hostname string `yaml:"Hostname"`
	User     string `yaml:"User"`
}

type HostsFile

type HostsFile struct {
	Hosts map[string]*HostEntry `yaml:"hosts"`
}

type SSH

type SSH struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*SSH) GetDescription

func (m *SSH) GetDescription() string

func (*SSH) GetLastRun

func (m *SSH) GetLastRun() string

func (*SSH) GetName

func (m *SSH) GetName() string

func (*SSH) GetRunInterval

func (m *SSH) GetRunInterval() int64

func (*SSH) GetRunIntervalOnBattery

func (m *SSH) GetRunIntervalOnBattery() int64

func (*SSH) GetSlug

func (m *SSH) GetSlug() string

func (*SSH) GetWaybarOutput

func (m *SSH) GetWaybarOutput() (*common.WaybarOutput, error)

func (*SSH) IsEnabled

func (m *SSH) IsEnabled() bool

func (*SSH) Run

func (m *SSH) Run() error

func (*SSH) RunCommand

func (m *SSH) RunCommand(name string, args []string) error

func (*SSH) SaveLastRun

func (m *SSH) SaveLastRun()

func (*SSH) SuspendOnBattery

func (m *SSH) SuspendOnBattery() bool

func (*SSH) WriteOutput

func (m *SSH) WriteOutput() error

Jump to

Keyboard shortcuts

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