connectpage

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 3 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

Overview

Package connectpage writes the pages `gitd connect github-app` serves on this machine while a person creates their organisation's GitHub App: what will be created and may do, that it is connected and where to install it, or why it was not kept. They look as gitd.dev does.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(out io.Writer, served string, app App, formAction, manifest string) error

Create writes the page that shows the App to create and posts its manifest to GitHub.

func Refused

func Refused(out io.Writer, served string, app App, lead, message string) error

Refused writes the page that says why the App was not kept, and how to try again.

func WriteConnected

func WriteConnected(out io.Writer, served string, connected Connected) error

WriteConnected writes the page that says the App is kept, and where to install it.

Types

type App

type App struct {
	Name         string
	Organization string
	Host         string
}

App is the App being created: its name, its owner (an organisation, or empty for the person creating it) and its host.

type Connected

type Connected struct {
	ID         string
	ActsAs     string
	Prefix     string
	InstallURL string
	ManageURL  string
}

Connected is the App gitd now keeps.

Jump to

Keyboard shortcuts

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