gitproviderfactory

package
v0.0.0-...-f2ddc2e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateGitClient func(gitClientConfig GitClientConfig) (gitprovider.GitProviderClient, error) = createGitClient

Functions

This section is empty.

Types

type GitClientConfig

type GitClientConfig struct {
	// PacSecretData are the content of Pipelines as Code secret
	PacSecretData map[string][]byte
	// GitProvider is type of the git provider to construct client for.
	// Cannot be obtained from repo repository URL in case of self-hosted solution.
	GitProvider string
	// RepoUrl is the target git repository URL.
	// Used to check that the requirements to access the repository are met,
	// for example, check that the application is installed into given git repository.
	// Ignored for some client configurations, e.g. clients created directly via a token.
	RepoUrl string
	// IsAppInstallationExpected shows whether to expect application installation into the target repository URL.
	// Ignored for clients created directly via a token.
	IsAppInstallationExpected bool
}

Jump to

Keyboard shortcuts

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