lib

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Variables

This section is empty.

Functions

func ChooseInstance

func ChooseInstance(instances []*compute.Instance, project string, zone string) (*compute.Instance, error)

func DoSelfUpdate

func DoSelfUpdate() (bool, error)

func GenerateRDPFile

func GenerateRDPFile(filePath, ip, userName string) error

func GetConfigDirName

func GetConfigDirName() string

func GetConfigDirPath

func GetConfigDirPath() (string, error)

func GetConfigFileName

func GetConfigFileName() string

func GetConfigFilePath

func GetConfigFilePath() (string, error)

func PanicIfErrorExist

func PanicIfErrorExist(err error)

func ResetPassword

func ResetPassword(client daisyCompute.Client, instanceName, zone, project, userName string) (string, error)

Types

type Config

type Config struct {
	UserName     string
	Project      string
	Zone         string
	InstanceName string
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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