app

package
v0.0.0-...-da9c117 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 5 Imported by: 5

Documentation

Overview

Package app implements GitHub App authentication. See: https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#authenticating-as-a-github-app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config defines the base GitHub App Config structure.

func NewConfig

func NewConfig(id string, key *rsa.PrivateKey) (*Config, error)

NewConfig returns a new GitHub App instance.

func (*Config) Client

func (c *Config) Client() *http.Client

Client returns an HTTP client with an HTTP transport that adds Authorization headers.

func (*Config) InstallationConfig

func (c *Config) InstallationConfig(id string) (*inst.Config, error)

InstallationConfig returns the Installation Config for the provided installation ID.

Directories

Path Synopsis
Package inst implements GitHub App Installation authentication.
Package inst implements GitHub App Installation authentication.

Jump to

Keyboard shortcuts

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