Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrExecutorNotInitialized represents an error when the executor is not initialized ErrExecutorNotInitialized = fmt.Errorf("executor not initialized") // ErrorExecuteTask represents an error when executing a task ErrorExecuteTask = fmt.Errorf("error executing task") // ErrorStoreTask represents an error when storing a task ErrorStoreTask = fmt.Errorf("error storing task") // ErrTaskRepositoryNotInitialized represents an error when the task store is not initialized ErrTaskRepositoryNotInitialized = fmt.Errorf("task repository not initialized") // ErrTaskNotProvided represents an error when the task is not provided ErrTaskNotProvided = fmt.Errorf("task not provided") // ErrProjectRepositoryNotInitialized represents an error when the project store is not initialized ErrProjectRepositoryNotInitialized = fmt.Errorf("project repository not initialized") // ErrProjectNotProvided represents an error when the project is not provided ErrProjectNotProvided = fmt.Errorf("project not provided") // ErrFindingProject represents an error when the project is not found ErrFindingProject = fmt.Errorf("error finding project") // ErrSettingUpProject represents an error when setting up a project ErrSettingUpProject = fmt.Errorf("error setting up project") // ErrGeneratingRandomString represents an error when generating a random string ErrGeneratingRandomString = fmt.Errorf("error generating random string") )
View Source
var ( // ErrFindingTask represents an error when a task is not found ErrFindingTask = fmt.Errorf("error finding task") // ErrRepositoryNotInitialized represents an error when the store is not initialized ErrRepositoryNotInitialized = fmt.Errorf("task repository not initialized") // ErrTaskIDNotProvided represents an error when the task id is not provided ErrTaskIDNotProvided = fmt.Errorf("task id not provided") )
Functions ¶
This section is empty.
Types ¶
type CreateTaskAnsiblePlaybookService ¶
type CreateTaskAnsiblePlaybookService struct {
// contains filtered or unexported fields
}
CreateTaskAnsiblePlaybookService represents the service to run an Ansible playbook
func NewCreateTaskAnsiblePlaybookService ¶
func NewCreateTaskAnsiblePlaybookService( executor repository.Executor, taskRepo repository.TaskRepository, projectRepo repository.ProjectRepository, logger repository.Logger, ) *CreateTaskAnsiblePlaybookService
NewCreateTaskAnsiblePlaybookService creates a new CreateTaskAnsiblePlaybookService
func (*CreateTaskAnsiblePlaybookService) GenerateID ¶
func (s *CreateTaskAnsiblePlaybookService) GenerateID() string
GenerateID generates an ID
type GetTaskService ¶
type GetTaskService struct {
// contains filtered or unexported fields
}
GetTaskService is a service to get a task
func NewGetTaskService ¶
func NewGetTaskService(repository repository.TaskRepository, logger repository.Logger) *GetTaskService
NewGetTaskService creates a new GetTaskService
Click to show internal directories.
Click to hide internal directories.