2019-01-17 05:09:08 +03:00
|
|
|
// Package launchpad contains the Launchpad bridge implementation
|
2018-12-08 05:58:51 +03:00
|
|
|
package launchpad
|
|
|
|
|
|
|
|
import (
|
2020-02-05 00:05:34 +03:00
|
|
|
"time"
|
|
|
|
|
2018-12-08 05:58:51 +03:00
|
|
|
"github.com/MichaelMure/git-bug/bridge/core"
|
|
|
|
)
|
|
|
|
|
2020-02-05 00:05:34 +03:00
|
|
|
const (
|
|
|
|
target = "launchpad-preview"
|
|
|
|
|
|
|
|
metaKeyLaunchpadID = "launchpad-id"
|
|
|
|
metaKeyLaunchpadLogin = "launchpad-login"
|
|
|
|
|
2020-02-15 04:55:19 +03:00
|
|
|
confKeyProject = "project"
|
2020-02-05 00:05:34 +03:00
|
|
|
|
|
|
|
defaultTimeout = 60 * time.Second
|
|
|
|
)
|
|
|
|
|
|
|
|
var _ core.BridgeImpl = &Launchpad{}
|
|
|
|
|
2018-12-08 05:58:51 +03:00
|
|
|
type Launchpad struct{}
|
|
|
|
|
|
|
|
func (*Launchpad) Target() string {
|
|
|
|
return "launchpad-preview"
|
|
|
|
}
|
|
|
|
|
2020-02-15 04:55:19 +03:00
|
|
|
func (Launchpad) LoginMetaKey() string {
|
2020-02-05 00:05:34 +03:00
|
|
|
return metaKeyLaunchpadLogin
|
|
|
|
}
|
|
|
|
|
2018-12-08 05:58:51 +03:00
|
|
|
func (*Launchpad) NewImporter() core.Importer {
|
|
|
|
return &launchpadImporter{}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Launchpad) NewExporter() core.Exporter {
|
|
|
|
return nil
|
|
|
|
}
|