Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(api *operations.ClaAPI, service service, sessionStore *dynastore.Store)
Configure setups handlers on api with service
func NewRepository ¶
NewRepository creates a new instance of the whitelist service
func NewService ¶
func NewService(repo Repository, httpClient *http.Client) service
NewService creates a new whitelist service
Types ¶
type Repository ¶
type Repository interface {
DeleteGithubOrganizationFromWhitelist(claGroupID, githubOrganizationID string) error
AddGithubOrganizationToWhitelist(claGroupID, githubOrganizationID string) error
GetGithubOrganizationsFromWhitelist(claGroupID string) ([]models.GithubOrg, error)
}
Repository interface defines the functions for the whitelist service
Click to show internal directories.
Click to hide internal directories.