util

package
v0.0.0-...-7146f0c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ACTIVE_HOST_FILE = ".belt/active"

Variables

This section is empty.

Functions

func DefaultSSHPrivateKeys

func DefaultSSHPrivateKeys() []string

func Generate

func Generate(pattern string) []string

Generate takes care of IP generation

func GetActive

func GetActive() (string, error)

func GetActiveByCluster

func GetActiveByCluster(cluster string) (string, error)

func GetActiveCluster

func GetActiveCluster() (string, error)

func GetHomeDir

func GetHomeDir() string

func SetActive

func SetActive(node string) error

func SetActiveCluster

func SetActiveCluster(cluster string) error

Types

type Env

type Env struct{}
var DegitalOcean Env

func (Env) AccessToken

func (e Env) AccessToken() string

func (Env) Image

func (e Env) Image() string

func (Env) Region

func (e Env) Region() string

func (Env) SSHKey

func (e Env) SSHKey() string

func (Env) SSHPort

func (e Env) SSHPort() int

func (Env) SSHUser

func (e Env) SSHUser() string

func (Env) Size

func (e Env) Size() string

Jump to

Keyboard shortcuts

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