halapi

package
v0.0.0-...-c381765 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerCountRoute = "/api/container/count"

ContainerCountRoute GET request for total running containers

View Source
const RunContainerRoute = "/api/container/run"

RunContainerRoute POST request for running a specified container Requires specified image name

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientAPI

type ClientAPI interface {
	CreateRoutes()
}

ClientAPI is the base interface for creating different clients

type HalClient

type HalClient struct {
	Engine compose.Engine
	Router router.HalRouter
	Log    logger.Log
}

HalClient is the implementation of the Hal api

func (*HalClient) CreateRoutes

func (api *HalClient) CreateRoutes()

CreateRoutes adds specific route endpoints

type Response

type Response struct {
	Error          string
	ContainerCount int
}

Response to send back to requesting service

Jump to

Keyboard shortcuts

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