webui

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package webui renders the git-ci operator interface as server-owned HTML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApprovalView

type ApprovalView struct {
	ID, RunID, JobID, ProjectName, EnvironmentName, DeploymentTier, JobName, Ref, CommitSHA, RequestedAt, CSRFToken string
}

type ArtifactView added in v0.7.0

type ArtifactView struct {
	ID, Name, SHA256, Size, Download string
	FileCount                        int
}

type CommitTriggerView added in v0.6.0

type CommitTriggerView struct {
	Ref, Status, Dot, LastCommitSHA, LastCheckedAt, LastTriggeredAt, LastError string
	Enabled                                                                    bool
}

type DeploymentView

type DeploymentView struct {
	ID, RunID, JobID, JobName, ProjectName, Environment, DeploymentTier, Status, Dot, UpdatedAt string
	CSRFToken, RollbackKey, RollbackHint                                                        string
	Terminal, CanRollback                                                                       bool
	RollbackTargets                                                                             []RollbackTargetView
}

type EnvironmentSecretView

type EnvironmentSecretView struct{ ID, ProjectName, EnvironmentName, Name, UpdatedAt string }

type EnvironmentView

type EnvironmentView struct {
	ID, ProjectID, ProjectName, Name, DeploymentTier, AllowedRefs, ConcurrencyMode, UpdatedAt string
	Protected                                                                                 bool
	RequiredApprovals, WaitTimerSeconds, SecretCount                                          int
}

type HistogramBarView

type HistogramBarView struct {
	Label string
	Count int
	Level int
}

type JobView

type JobView struct {
	ID, RunID, ProjectName, WorkflowName, Key, Name, Status, Dot string
	StepCount                                                    int
}

type LogView

type LogView struct {
	Sequence int
	Stream   string
	Message  string
}

type PageData

type PageData struct {
	Page               string
	Title              string
	Kicker             string
	Description        string
	Actor              string
	CSRFToken          string
	Version            string
	Error              string
	Notice             string
	Projects           []store.Project
	ProjectViews       []ProjectView
	SelectedProject    *ProjectView
	Candidates         []projects.Project
	Workflows          []WorkflowView
	Runs               []RunView
	Jobs               []JobView
	SelectedRun        *RunDetailView
	Secrets            []SecretView
	Schedules          []ScheduleView
	Deployments        []DeploymentView
	Environments       []EnvironmentView
	EnvironmentSecrets []EnvironmentSecretView
	Approvals          []ApprovalView
	ActiveDeployments  bool
	Webhooks           []WebhookView
	Runners            []RunnerView
	RunFilter          RunFilterView
	Telemetry          RunTelemetryView
}

type ProjectView added in v0.6.0

type ProjectView struct {
	ID, Name, Slug, CanonicalPath, Health, HealthDetail, Dot, CSRFToken string
	WorkflowCount                                                       int
	Workflows                                                           []WorkflowView
	CommitTrigger                                                       CommitTriggerView
	Workspace                                                           bool
}

type Renderer

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

func New

func New() (*Renderer, error)

func (*Renderer) Assets

func (r *Renderer) Assets() http.Handler

func (*Renderer) RenderApp

func (r *Renderer) RenderApp(writer http.ResponseWriter, status int, data PageData, fragment bool)

func (*Renderer) RenderLogin

func (r *Renderer) RenderLogin(writer http.ResponseWriter, status int, data PageData)

func (*Renderer) RenderLoginFeedback

func (r *Renderer) RenderLoginFeedback(writer http.ResponseWriter, status int, message string)

func (*Renderer) RenderRunPanel

func (r *Renderer) RenderRunPanel(writer http.ResponseWriter, status int, data PageData)

func (*Renderer) RenderStepLogs

func (r *Renderer) RenderStepLogs(writer http.ResponseWriter, status int, data StepLogView)

type ReplayControlView

type ReplayControlView struct {
	Action, CSRFToken, IdempotencyKey, SourceRunID, SourceJobID string
	Label, Hint, Mode, Consequence, CommitSHA                   string
	Enabled, RequiresConfirmation                               bool
}

type RollbackTargetView

type RollbackTargetView struct{ ID, Ref, CommitSHA, CreatedAt string }

type RunDetailView

