Documentation ¶
Index ¶
- func AuthMethodFromPrivateKey(key string) ssh.AuthMethod
- func AuthMethodFromPrivateKeyFile(file string) ssh.AuthMethod
- func FileExists(name string) bool
- func GetNodeProviderID(serverIdentifier string, node *apiv1.Node) string
- func MaxInt(x, y int) int
- func MinInt(x, y int) int
- func NodeFromJSON(s string) (*apiv1.Node, error)
- func NodeGroupIDFromProviderID(serverIdentifier string, providerID string) (string, error)
- func NodeNameFromProviderID(serverIdentifier string, providerID string) (string, error)
- func Pipe(args ...string) (string, error)
- func Scp(connect *types.AutoScalerServerSSH, host, src, dst string) error
- func Shell(args ...string) error
- func Sudo(connect *types.AutoScalerServerSSH, host string, command ...string) (string, error)
- func ToJSON(v interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMethodFromPrivateKey ¶
func AuthMethodFromPrivateKey(key string) ssh.AuthMethod
AuthMethodFromPrivateKey read public key
func AuthMethodFromPrivateKeyFile ¶
func AuthMethodFromPrivateKeyFile(file string) ssh.AuthMethod
AuthMethodFromPrivateKeyFile read public key
func GetNodeProviderID ¶
GetNodeProviderID func
func NodeFromJSON ¶
NodeFromJSON deserialize a string to apiv1.Node
func NodeGroupIDFromProviderID ¶
NodeGroupIDFromProviderID returns group node name from provider
func NodeNameFromProviderID ¶
NodeNameFromProviderID return node name from provider ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.