provider

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// RaisePullRequest will automatically create a commit, create a branch, and open a pull request, and return the URL to the PR.
	RaisePullRequest(branch string, commitMessage string, path string, content []byte) (string, error)

	// CreateCommit creates a commit with the given content
	CreateCommit(commitMessage string, path string, content []byte) (string, error)

	// GetFolders returns all available folders in the configured repository
	GetFolders() ([]string, error)

	// SetRepository will configure the owner and repository name for the provider. If not set, the default values from the git package will be used.
	SetRepository(owner string, repository string)
}

func GetProvider

func GetProvider() Provider

func GetProviderForType added in v1.1.1

func GetProviderForType(providerType string, token string) Provider

Jump to

Keyboard shortcuts

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