Documentation ¶
Overview ¶
Package testconnector provides a static connector for testing purposes. This connector always delivers the same data
Index ¶
- Variables
- func CLIFlags() []cli.Flag
- func New(ctx *cli.Context) (connectors.Connector, error)
- type Connector
- func (*Connector) GetNewTagURL(TagName string) (string, error)
- func (c *Connector) Issues(_ context.Context, cerr chan<- error) (<-chan data.Issue, <-chan bool, <-chan int)
- func (c *Connector) MRs(_ context.Context, cerr chan<- error) (<-chan data.MR, <-chan bool, <-chan int)
- func (c *Connector) RepositoryExists() (bool, error)
- func (c *Connector) Tags(_ context.Context, cerr chan<- error) (<-chan data.Tag, <-chan bool, <-chan int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RetTestingTag controls whenether the testconnector should return the tag testingtag RetTestingTag = false // RepositoryExistsFail controls whenether the testconnector should // fail in the RepositoryExists() call RepositoryExistsFail = false )
nolint: gochecknoglobals
Functions ¶
Types ¶
type Connector ¶
type Connector struct { }
Connector implements the test connector
func (*Connector) GetNewTagURL ¶
GetNewTagURL implements the connectors.Connector interface
func (*Connector) Issues ¶
func (c *Connector) Issues( _ context.Context, cerr chan<- error, ) ( <-chan data.Issue, <-chan bool, <-chan int, )
Issues implements the connectors.Connector interface
func (*Connector) MRs ¶
func (c *Connector) MRs( _ context.Context, cerr chan<- error, ) ( <-chan data.MR, <-chan bool, <-chan int, )
MRs implements the connectors.Connector interface
func (*Connector) RepositoryExists ¶
RepositoryExists checks if referenced repository is present
Click to show internal directories.
Click to hide internal directories.