permanentbranches

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBEnvironmentsProvider

func NewDBEnvironmentsProvider(
	db *database.DB,
) *dbPermanentBranchesProvider

Types

type BatchUpsertResult

type BatchUpsertResult struct {
	Added   []string
	Removed []string
	Result  []string
}

type PermanentBranchesProvider

type PermanentBranchesProvider interface {
	List(ctx context.Context, owner, repo string) ([]string, error)
	IsPermanentBranch(ctx context.Context, owner, repo, branch string) (bool, error)
	BatchUpsert(ctx context.Context, owner, repo string, branches []string) (BatchUpsertResult, error)
}

Jump to

Keyboard shortcuts

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