utils

package
v0.1.5-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PermissionsError = fmt.Errorf("Permissions error")

Functions

func GetPaginatedResult

func GetPaginatedResult[T any, K any](
	ctx context.Context,
	globalBackoff *backoff.Backoff,
	callOpts *github.ListOptions,
	githubCall func(opts *github.ListOptions) (K, *github.Response, error),
	aggregator func(K) []T,
) ([]T, error)

func InstallsAggregator

func InstallsAggregator(
	installs *github.OrganizationInstallations,
) []types.Install

func RunnersAggregator

func RunnersAggregator(runners *github.Runners) []types.Runner

func WebhooksAggregator

func WebhooksAggregator(hooks []*github.Hook) []types.Webhook

func WorkflowsAggregator

func WorkflowsAggregator(workflows *github.Workflows) []types.Workflow

Types

This section is empty.

Jump to

Keyboard shortcuts

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