Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Accepted ¶
func Accepted(w http.ResponseWriter)
func BadRequest ¶
func BadRequest(w http.ResponseWriter, error string)
func InternalError ¶
func InternalError(w http.ResponseWriter)
func JSON ¶
func JSON(w http.ResponseWriter, data interface{}) error
func NotModified ¶
func NotModified(w http.ResponseWriter)
Types ¶
type ApiHandler ¶
type ApiHandler struct {
// contains filtered or unexported fields
}
func NewApiHandler ¶
func NewApiHandler(client *container.Client) *ApiHandler
func (*ApiHandler) ListContainers ¶
func (h *ApiHandler) ListContainers(w http.ResponseWriter, r *http.Request)
func (*ApiHandler) RefreshContainers ¶
func (h *ApiHandler) RefreshContainers(w http.ResponseWriter, r *http.Request)
func (*ApiHandler) UpdateContainers ¶
func (h *ApiHandler) UpdateContainers(w http.ResponseWriter, r *http.Request)
type HomeHandler ¶
type HomeHandler struct {
// contains filtered or unexported fields
}
func NewHomeHandler ¶
func NewHomeHandler(client *container.Client) *HomeHandler
func (*HomeHandler) Home ¶
func (h *HomeHandler) Home(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.