lib

package
v0.0.0-...-ea43bd0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenPassword

func GenPassword() string

GenPassword generates a random password

func GetClient

func GetClient() (*linodego.Client, error)

GetClient returns a singleton linode client

func LKEInstances

func LKEInstances(c context.Context, linodeClient *linodego.Client) ([]linodego.Instance, error)

LKEInstances lists linodes created by LKE

func PowerOff

func PowerOff(c context.Context, linodeClient *linodego.Client, linodeID int) error

PowerOff shuts down a linode

func PowerOn

func PowerOn(c context.Context, linodeClient *linodego.Client, linodeID int) error

PowerOn boots up a linode

func ResetPassword

func ResetPassword(c context.Context, linodeClient *linodego.Client, linodeID int) (string, error)

ResetPassword resets the root password of a linode

func SetAuthorizedKeys

func SetAuthorizedKeys(ip string, password string, keys []linodego.SSHKey) error

SetAuthorizedKeys sets authorized_keys to a list of ssh keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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