Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PiotrFerenc/task-tower
/ functions
Functions
206 in github.com/PiotrFerenc/task-tower
⨍
Functions
206
◇
Types & classes
64
↓ 34 callers
Method
GetStringFrom
(message *types.Process)
cmd/worker/actions/action.go:38
↓ 13 callers
Method
SetString
SetString sets the value of a string property in the Parameters map of the Process object. Parameters: name: The name of the property to be set. v
internal/types/proces.go:85
↓ 8 callers
Method
Close
Close closes the RabbitMQ channel associated with the RabbitClient instance. It uses the underlying RabbitMQ channel's Close() method to close the cha
internal/queues/rabbitmq-queue.go:250
↓ 5 callers
Function
StartContainer
StartContainer starts a Docker container with the specified image name, environment variables, volume bindings, and context. Parameters: imageName:
internal/Container/DockerContainer.go:25
↓ 4 callers
Method
addTask
addTask publishes a message to the specified queue using the RabbitMQ client. It marshals the provided message to JSON format and sets the message pro
internal/queues/rabbitmq-queue.go:154
↓ 4 callers
Method
waitingForTask
`waitingForTask` returns a channel of amqp.Delivery that receives messages from the specified queue. It uses the RabbitMQ client's `Consume` method to
internal/queues/rabbitmq-queue.go:139
↓ 3 callers
Method
GetInternalName
GetInternalName returns the internal name of a property by concatenating the camelCase version of the current step's name with the provided propertyNa
internal/types/proces.go:49
↓ 3 callers
Function
ProcessTasks
ProcessTasks processes tasks from the message queue by getting the tasks using getTasksFunc, and then calling processTasks to process each task using
internal/services/pipeline-service.go:110
↓ 3 callers
Method
Run
(address, port string)
internal/workers/worker.go:4
↓ 3 callers
Method
Save
(pipeline types.Process)
internal/repositories/process-repository.go:10
↓ 3 callers
Method
UpdateStatus
(pipeline types.Process)
internal/repositories/process-repository.go:9
↓ 2 callers
Method
AddTaskToQueue
(message types.Process)
internal/queues/message-queue.go:10
↓ 2 callers
Function
CreateActionMap
CreateActionMap takes a pointer to a Config struct as input parameter. It creates and returns a map of actions. The keys of the map are the names of t
internal/executor/map-executor.go:116
↓ 2 callers
Method
CreateQueue
(name string)
internal/queues/message-queue.go:18
↓ 2 callers
Function
CreateRabbitMqMessageQueue
CreateRabbitMqMessageQueue creates a new RabbitMQ message queue based on the given configuration. It establishes a connection, creates the necessary q
internal/queues/rabbitmq-queue.go:26
↓ 2 callers
Function
CreateYmlConfiguration
()
internal/configuration/yml-configuration.go:12
↓ 2 callers
Method
GetIntFrom
(message *types.Process)
cmd/worker/actions/action.go:31
↓ 2 callers
Method
LoadConfiguration
()
internal/configuration/configuration.go:37
↓ 2 callers
Method
Run
(address, port string)
internal/controllers/controller.go:4
↓ 2 callers
Function
addToQueue
addToQueue adds a task to the message queue as either a success or failure. If the given error is not nil, it adds the task as a failure, otherwise it
internal/executor/map-executor.go:69
↓ 2 callers
Function
getPropertyNames
(properties []actions.Property)
internal/controllers/rest-controller.go:70
↓ 1 callers
Method
AddTaskAsFailed
(error error, message types.Process)
internal/queues/message-queue.go:11
↓ 1 callers
Method
AddTaskAsFinished
(message types.Process)
internal/queues/message-queue.go:13
↓ 1 callers
Method
AddTaskAsSuccess
(message types.Process)
internal/queues/message-queue.go:12
↓ 1 callers
Function
BuildImage
BuildImage builds a Docker image using the specified Dockerfile path, image name, and context. Parameters: dockerfilePath: The path to the Dockerfi
internal/Container/DockerContainer.go:59
↓ 1 callers
Method
Connect
Connect establishes a connection to the RabbitMQ server and initializes a RabbitClient. It uses the underlying establishConnection function to establi
internal/queues/rabbitmq-queue.go:72
↓ 1 callers
Method
Connect
()
internal/queues/message-queue.go:9
↓ 1 callers
Function
ConnectRabbitMQ
ConnectRabbitMQ establishes a connection to the RabbitMQ server using the provided credentials and returns the connection and any error that occurred
internal/queues/rabbitmq-queue.go:214
↓ 1 callers
Function
CreateAddNumbers
CreateAddNumbers This is a function that initializes an instance of the addnumbers struct. It returns a pointer to the addnumbers instance. This is us
cmd/worker/actions/math/add-numbers.go:17
↓ 1 callers
Function
CreateAppendContentToFile
(config *configuration.Config)
cmd/worker/actions/file/file-append.go:18
↓ 1 callers
Function
CreateArchiveToFile
(config *configuration.Config)
cmd/worker/actions/zip/zip-create.go:20
↓ 1 callers
Function
CreateConsoleAction
()
cmd/worker/actions/others/console.go:13
↓ 1 callers
Function
CreateContentToFile
(config *configuration.Config)
cmd/worker/actions/file/file-create.go:18
↓ 1 callers
Function
CreateDeleteFileAction
(config *configuration.Config)
cmd/worker/actions/file/file-delete.go:16
↓ 1 callers
Function
CreateDockerRemove
()
cmd/worker/actions/docker/docker-remove.go:14
↓ 1 callers
Function
CreateDockerRun
()
cmd/worker/actions/docker/docker-run.go:11
↓ 1 callers
Function
CreateGitClone
(config *configuration.Config)
cmd/worker/actions/git/git-clone.go:17
↓ 1 callers
Function
CreateGitCommit
(config *configuration.Config)
cmd/worker/actions/git/git-commit.go:19
↓ 1 callers
Function
CreateGitCreateBranch
(config *configuration.Config)
cmd/worker/actions/git/git-branch.go:17
↓ 1 callers
Function
CreateMapExecutor
CreateMapExecutor creates and starts an executor that consumes tasks from the given message queue and executes them. It takes a MessageQueue and a map
internal/executor/map-executor.go:32
↓ 1 callers
Function
CreateOnFailFunc
CreateOnFailFunc creates a function of type OnMessageReceivedFunc that logs the failure of a process, marks the process as failed in the service, and
internal/services/pipeline-service.go:205
↓ 1 callers
Function
CreateOnFinishFunc
CreateOnFinishFunc creates a function of type OnMessageReceivedFunc that logs the successful completion of a process, marks the process as done in the
internal/services/pipeline-service.go:220
↓ 1 callers
Function
CreateOnSuccessFunc
CreateOnSuccessFunc creates a function of type OnMessageReceivedFunc that processes the given process, queue, and service based on the logic provided
internal/services/pipeline-service.go:172
↓ 1 callers
Function
CreatePipelineService
CreatePipelineService creates a PipelineService instance by initializing the queue, processService, and starting a goroutine to watch for messages. It
internal/services/pipeline-service.go:47
↓ 1 callers
Function
CreatePostgresRepository
CreatePostgresRepository takes a DatabaseConfig and returns a ProcessRepository that interacts with a PostgreSQL database. The function establishes a
internal/repositories/postgres-repository.go:25
↓ 1 callers
Function
CreateProcessService
CreateProcessService creates a new instance of ProcessService with the given repository.
internal/services/process-service.go:19
↓ 1 callers
Function
CreateRestController
(pipelineService services.PipelineService, repository repositories.ProcessRepository)
internal/controllers/rest-controller.go:22
↓ 1 callers
Function
CreateRestWorker
CreateRestWorker creates a new RestWorker with the given executor. It takes an executor.Executor as a parameter and returns a Worker.
internal/workers/rest-worker.go:15
↓ 1 callers
Method
Execute
(pipeline types.Pipeline)
internal/controllers/controller-client.go:15
↓ 1 callers
Method
GetById
(processId uuid.UUID)
internal/repositories/process-repository.go:11
↓ 1 callers
Method
Inputs
()
cmd/worker/actions/action.go:13
↓ 1 callers
Function
MapForeachBody
MapForeachBody maps a ForeachBody object to a ForeachBody object with additional fields.
internal/types/forEach.go:9
↓ 1 callers
Function
MapToForeachStep
MapToForeachStep maps a ForeachTask to a ForeachStep. Parameters: step: The ForeachTask to be mapped. Returns: ForeachStep: The mapped ForeachSt
internal/types/forEach.go:49
↓ 1 callers
Function
MapToForeachSteps
MapToForeachSteps maps a slice of ForeachTasks to a slice of ForeachSteps. Parameters: steps: The slice of ForeachTasks to be mapped. Returns: [
internal/types/forEach.go:31
↓ 1 callers
Function
MapToStep
MapToStep maps a ForeachStep to a Step. Parameters: forEachStep: The ForeachStep to be mapped. Returns: *Step: A pointer to the mapped Step.
internal/types/forEach.go:68
↓ 1 callers
Method
MarkAsDone
(types *types.Process)
internal/services/process-service.go:11
↓ 1 callers
Method
MarkAsFailed
(types *types.Process, err string)
internal/services/process-service.go:12
↓ 1 callers
Method
MarkAsStarted
(types *types.Process)
internal/services/process-service.go:9
↓ 1 callers
Method
NewFolder
NewFolder returns the concatenated path and a new UUID string, separated by a slash. Parameters: path: The base path to concatenate with the UUID s
internal/types/proces.go:65
↓ 1 callers
Function
NewProcessFromPipeline
NewProcessFromPipeline creates a new Process object from the given Pipeline object. Parameters: pipeline: The Pipeline object used to create the Pr
internal/types/proces.go:98
↓ 1 callers
Function
NewRabbitMQClient
NewRabbitMQClient creates a new RabbitMQ client based on the provided connection. It establishes a channel using the connection and returns the create
internal/queues/rabbitmq-queue.go:221
↓ 1 callers
Method
Outputs
()
cmd/worker/actions/action.go:14
↓ 1 callers
Function
RemoveContainer
RemoveContainer removes a Docker container with the specified container ID and context. Parameters: containerId: The ID of the container to be remo
internal/Container/DockerContainer.go:105
↓ 1 callers
Method
SetInt
SetInt sets the value of an integer property in the Parameters map of the Process object. Parameters: name: The name of the property to be set. va
internal/types/proces.go:75
↓ 1 callers
Method
TaskFinished
(types *types.Process)
internal/services/process-service.go:10
↓ 1 callers
Method
Validate
()
api/types/pipeline.go:10
↓ 1 callers
Method
WaitingForTask
()
internal/queues/message-queue.go:17
↓ 1 callers
Function
createQueues
createQueues creates the necessary queues based on the provided configuration. It iterates over the list of queue names in the configuration and calls
internal/queues/rabbitmq-queue.go:45
↓ 1 callers
Method
establishConnection
establishConnection establishes a connection to the RabbitMQ server using the provided credentials and creates a RabbitClient with the connection. It
internal/queues/rabbitmq-queue.go:92
↓ 1 callers
Function
executeHandler
executeHandler is a handler function that takes a controller instance as a parameter and returns a function that has a gin.Context as its parameter. T
internal/controllers/rest-controller.go:125
↓ 1 callers
Function
getActions
(c *controller)
internal/controllers/rest-controller.go:55
↓ 1 callers
Function
getByIdHandler
getByIdHandler is a handler function that retrieves a process by its ID and returns the status of the process. It takes a controller instance as a par
internal/controllers/rest-controller.go:98
↓ 1 callers
Function
processTasks
processTasks processes tasks from the message queue by receiving tasks from the tasks channel. It unmarshals each task message and calls the taskFunc
internal/services/pipeline-service.go:134
↓ 1 callers
Function
unmarshal
unmarshal unmarshals the body of an amqp.Delivery into a types.Process struct. It takes an amqp.Delivery as input parameter and returns a types.Proces
internal/executor/map-executor.go:105
↓ 1 callers
Function
unmarshalMessage
unmarshalMessage unmarshals a byte array into a pointer to a types.Process object. It returns the unmarshaled message and any error that occurred duri
internal/services/pipeline-service.go:156
↓ 1 callers
Function
watchForMessages
watchForMessages is a function that listens for messages from the message queue and processes them using the provided onSuccess, onFail, onFinish, and
internal/services/pipeline-service.go:92
Function
AddPackageToProject
()
cmd/worker/actions/dotnet/add-nuget.go:11
Function
AddProjectToSolution
()
cmd/worker/actions/dotnet/add-to-sln.go:11
Method
AddTaskAsFailed
AddTaskAsFailed addTask adds a task to the specified queue using the RabbitMQ client. It marshals the message to JSON format and publishes it to the q
internal/queues/rabbitmq-queue.go:198
Method
AddTaskAsFinished
AddTaskAsFinished adds a task to the specified queue as a finished task using the RabbitMQ client. It calls the addTask method with the configuration'
internal/queues/rabbitmq-queue.go:191
Method
AddTaskAsSuccess
AddTaskAsSuccess adds a task to the specified queue as a successful task using the RabbitMQ client. It calls the addTask method with the configuration
internal/queues/rabbitmq-queue.go:184
Method
AddTaskToQueue
AddTaskToQueue adds a task to the specified queue using the RabbitMQ client. It calls the addTask method with the configuration's QueueRunPipe queue n
internal/queues/rabbitmq-queue.go:177
Function
CheckFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-exist.go:16
Function
CreateControllerClient
CreateControllerClient creates a ControllerClient using the provided ControllerConfig.
internal/controllers/controller-client.go:22
Function
CreateDockerBuild
()
cmd/worker/actions/docker/docker-build.go:10
Function
CreateDotnetClassLibAction
()
cmd/worker/actions/dotnet/create-classlib.go:16
Function
CreateDotnetSolutionAction
()
cmd/worker/actions/dotnet/create-sln.go:16
Function
CreateFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-create.go:17
Function
CreateForEachLoop
()
cmd/worker/actions/common/for-each.go:11
Function
CreateMongoDbRepository
CreateMongoDbRepository initializes a new MongoDB repository for process entities.
internal/repositories/mongodb-repository.go:22
Method
CreateQueue
CreateQueue creates a new queue with the specified name using the RabbitMQ client. It uses the underlying RabbitClient's CreateQueue method to perform
internal/queues/rabbitmq-queue.go:63
Method
CreateQueue
CreateQueue creates a new queue with the specified name using the RabbitMQ client. It uses the underlying RabbitClient's QueueDeclare method to perfor
internal/queues/rabbitmq-queue.go:235
Function
DeleteFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-delete.go:17
Method
Execute
Execute executes the given pipeline by sending a POST request to the specified URL with the pipeline data. It returns the process ID if the execution
internal/controllers/controller-client.go:31
Method
Execute
(process types.Process)
cmd/worker/actions/action.go:16
Method
Execute
Execute executes the action by getting a string value from the `text` property of the `pipeline` parameter, logging the value, and returning the `pipe
cmd/worker/actions/others/console.go:49
Method
Execute
(message types.Process)
cmd/worker/actions/git/git-branch.go:55
Method
Execute
Execute performs the execution of the gitClone action. It clones a Git repository from the provided URL using the git.PlainClone function. The cloned
cmd/worker/actions/git/git-clone.go:64
Method
Execute
Execute receives a message of type types.Process and performs a Git commit operation. It retrieves the repository path and commit message from the mes
cmd/worker/actions/git/git-commit.go:65
Method
Execute
Execute performs the archive to file action. It takes a Process message as input, extracts the file path and archive file name properties from the mes
cmd/worker/actions/zip/zip-create.go:74
next →
1–100 of 206, ranked by callers