type RunDetailView struct {
	Run         RunView
	Jobs        []RunJobView
	GraphRows   []RunGraphRowView
	Lineage     *RunLineageView
	Terminal    bool
	EdgeCount   int
	Artifacts   []ArtifactView
	TestReports []TestReportView
}

type RunFilterView

type RunFilterView struct {
	Range, Status, Project string
}

type RunGraphRowView

type RunGraphRowView struct {
	Level int
	Jobs  []RunJobView
}

type RunJobView

type RunJobView struct {
	ID, Key, SourceKey, Name, Status, Dot, Runner, Dependencies string
	AllowFailure                                                bool
	DependencyKeys                                              []string
	Steps                                                       []RunStepView
	Replay                                                      ReplayControlView
	Badges                                                      []SemanticBadgeView
}

type RunLineageView

type RunLineageView struct {
	Kind, SourceRunID, SourceJobID, SourceStepID, Actor, CreatedAt string
}

type RunStepView

type RunStepView struct {
	ID, RunID, Name, Status, Dot, Command, Summary string
	Terminal                                       bool
	Replay                                         ReplayControlView
	Badges                                         []SemanticBadgeView
}

type RunTelemetryView

type RunTelemetryView struct {
	Window, PassRate                 string
	Total, Succeeded, Failed, Active int
	Volume, Duration                 []HistogramBarView
}

type RunView

type RunView struct {
	ID, ProjectName, WorkflowName, WorkflowKey, Status, Dot, Ref, CommitSHA, CreatedAt string
	CanCancel                                                                          bool
	CreatedUnix, DurationSeconds                                                       int64
	DurationLabel                                                                      string
}

type RunnerView added in v0.11.0

type RunnerView struct {
	ID, Name, Status, Dot, Mode, OS, Architecture, Group string
	Labels, Tags                                         []string
	DockerAvailable, RunUntagged                         bool
	MaxParallel                                          int
}

type ScheduleView

type ScheduleView struct {
	ID, ProjectName, WorkflowName, Cron, Ref, Timezone, NextRunAt string
	Enabled                                                       bool
}

type SecretView

type SecretView struct{ ID, ProjectName, Name, UpdatedAt string }

type SemanticBadgeView added in v0.6.0

type SemanticBadgeView struct {
	Label, Tone, Hint string
}

type StepLogView

type StepLogView struct {
	RunID, StepID, StepName string
	Terminal                bool
	Logs                    []LogView
}

type TestReportView added in v0.7.0

type TestReportView struct {
	Name, Duration                   string
	Tests, Failures, Errors, Skipped int
}

type WebhookView

type WebhookView struct {
	ID, ProjectName, Name, Provider, URL string
	Enabled                              bool
}

type WorkflowInputView added in v0.6.0

type WorkflowInputView struct {
	Name, Description, Type, Default string
	Required                         bool
	Options                          []string
}

type WorkflowJobView added in v0.6.0

type WorkflowJobView struct {
	Key, SourceKey, Name, Stage, Runner, Dependencies string
	AllowFailure                                      bool
	Steps                                             []WorkflowStepView
	Badges                                            []SemanticBadgeView
}

type WorkflowStepView added in v0.6.0

type WorkflowStepView struct {
	Name, Command, Action string
	Badges                []SemanticBadgeView
}

type WorkflowTriggerPolicyView added in v0.6.0

type WorkflowTriggerPolicyView struct {
	Event, Condition                                               string
	Branches, BranchesIgnore, Tags, TagsIgnore, Paths, PathsIgnore []string
	Actions, Schedules                                             []string
	Evaluable                                                      bool
}

type WorkflowView

type WorkflowView struct {
	ID, ProjectID, ProjectName, Name, Key, Provider, File string
	Revision, JobCount, EdgeCount                         int
	DefaultRef                                            string
	Triggers                                              []string
	TriggerPolicies                                       []WorkflowTriggerPolicyView
	ManualInputs                                          []WorkflowInputView
	Stages                                                []string
	Jobs                                                  []WorkflowJobView
	GraphRows                                             []RunGraphRowView
	Badges                                                []SemanticBadgeView
	RunnerReady                                           bool
	RunnerBlocked                                         int
}

Jump to

Keyboard shortcuts

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