api

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 108 Imported by: 0

Documentation

Overview

Operations Center API

Operations Center is the central overview of an Incus deployment. It acts as the registration point for all servers running IncusOS, handles update tracking and rollout, provisions new Incus clusters and keeps track of resources across all clusters.

The API is served over HTTPS. Every response is a JSON object carrying a "type" field, which is "sync" for the responses documented here and "error" for failures. The payload of a successful response is carried in "metadata".

Clients authenticate either with a TLS client certificate, which is negotiated at the transport level and therefore cannot be expressed in Swagger 2.0, or with an OIDC bearer token, which is described by the "oidc" security definition.

Schemes: https
BasePath: /
Version: 1.0
License: Apache-2.0 https://www.apache.org/licenses/LICENSE-2.0

Consumes:
  - application/json

Produces:
  - application/json

SecurityDefinitions:
  oidc:
    type: apiKey
    name: Authorization
    in: header
    description: OIDC bearer token, sent as "Bearer <token>".

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

func NewDaemon

func NewDaemon(ctx context.Context, env environment) *Daemon

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

func (*Daemon) Stop

func (d *Daemon) Stop(ctx context.Context) error

type MiddlewareFunc

type MiddlewareFunc func(next http.HandlerFunc) http.HandlerFunc

type Router

type Router interface {
	Handle(pattern string, handler http.Handler)
	HandleFunc(pattern string, handler http.HandlerFunc)

	AddMiddlewares(middleware ...MiddlewareFunc) Router

	SubGroup(basePath string) Router
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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