Documentation
¶
Index ¶
Constants ¶
View Source
const (
GithubOrgSFIDIndex = "github-org-sfid-index"
)
indexes
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(api *operations.ClaAPI, service Service, eventService events.Service)
Configure setups handlers on api with service
func NewRepository ¶
NewRepository creates a new instance of the githubOrganizations repository
Types ¶
type GithubOrganization ¶
type GithubOrganization struct {
DateCreated string `json:"date_created,omitempty"`
DateModified string `json:"date_modified,omitempty"`
OrganizationInstallationID int64 `json:"organization_installation_id,omitempty"`
OrganizationName string `json:"organization_name,omitempty"`
OrganizationSfid string `json:"organization_sfid,omitempty"`
Version string `json:"version,omitempty"`
}
GithubOrganization is data model for github organizations
type Repository ¶
type Repository interface {
GetGithubOrganizations(externalProjectID string) (*models.GithubOrganizations, error)
AddGithubOrganization(externalProjectID string, input *models.CreateGithubOrganization) (*models.GithubOrganization, error)
DeleteGithubOrganization(externalProjectID string, githubOrgName string) error
}
Repository interface defines the functions for the github organizations data model
type Service ¶
type Service interface {
GetGithubOrganizations(externalProjectID string) (*models.GithubOrganizations, error)
AddGithubOrganization(externalProjectID string, input *models.CreateGithubOrganization) (*models.GithubOrganization, error)
DeleteGithubOrganization(externalProjectID string, githubOrgName string) error
}
Service contains functions of GithubOrganizations service
func NewService ¶
func NewService(repo Repository, ghRepository repositories.Repository) Service
NewService creates a new githubOrganizations service
Click to show internal directories.
Click to hide internal directories.