manifest

package
v0.0.0-...-e6fa877 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 14 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

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRegister            = errors.New("register GitHub App from manifest failed")
	ErrRegistrationTimeout = errors.New("GitHub App is not registered before the timeout")
)

Functions

This section is empty.

Types

type Flow

type Flow struct {
	// GitHub Appを登録する画面のURL(https://github.com/settings/apps/new等)
	NewAppURL string
	Manifest  Manifest
	// 待ち受けを開始した後に、manifestを送信するページのURLを受け取る
	OnListening func(pageURL string)
	// 待ち受けるポート(0の場合はOSが空いているポートを選ぶ)
	ListenPort int
}

func (Flow) Run

func (f Flow) Run(ctx context.Context) (string, error)

type HookAttributes

type HookAttributes struct {
	URL    string `json:"url"`
	Active bool   `json:"active"`
}

type Manifest

type Manifest struct {
	Name               string            `json:"name"`
	URL                string            `json:"url"`
	HookAttributes     HookAttributes    `json:"hook_attributes"`
	RedirectURL        string            `json:"redirect_url"`
	Public             bool              `json:"public"`
	DefaultPermissions map[string]string `json:"default_permissions"`
	DefaultEvents      []string          `json:"default_events"`
}

Jump to

Keyboard shortcuts

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