workbench

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package workbench serves the authenticated local deployment interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets

func Assets() http.Handler

Assets serves the bundled interface without a JavaScript runtime or CDN.

Types

type APIError

type APIError struct {
	Message     string             `json:"message"`
	Code        int                `json:"code"`
	Diagnostics output.Diagnostics `json:"diagnostics,omitempty"`
}

type Event

type Event struct {
	ID          uint64          `json:"id"`
	Time        time.Time       `json:"time"`
	Run         string          `json:"run,omitempty"`
	Target      string          `json:"target,omitempty"`
	Environment string          `json:"environment,omitempty"`
	Type        string          `json:"type"`
	Operation   *provider.Event `json:"operation,omitempty"`
	Error       *APIError       `json:"error,omitempty"`
}

type Options

type Options struct {
	Engine  *engine.Engine
	Root    string
	Port    int
	Token   string
	Timeout time.Duration
	Assets  http.Handler
}

type Publication

type Publication struct {
	PlanHash string                 `json:"plan_hash"`
	Images   map[string]model.Image `json:"images"`
}

type Run

type Run struct {
	Publication *Publication `json:"publication,omitempty"`
	ID          string       `json:"id"`
	Action      string       `json:"action"`
	Target      string       `json:"target"`
	Environment string       `json:"environment"`
	Status      string       `json:"status"`
	StartedAt   time.Time    `json:"started_at"`
	FinishedAt  *time.Time   `json:"finished_at,omitempty"`
	Error       *APIError    `json:"error,omitempty"`
}

type Server

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

func New

func New(options Options) (*Server, error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) Handler

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

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

func (*Server) URL

func (s *Server) URL() string

Jump to

Keyboard shortcuts

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