Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Github []*GithubConfig `yaml:"github"`
GitLab []*GitLabConfig `yaml:"gitlab"`
}
func (*Config) GetSources ¶
func (c *Config) GetSources() []RepositorySource
type GitLabConfig ¶
type GitLabConfig struct {
URL string `yaml:"url,omitempty"`
JobName string `yaml:"job_name"`
AccessToken string `yaml:"access_token"`
Starred *bool `yaml:"starred,omitempty"`
Member *bool `yaml:"member,omitempty"`
Owned *bool `yaml:"owned,omitempty"`
Exclude []string `yaml:"exclude,omitempty"`
Repositories []string `yaml:"repositories,omitempty"`
Organization []string `yaml:"organization,omitempty"`
// contains filtered or unexported fields
}
func (*GitLabConfig) GetName ¶
func (g *GitLabConfig) GetName() string
func (*GitLabConfig) ListRepositories ¶
func (g *GitLabConfig) ListRepositories() ([]*Repository, error)
func (*GitLabConfig) Test ¶
func (g *GitLabConfig) Test() error
type GithubConfig ¶
type GithubConfig struct {
JobName string `yaml:"job_name"`
AccessToken string `yaml:"access_token"`
URL string `yaml:"url,omitempty"`
Starred *bool `yaml:"starred,omitempty"`
OrgMember *bool `yaml:"org_member,omitempty"`
Collaborator *bool `yaml:"collaborator,omitempty"`
Owned *bool `yaml:"owned,omitempty"`
Exclude []string `yaml:"exclude,omitempty"`
Repositories []string `yaml:"repositories,omitempty"`
Organization []string `yaml:"organization,omitempty"`
// contains filtered or unexported fields
}
func (*GithubConfig) GetName ¶
func (c *GithubConfig) GetName() string
func (*GithubConfig) ListRepositories ¶
func (c *GithubConfig) ListRepositories() ([]*Repository, error)
func (*GithubConfig) Test ¶
func (c *GithubConfig) Test() error
type Repository ¶
type RepositorySource ¶
type RepositorySource interface {
GetName() string
Test() error
ListRepositories() ([]*Repository, error)
}
Click to show internal directories.
Click to hide internal directories.