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: 15 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	VCSProviders VCSService
}

func NewHandlers

func NewHandlers(vcsService VCSService) *Handlers

func (*Handlers) AddHandlers

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

type Table added in v0.5.20

type Table struct {
	Actions func(vcsProviderID resource.TfeID) templ.Component
}

func (Table) Header added in v0.5.20

func (t Table) Header() templ.Component

func (Table) Row added in v0.5.20

func (t Table) Row(provider *vcs.Provider) templ.Component

type VCSService

type VCSService interface {
	GetKind(id vcs.KindID) (vcs.Kind, error)
	GetKinds() []vcs.Kind
	CreateVCSProvider(ctx context.Context, opts vcs.CreateOptions) (*vcs.Provider, error)
	GetVCSProvider(ctx context.Context, id resource.TfeID) (*vcs.Provider, error)
	UpdateVCSProvider(ctx context.Context, id resource.TfeID, opts vcs.UpdateOptions) (*vcs.Provider, error)
	ListVCSProviders(ctx context.Context, organization organization.Name) ([]*vcs.Provider, error)
	DeleteVCSProvider(ctx context.Context, id resource.TfeID) (*vcs.Provider, error)
}

Jump to

Keyboard shortcuts

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