Documentation ¶
Index ¶
- type GitConfigRequest
- type ModuleRequest
- type Service
- func (s *Service) Create(request ModuleRequest, ctx context.Context) (module.Module, error)
- func (s *Service) Delete(id int, ctx context.Context) error
- func (s *Service) GetGitConfig(id int) (GitConfigRequest, error)
- func (s *Service) List() ([]module.Module, error)
- func (s *Service) PaginateList(ctx *gin.Context) ([]module.Module, error)
- func (s *Service) Read(id int) (module.Module, error)
- func (s *Service) SetGitConfig(id int, request GitConfigRequest, ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitConfigRequest ¶
type GitConfigRequest struct { Repository string `json:"repository" validate:"required"` Branch string `json:"branch" validate:"required,min=4,max=20"` Username string `json:"username"` Password string `json:"password"` }
GitConfigRequest struct represents the git configuration for a module
type ModuleRequest ¶
type ModuleRequest struct {
Name string `json:"name" validate:"required,min=4,max=20"`
}
ModuleRequest struct represents the module configuration
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service struct manages interactions with activities store
func (*Service) GetGitConfig ¶
func (s *Service) GetGitConfig(id int) (GitConfigRequest, error)
GetGitConfig retrieves the git configuration from a module
func (*Service) List ¶
List retrieves all module entries from the database This function is used only for internal purposes
func (*Service) PaginateList ¶
PaginateList retrieves a paginated list of module entries from the database
func (*Service) SetGitConfig ¶
SetGitConfig sets the git configuration to a module
Click to show internal directories.
Click to hide internal directories.