providers

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTitle       = "Git Controller automated Pull Request"
	DefaultBaseBranch  = "main"
	DefaultDescription = "Pull requested created automatically by OCM Git Controller."
)

Variables

View Source
var ErrNotSupported = errors.New("functionality not supported by provider")

Functions

This section is empty.

Types

type Provider

type Provider interface {
	CreateRepository(ctx context.Context, obj mpasv1alpha1.Repository) error
	CreatePullRequest(ctx context.Context, branch string, sync deliveryv1alpha1.Sync, repository mpasv1alpha1.Repository) (int, error)
	CreateBranchProtection(ctx context.Context, obj mpasv1alpha1.Repository) error
}

Provider adds the ability to create repositories and pull requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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