herd

package
v0.0.0-...-ca1efde Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2015 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetApiHosts

func GetApiHosts(api, user, pass string) []string

Get the connected nodes from the API from "/api/nodes"

func GetOtherHosts

func GetOtherHosts() (hostnames []string)

Gets the other hostnames in the autoscale group

func JoinCluster

func JoinCluster(ips []string, dryRun bool)

Attempts to join the cluster. Errors are printed and the app is restarted

func RunRabbitmqctl

func RunRabbitmqctl(args []string, dryRun bool) (err error)

Run rabbitmqctl with the specified args. Prints command without execution if `dryRun` is set to True

Types

type Node

type Node struct {
	Name string `json:"name"`
}

A struct for storing the `name` parameter of the API

func (Node) Hostname

func (n Node) Hostname() string

Get the node's hostname portion of the name.

Jump to

Keyboard shortcuts

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