handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package handler is a package handling API requests for managing TFJobs. The primary purpose of handler is implementing the functionality needed by the TFJobs dashboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTTPAPIHandler

func CreateHTTPAPIHandler(client client.ClientManager) (http.Handler, error)

CreateHTTPAPIHandler creates the restful Container and defines the routes the API will serve

Types

type APIHandler

type APIHandler struct {
	// contains filtered or unexported fields
}

APIHandler handles the API calls

type NamespaceList

type NamespaceList struct {
	Namespaces []v1.Namespace `json:"Namespaces"`
}

NamespaceList is a list of namespaces

type TFJobDetail

type TFJobDetail struct {
	TFJob *v1alpha1.TFJob `json:"tfJob"`
	Pods  []v1.Pod        `json:"pods"`
}

TFJobDetail describe the specification of a TFJob if any and related pods

type TFJobList

type TFJobList struct {
	TFJobs []v1alpha1.TFJob `json:"TFJobs"`
}

TFJobList is a list of TFJobs

Jump to

Keyboard shortcuts

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