Documentation ¶
Overview ¶
Package runner is a main business layer of service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { Execute(ctx context.Context, command string) (string, error) HomeDirectory(dir string) }
Executor implementation of workers to perform jobs.
type GitlabAPI ¶
type GitlabAPI struct {
// contains filtered or unexported fields
}
GitlabAPI represent API for interacting with Gitlab.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represent main service struct.
func NewService ¶
func NewService(logger *logrus.Entry, config *config.Config, gitlab gitlabAPI, executor Executor) *Service
NewService create new Service instance.
Click to show internal directories.
Click to hide internal directories.