endpoints

package
v0.0.0-...-ed56857 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ASGSupervisor *domain.MultiSupervisor
)

Functions

func AddMetricsHandler

func AddMetricsHandler(rw http.ResponseWriter, r *http.Request)

func AddNodeHandler

func AddNodeHandler(rw http.ResponseWriter, r *http.Request)

func BuildRoutes

func BuildRoutes() []router.Routes

func HealthzHandler

func HealthzHandler(rw http.ResponseWriter, r *http.Request)

func ReadASGHandler

func ReadASGHandler(rw http.ResponseWriter, r *http.Request)

func ReadNodesHandler

func ReadNodesHandler(rw http.ResponseWriter, r *http.Request)

func RegisterRoutes

func RegisterRoutes(r *mux.Router, cfg config.Config)

func RemoveASGHandler

func RemoveASGHandler(rw http.ResponseWriter, r *http.Request)

RemoveASGHandler API handler

func RemoveNodeHandler

func RemoveNodeHandler(rw http.ResponseWriter, r *http.Request)

func Router

func Router(cfg config.Config) http.Handler

func SetupHandler

func SetupHandler(rw http.ResponseWriter, r *http.Request)

SetupHandler API handler

func UpdatePolicyHandler

func UpdatePolicyHandler(rw http.ResponseWriter, r *http.Request)

Types

type AddMetricsRequest

type AddMetricsRequest struct {
	ID      string
	NodeID  string
	Metrics []Metric
}

type AddNodeRequest

type AddNodeRequest struct {
	Node
	ASGID string
}

SetupASGRequest type

type AddNodeResponse

type AddNodeResponse struct{}

type HealthPolicy

type HealthPolicy struct {
	ID                string
	Min               int
	Max               int
	Desired           int
	HealthyThreshold  float64
	CheckInterval     int
	Provider          Provider
	ConsecutiveChecks int
}

HealthPolicy type

type Metric

type Metric struct {
	Value float64
	Time  time.Time
}

type NetworkInterface

type NetworkInterface struct {
	ID string
	IP string
}

NetworkInterface type

type Node

type Node struct {
	ID           string
	Provider     Provider
	PublicIFace  NetworkInterface
	PrivateIFace NetworkInterface
}

Node type

type Provider

type Provider struct {
	ID     string
	Region string
	Size   string
	APIKey string
	Image  string
	SSHKey string
}

Provider type

type RemoveASGRequest

type RemoveASGRequest struct {
	ID string
}

RemoveASGRequest type

type RemoveASGResponse

type RemoveASGResponse struct{}

type SetupASGRequest

type SetupASGRequest struct {
	ID string

	Nodes        []Node
	HealthPolicy HealthPolicy
}

SetupASGRequest type

type SetupASGResponse

type SetupASGResponse struct{}

Jump to

Keyboard shortcuts

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