httpapi

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchivePatch

type ArchivePatch struct {
	Name     *string `json:"name,omitempty"`
	Archived *bool   `json:"archived,omitempty"`
}

type AttemptStart

type AttemptStart struct {
	EnvironmentID string `json:"environmentId,omitempty"`
	Revision      int64  `json:"revision,omitempty"`
}

type CallLogPage added in v1.0.3

type CallLogPage struct {
	Items      []execution.LogSummary `json:"items"`
	NextCursor string                 `json:"nextCursor,omitempty"`
}

type CreateName

type CreateName struct {
	Name string `json:"name"`
}

type EnvironmentPage

type EnvironmentPage struct {
	Items      []resources.Environment `json:"items"`
	NextCursor string                  `json:"nextCursor,omitempty"`
}

type EnvironmentWrite

type EnvironmentWrite struct {
	Description string `json:"description"`
	Name        string `json:"name"`
	Revision    int64  `json:"revision"`
}

type Error

type Error struct {
	Code        string            `json:"code"`
	Message     string            `json:"message"`
	FieldErrors map[string]string `json:"fieldErrors,omitempty"`
	RequestID   string            `json:"requestId"`
}

type FolderPage

type FolderPage struct {
	Items      []catalog.Folder `json:"items"`
	NextCursor string           `json:"nextCursor,omitempty"`
}

type ProtoBundle

type ProtoBundle struct {
	Files    map[string]string `json:"files"`
	Revision int64             `json:"revision"`
}

type ResourcePage

type ResourcePage struct {
	Items      []resources.Resource `json:"items"`
	NextCursor string               `json:"nextCursor,omitempty"`
}

type ResourceWrite

type ResourceWrite struct {
	Name     string                  `json:"name"`
	Kind     string                  `json:"kind"`
	Revision int64                   `json:"revision"`
	Config   resources.Config        `json:"config"`
	Secrets  resources.SecretChanges `json:"secrets"`
}

type RunPage

type RunPage struct {
	Items      []runs.Run `json:"items"`
	NextCursor string     `json:"nextCursor,omitempty"`
}

type RunStart

type RunStart struct {
	HistoryPolicy string `json:"historyPolicy,omitempty"`
	ExecuteAll    bool   `json:"executeAll,omitempty"`
	EnvironmentID string `json:"environmentId"`
	Revision      int64  `json:"revision"`
}

type Server

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

func New

func New(config appruntime.Config, assets fs.FS, ping func(context.Context) error) (*Server, error)

func (*Server) Handler

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

func (*Server) RegisterCatalog

func (s *Server) RegisterCatalog(repo ports.Catalog)

func (*Server) RegisterDemo

func (s *Server) RegisterDemo(service *demo.Service, c ports.Catalog)

func (*Server) RegisterImages

func (s *Server) RegisterImages(repo ports.Catalog)

func (*Server) RegisterMCP

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

RegisterMCP shares the application listener; MCP is open independently of browser session, Host and Origin checks applied to the UI API.

func (*Server) RegisterResources

func (s *Server) RegisterResources(repo ports.Resources)

func (*Server) RegisterRuns

func (s *Server) RegisterRuns(engine *service.Engine, reports ...*reporting.Service)

type StepWrite

type StepWrite struct {
	Status   string `json:"status"`
	Comment  string `json:"comment"`
	Revision int64  `json:"revision"`
}

type StepsPassAll

type StepsPassAll struct {
	Steps []runs.StepRevision `json:"steps"`
}

type TestCaseCreate

type TestCaseCreate struct {
	Name string `json:"name,omitempty"`
}

type TestCasePage

type TestCasePage struct {
	Items      []catalog.TestCase `json:"items"`
	NextCursor string             `json:"nextCursor,omitempty"`
}

type TestCaseWrite

type TestCaseWrite struct {
	Name     string         `json:"name,omitempty"`
	Revision int64          `json:"revision"`
	Steps    []catalog.Step `json:"steps,omitempty"`
}

type VariablesWrite

type VariablesWrite struct {
	HTTPVariables resources.HTTPVariables `json:"httpVariables,omitempty"`
	Revision      int64                   `json:"revision"`
	Variables     map[string]string       `json:"variables"`
	Secrets       resources.SecretChanges `json:"secrets"`
}

type VariantWrite

type VariantWrite struct {
	Name     string               `json:"name"`
	Revision int64                `json:"revision"`
	Request  *catalog.CallRequest `json:"request,omitempty"`
}

Jump to

Keyboard shortcuts

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