ui

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

View Source
const (
	EventLogChunk    sseEvent = "log_update"
	EventLogFinished sseEvent = "log_finished"
)
View Source
const LatestRunUpdate sseEvent = "LatestRunUpdate"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateRun(context.Context, resource.TfeID, runpkg.CreateOptions) (*runpkg.Run, error)
	ListRuns(_ context.Context, opts runpkg.ListOptions) (*resource.Page[*runpkg.Run], error)
	GetRun(ctx context.Context, id resource.TfeID) (*runpkg.Run, error)
	GetChunk(ctx context.Context, opts runpkg.GetChunkOptions) (runpkg.Chunk, error)
	CancelRun(ctx context.Context, id resource.TfeID) error
	ForceCancelRun(ctx context.Context, id resource.TfeID) error
	DiscardRun(ctx context.Context, id resource.TfeID) error
	TailRun(context.Context, runpkg.TailOptions) (<-chan runpkg.Chunk, error)
	DeleteRun(context.Context, resource.TfeID) error
	ApplyRun(context.Context, resource.TfeID) error
	WatchRuns(ctx context.Context) (<-chan pubsub.Event[*runpkg.Event], func(), error)
	GetWorkspace(context.Context, resource.TfeID) (*workspace.Workspace, error)
	WatchWorkspaces(ctx context.Context) (<-chan pubsub.Event[*workspace.Event], func(), error)
	GetUser(ctx context.Context, spec user.UserSpec) (*user.User, error)
	// contains filtered or unexported methods
}

type Handlers

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

func NewHandlers

func NewHandlers(
	logger logr.Logger,
	client Client,
	authorizer authz.Interface,
) *Handlers

func (*Handlers) AddHandlers

func (h *Handlers) AddHandlers(r *mux.Router)

func (*Handlers) SingleRunTable

func (h *Handlers) SingleRunTable(run *runpkg.Run) templ.Component

Jump to

Keyboard shortcuts

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