k3tcd

package
v0.0.0-...-2e427c5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanUp

func CleanUp(ctr Cluster) error

CleanUp removes the temporary directory

Types

type Cluster

type Cluster map[string]*Node

Cluster is a map of nodes indexed by their IP

func MakeCluster

func MakeCluster(cmd *cobra.Command) (Cluster, error)

MakeCluster parses flags and creates initial Node structs

type Node

type Node struct {
	IP            string
	User          string
	Pass          string
	Name          string
	SSHKey        string
	SSHPort       string
	DataDir       string
	ConfigDir     string
	DataStore     string
	EtcdEndpoints string
	TempDir       string
	CertsAndConf  map[string]string
	SSHClient     *ssh.Client
	SFTPClient    *sftp.Client
}

Node is a cluster member

Jump to

Keyboard shortcuts

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