git-bug/bridge/bridges.go

34 lines
920 B
Go
Raw Normal View History

package bridge
import (
"github.com/MichaelMure/git-bug/bridge/core"
2018-09-24 16:25:15 +03:00
_ "github.com/MichaelMure/git-bug/bridge/github"
2018-09-24 17:24:38 +03:00
"github.com/MichaelMure/git-bug/cache"
2018-09-24 16:25:15 +03:00
"github.com/MichaelMure/git-bug/repository"
)
2018-09-24 16:25:15 +03:00
// Targets return all known bridge implementation target
func Targets() []string {
return core.Targets()
}
2018-09-24 17:24:38 +03:00
func NewBridge(repo *cache.RepoCache, target string, name string) (*core.Bridge, error) {
return core.NewBridge(repo, target, name)
}
2018-09-24 18:11:50 +03:00
func NewBridgeFullName(repo *cache.RepoCache, fullName string) (*core.Bridge, error) {
return core.NewBridgeFullName(repo, fullName)
}
func DefaultBridge(repo *cache.RepoCache) (*core.Bridge, error) {
return core.DefaultBridge(repo)
}
2018-09-24 16:25:15 +03:00
func ConfiguredBridges(repo repository.RepoCommon) ([]string, error) {
return core.ConfiguredBridges(repo)
}
2018-09-24 17:24:38 +03:00
func RemoveBridges(repo repository.RepoCommon, fullName string) error {
return core.RemoveBridge(repo, fullName)
}