Documentation ¶
Overview ¶
Package github contains the Github bridge implementation
Index ¶
- Constants
- Variables
- func NewImportMediator(ctx context.Context, client *rateLimitHandlerClient, owner, project string, ...) *importMediator
- type Client
- type CommentEditEvent
- type Github
- func (g *Github) Configure(repo *cache.RepoCache, params core.BridgeParams, interactive bool) (core.Configuration, error)
- func (g *Github) LoginMetaKey() string
- func (*Github) NewExporter() core.Exporter
- func (*Github) NewImporter() core.Importer
- func (*Github) Target() string
- func (g *Github) ValidParams() map[string]interface{}
- func (*Github) ValidateConfig(conf core.Configuration) error
- type ImportEvent
- type IssueEditEvent
- type IssueEvent
- type RateLimitingEvent
- type TimelineEvent
Constants ¶
View Source
const ( NumIssues = 40 NumIssueEdits = 100 NumTimelineItems = 100 NumCommentEdits = 100 ChanCapacity = 128 )
View Source
const EmptyTitlePlaceholder = "<empty string>"
Variables ¶
View Source
var (
ErrBadProjectURL = errors.New("bad project url")
)
View Source
var (
ErrMissingIdentityToken = errors.New("missing identity token")
)
Functions ¶
Types ¶
type Client ¶ added in v0.8.0
type Client interface { Mutate(context.Context, interface{}, githubv4.Input, map[string]interface{}) error Query(context.Context, interface{}, map[string]interface{}) error }
Client is an interface conforming with githubv4.Client
type CommentEditEvent ¶ added in v0.8.0
type CommentEditEvent struct {
// contains filtered or unexported fields
}
type Github ¶
type Github struct{}
func (*Github) Configure ¶
func (g *Github) Configure(repo *cache.RepoCache, params core.BridgeParams, interactive bool) (core.Configuration, error)
func (*Github) LoginMetaKey ¶
func (*Github) NewExporter ¶
func (*Github) NewImporter ¶
func (*Github) ValidParams ¶
func (*Github) ValidateConfig ¶
func (*Github) ValidateConfig(conf core.Configuration) error
type ImportEvent ¶ added in v0.8.0
type ImportEvent interface {
// contains filtered or unexported methods
}
type IssueEditEvent ¶ added in v0.8.0
type IssueEditEvent struct {
// contains filtered or unexported fields
}
type IssueEvent ¶ added in v0.8.0
type IssueEvent struct {
// contains filtered or unexported fields
}
type RateLimitingEvent ¶ added in v0.8.0
type RateLimitingEvent struct {
// contains filtered or unexported fields
}
type TimelineEvent ¶ added in v0.8.0
type TimelineEvent struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.