gitprovider

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAvailable

func ListAvailable(config types.Config, capabilities []string) ([]string, error)

ListAvailable returns a list of providers that: - match the requested capabilities - can be initialized with the given configuration

func New

func New(config types.Config, capabilities []string) (types.Provider, error)

New creates a new git provider based on the given configuration and capabilities. The provider is selected based on the given capabilities and the provider's priority.

func NewWithName

func NewWithName(config types.Config, providerName string) (types.Provider, error)

NewWithName creates a new git provider based on the given configuration and provider name. Caution: this function does not check if the provider is available with the given configuration or capabilities. It is the caller's responsibility to ensure that the provider is available. Use ListAvailable for that purpose.

Types

type Config

type Config = types.Config

type Provider

type Provider = types.Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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