Documentation ¶
Index ¶
- func NewHandler(logger lager.Logger, repo TeamRepository, emitter metrics.Emitter) rolodexpb.RolodexServer
- func NewTeamRepository(logger lager.Logger, teamsPath string) *teamRepository
- type Config
- type GitSyncClient
- type Repository
- type SlackChannel
- type Syncer
- type Team
- type TeamRecord
- type TeamRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler(logger lager.Logger, repo TeamRepository, emitter metrics.Emitter) rolodexpb.RolodexServer
func NewTeamRepository ¶
Types ¶
type Config ¶
type Config struct { RepositoryPath string `yaml:"repository_path"` RepositoryURL string `yaml:"repository_url"` GitHub struct { PrivateKeyPath string `yaml:"private_key_path"` PublicKeyPath string `yaml:"public_key_path"` } `yaml:"github"` Metrics struct { SentryDSN string `yaml:"sentry_dsn"` DatadogAPIKey string `yaml:"datadog_api_key"` Environment string `yaml:"environment"` } `yaml:"metrics"` RPC struct { BindIP string `yaml:"bind_ip"` BindPort uint16 `yaml:"bind_port"` CACertificatePath string `yaml:"ca_certificate_path"` CertificatePath string `yaml:"certificate_path"` PrivateKeyPath string `yaml:"private_key_path"` PrivateKeyPassphrase string `yaml:"private_key_passphrase"` } `yaml:"rpc_server"` }
func LoadConfig ¶
type GitSyncClient ¶
type Repository ¶
type SlackChannel ¶
type Syncer ¶
type Syncer interface {
Sync()
}
func NewSyncer ¶
func NewSyncer(logger lager.Logger, emitter metrics.Emitter, repoURL, repoPath string, gitClient GitSyncClient, teamRepo TeamRepository) Syncer
type Team ¶
type Team struct { Name string SlackChannel SlackChannel }
type TeamRecord ¶
type TeamRecord struct { Name string `yaml:"name"` Repositories []string `yaml:"repositories"` Contact struct { Slack struct { Team string `yaml:"team"` Channel string `yaml:"channel"` } `yaml:"slack"` } `yaml:"contact"` }
func (TeamRecord) OwnsRepository ¶
func (t TeamRecord) OwnsRepository(repo Repository) bool
type TeamRepository ¶
type TeamRepository interface { GetOwners(Repository) ([]Team, error) Reload() }
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Package rolodexpb is a generated protocol buffer package.
|
Package rolodexpb is a generated protocol buffer package. |
Click to show internal directories.
Click to hide internal directories.