Documentation ¶
Overview ¶
Package handlers deals with the agent introspection api.
Index ¶
- func MetadataV1RequestHandlerMaker(containerInstanceArn *string, cfg *config.Config) func(http.ResponseWriter, *http.Request)
- func ServeHttp(containerInstanceArn *string, taskEngine engine.TaskEngine, cfg *config.Config)
- func TasksV1RequestHandlerMaker(taskEngine engine.TaskEngine) func(http.ResponseWriter, *http.Request)
- type ContainerResponse
- type LoggingHandler
- type MetadataResponse
- type RootResponse
- type TaskResponse
- type TasksResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeHttp ¶
func ServeHttp(containerInstanceArn *string, taskEngine engine.TaskEngine, cfg *config.Config)
func TasksV1RequestHandlerMaker ¶
func TasksV1RequestHandlerMaker(taskEngine engine.TaskEngine) func(http.ResponseWriter, *http.Request)
Creates response for the 'v1/tasks' API. Lists all tasks if the request doesn't contain any fields. Returns a Task if either of 'dockerid' or 'taskarn' are specified in the request.
Types ¶
type ContainerResponse ¶
type LoggingHandler ¶
type LoggingHandler struct {
// contains filtered or unexported fields
}
func (LoggingHandler) ServeHTTP ¶
func (lh LoggingHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type MetadataResponse ¶
type RootResponse ¶
type RootResponse struct {
AvailableCommands []string
}
type TaskResponse ¶
type TaskResponse struct { Arn string DesiredStatus string `json:",omitempty"` KnownStatus string Family string Version string Containers []ContainerResponse }
func NewTaskResponse ¶
func NewTaskResponse(task *api.Task, containerMap map[string]*api.DockerContainer) *TaskResponse
type TasksResponse ¶
type TasksResponse struct {
Tasks []*TaskResponse
}
func NewTasksResponse ¶
func NewTasksResponse(state *dockerstate.DockerTaskEngineState) *TasksResponse
Click to show internal directories.
Click to hide internal directories.