Documentation
¶
Overview ¶
Package github provides a GitHub plugin for Hive.
Index ¶
- type Plugin
- func (p *Plugin) Available() bool
- func (p *Plugin) Close() error
- func (p *Plugin) Commands() map[string]config.UserCommand
- func (p *Plugin) Init(_ context.Context) error
- func (p *Plugin) Name() string
- func (p *Plugin) RefreshStatus(ctx context.Context, sessions []*session.Session, pool *plugins.WorkerPool) (map[string]plugins.Status, error)
- func (p *Plugin) StatusCacheDuration() time.Duration
- func (p *Plugin) StatusProvider() plugins.StatusProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the GitHub plugin for Hive.
func New ¶
func New(cfg config.GitHubPluginConfig, kvStore kv.KV) *Plugin
New creates a new GitHub plugin. If kvStore is non-nil, PR status is cached in the persistent KV store.
func (*Plugin) RefreshStatus ¶
func (*Plugin) StatusCacheDuration ¶
func (*Plugin) StatusProvider ¶
func (p *Plugin) StatusProvider() plugins.StatusProvider
Click to show internal directories.
Click to hide internal directories.