provider

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 3 Imported by: 0

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