api

package
v0.20.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package api provides scheduler http api routes implements.

Including application, deployment, service, configmap, secret. Please see the api document for details.

backend := Backend{}
router := NewRouter(backend)
actions := router.GetActions()

//use the routing table information to register http client
//...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

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

Router http api registry

func NewRouter

func NewRouter(b backend.Backend) *Router

NewRouter return api application router

func (*Router) GetActions

func (r *Router) GetActions() []*httpserver.Action

GetActions get http api routing table information, and use it to register http client

Jump to

Keyboard shortcuts

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