Documentation ¶
Index ¶
- Variables
- func InfoHandler(res http.ResponseWriter, req *http.Request, r Renderer)
- func ScaleHandler(res http.ResponseWriter, req *http.Request, r Renderer)
- type Application
- type Applications
- type CfMessage
- type Info
- type Organization
- type Renderer
- type Resource
- type Response
- type ResponseMessage
- type ScaleMessage
- type Space
- type SummaryResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Archflag string Versionflag string )
Var - Two variables set by ldflags at build time.
Functions ¶
func InfoHandler ¶
func InfoHandler(res http.ResponseWriter, req *http.Request, r Renderer)
InfoHandler - Returns info.
func ScaleHandler ¶
func ScaleHandler(res http.ResponseWriter, req *http.Request, r Renderer)
Types ¶
type Application ¶
Application ---
type Info ¶
type Info struct { Name string `json:"name"` Version string `json:"version"` Arch string `json:"arch"` }
Info - Struct to contain application information.
type Renderer ¶
type Renderer interface {
JSON(w http.ResponseWriter, status int, v interface{}) error
}
Renderer -- interface to define the required render object
type Resource ¶
type Resource struct { Metadata map[string]string `json:"metadata"` Entity map[string]interface{} `json:"entity"` }
Resource ---
type ResponseMessage ¶
type ResponseMessage struct {
Status string `json:"status"`
}
type ScaleMessage ¶
type ScaleMessage struct { LoginURL string `json:"loginurl"` Apiurl string `json:"apiurl"` Org string `json:"org"` Space string `json:"space"` Appname string `json:"appname"` ScaleFactor float32 `json:"scalefactor"` }
var (
Smessage ScaleMessage
)
Smessage - variable to hold json deserialized
type SummaryResponse ¶
type SummaryResponse struct {
Instances int `json:"running_instances"`
}
SummaryResponse ---
Click to show internal directories.
Click to hide internal directories.