aboutsummaryrefslogblamecommitdiffstats
path: root/bridge/launchpad/launchpad.go
blob: 51ee79d2bcee4a2da7b66af90b5828fa25468065 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                 


                 

              


                                                    





                                                 
                                  





                                         





                                   
                                        


                                    






                                               
// Package launchpad contains the Launchpad bridge implementation
package launchpad

import (
	"time"

	"github.com/MichaelMure/git-bug/bridge/core"
)

const (
	target = "launchpad-preview"

	metaKeyLaunchpadID    = "launchpad-id"
	metaKeyLaunchpadLogin = "launchpad-login"

	confKeyProject = "project"

	defaultTimeout = 60 * time.Second
)

var _ core.BridgeImpl = &Launchpad{}

type Launchpad struct{}

func (*Launchpad) Target() string {
	return "launchpad-preview"
}

func (Launchpad) LoginMetaKey() string {
	return metaKeyLaunchpadLogin
}

func (*Launchpad) NewImporter() core.Importer {
	return &launchpadImporter{}
}

func (*Launchpad) NewExporter() core.Exporter {
	return nil
}