handler

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 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 *tfv1.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 []tfv1.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