git-bug: github.com/MichaelMure/git-bug/bridge Index | Files | Directories

package bridge

import "github.com/MichaelMure/git-bug/bridge"

Package bridge contains the high-level public functions to use and manage bridges

Index

Package Files

bridges.go

func ConfiguredBridges Uses

func ConfiguredBridges(repo repository.RepoConfig) ([]string, error)

ConfiguredBridges return the list of bridge that are configured for the given repo

func DefaultBridge Uses

func DefaultBridge(repo *cache.RepoCache) (*core.Bridge, error)

Attempt to retrieve a default bridge for the given repo. If zero or multiple bridge exist, it fails.

func LoadBridge Uses

func LoadBridge(repo *cache.RepoCache, name string) (*core.Bridge, error)

LoadBridge instantiate a new bridge from a repo configuration

func LoginMetaKey Uses

func LoginMetaKey(target string) (string, error)

LoginMetaKey return the metadata key used to store the remote bug-tracker login on the user identity. The corresponding value is used to match identities and credentials.

func NewBridge Uses

func NewBridge(repo *cache.RepoCache, target string, name string) (*core.Bridge, error)

Instantiate a new Bridge for a repo, from the given target and name

func RemoveBridge Uses

func RemoveBridge(repo repository.RepoConfig, name string) error

Remove a configured bridge

func Targets Uses

func Targets() []string

Targets return all known bridge implementation target

Directories

PathSynopsis
corePackage core contains the target-agnostic code to define and run a bridge
core/auth
githubPackage github contains the Github bridge implementation
gitlab
gitlab/iterator
jiraPackage jira contains the Jira bridge implementation
launchpadPackage launchpad contains the Launchpad bridge implementation

Package bridge imports 7 packages (graph) and is imported by 1 packages. Updated 2020-07-14. Refresh now. Tools for package owners.