utils

package
v0.0.0-...-342e3d9 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 19 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRootCerts

func CreateRootCerts() error

func CreateSSHKey

func CreateSSHKey() (string, string, error)

CreateSSHKey is used to generate rsa private & public keys that are used to set keys for ssh login to a server.

func ExecSSHCmd

func ExecSSHCmd(publicIP string, privateKey string, uname string, command string) (string, error)

func LoadJsonConfig

func LoadJsonConfig() (map[string]string, error)

func LoadStdinToEnvAndKeys

func LoadStdinToEnvAndKeys() error

func LogError

func LogError(err error)

func LogErrorMessage

func LogErrorMessage(message string)

func LogInfo

func LogInfo(message string)

func RandSeq

func RandSeq(n int) string

func SetKey

func SetKey(key string, value string) error

SetKey is used to log key value pairs to stdout/etcd so that dray can pass them down to subsequent images as needed. By default keys are logged to stdout as ----BEGIN PANAMAX DATA----\nkey=value\n----END PANAMAX DATA---- tags. If LOG_TO env var is set to etcd, then keys are logged to etcd. The etcd api is set using ETCD_API env variable.

func WaitForSSH

func WaitForSSH(publicIP string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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