Documentation ¶
Index ¶
Constants ¶
View Source
const ( LoadRepoDetails = true DontLoadRepoDetails = false )
constants
Variables ¶
View Source
var ( ErrProjectDoesNotExist = errors.New("project does not exist") ErrProjectIDMissing = errors.New("project id is missing") )
errors
Functions ¶
This section is empty.
Types ¶
type ProjectRepository ¶
type ProjectRepository interface { CreateCLAGroup(ctx context.Context, claGroupModel *models.ClaGroup) (*models.ClaGroup, error) GetCLAGroupByID(ctx context.Context, claGroupID string, loadRepoDetails bool) (*models.ClaGroup, error) GetCLAGroupsByExternalID(ctx context.Context, params *project.GetProjectsByExternalIDParams, loadRepoDetails bool) (*models.ClaGroups, error) GetCLAGroupByName(ctx context.Context, claGroupName string) (*models.ClaGroup, error) GetExternalCLAGroup(ctx context.Context, claGroupExternalID string) (*models.ClaGroup, error) GetCLAGroups(ctx context.Context, params *project.GetProjectsParams) (*models.ClaGroups, error) DeleteCLAGroup(ctx context.Context, claGroupID string) error UpdateCLAGroup(ctx context.Context, claGroupModel *models.ClaGroup) (*models.ClaGroup, error) GetClaGroupsByFoundationSFID(ctx context.Context, foundationSFID string, loadRepoDetails bool) (*models.ClaGroups, error) GetClaGroupByProjectSFID(ctx context.Context, projectSFID string, loadRepoDetails bool) (*models.ClaGroup, error) UpdateRootCLAGroupRepositoriesCount(ctx context.Context, claGroupID string, diff int64, reset bool) error }
ProjectRepository defines functions of Project repository
func NewRepository ¶
func NewRepository(awsSession *session.Session, stage string, ghRepo repositories.RepositoryInterface, gerritRepo gerrits.Repository, projectClaGroupRepo projects_cla_groups.Repository) ProjectRepository
NewRepository creates instance of project repository
Click to show internal directories.
Click to hide internal directories.