installations

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT, MIT Imports: 9 Imported by: 0

README

go-github-apps-helpers - A collection of Go helpers for GitHub Apps from nomadops

GoDoc Go Report Card [Build Status]( codecov

installations package

The go-github module lacks the ability to remove a repository from an installation with multiple repositories. This need comes up sometimes when users accidentally install an applicatin into multiple repositories and need to remove it from one of them.

installations

import "github.com/nomadops/go-github-apps-helpers/pkg"

Index

func AppRemoveRepoFromInstallation

func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, client *github.Client) error

AppRemoveRepoFromInstallation removes a GitHub repository from a GitHub App installation. func AppRemoveRepoFromInstallation(ctx context.Context, appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, key []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport) error {

func AppToken

func AppToken(itr *ghinstallation.AppsTransport, appID int64, key []byte) ([]byte, error)

Token returns the complete, signed Github app JWT token.

func Token

func Token(itr *ghinstallation.Transport, appID int64, key []byte) (string, error)

Token returns the complete, signed Github app JWT token

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppRemoveRepoFromInstallation added in v0.0.13

func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, client *github.Client) error

AppRemoveRepoFromInstallation removes a GitHub repository from a GitHub App installation. func AppRemoveRepoFromInstallation(ctx context.Context, appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, token []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport, key []byte) error { func AppRemoveRepoFromInstallation(appID int64, installationID int64, repoID int64, itr *ghinstallation.AppsTransport) error {

func AppToken added in v0.0.16

func AppToken(itr *ghinstallation.AppsTransport, appID int64, key []byte) ([]byte, error)

Token returns the complete, signed Github app JWT token.

func Token added in v0.0.14

func Token(itr *ghinstallation.Transport, appID int64, key []byte) (string, error)

Token returns the complete, signed Github app JWT token

Types

This section is empty.

Jump to

Keyboard shortcuts

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