api

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package api exposes the Controller over HTTP: submit, list, inspect, cancel, restart, and log/metric access for jobs. Live control-surface calls (/state, /metrics) are proxied to the job's container agent.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server adapts a Controller to an http.Handler.

func NewServer

func NewServer(ctrl *control.Controller) *Server

NewServer builds the API server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the routed API. Method patterns give automatic 405s.

Jump to

Keyboard shortcuts

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