ui

package
v0.5.19 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoURL

func RepoURL(provider *vcs.Provider, repo vcs.Repo) templ.SafeURL

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 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