api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleVarz

func HandleVarz(system *core.System) http.HandlerFunc

HandleVarz creates an http.HandlerFunc that exposes internal system information.

Types

type Server

type Server struct {
	Installations core.InstallationStore
	Installationz core.InstallationService
	Jobs          core.JobStore
	Machines      core.MachineStore
	Memberships   core.MembershipStore
	Runners       core.RunnerStore
	Scheduler     core.Scheduler
	Session       core.Session
	Syncer        core.Syncer
	System        *core.System
	Users         core.UserStore
	Userz         core.UserService
}

Server is a http.Handler exposing CIHub functionality over HTTP.

func New

func New(
	installations core.InstallationStore,
	installationz core.InstallationService,
	jobs core.JobStore,
	machines core.MachineStore,
	memberships core.MembershipStore,
	runners core.RunnerStore,
	scheduler core.Scheduler,
	session core.Session,
	syncer core.Syncer,
	system *core.System,
	users core.UserStore,
	userz core.UserService,
) Server

func (Server) Handler

func (s Server) Handler() http.Handler

Handler returns an http.Handler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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