MCPcopy Create free account

hub / github.com/PiotrFerenc/task-tower / functions

Functions206 in github.com/PiotrFerenc/task-tower

↓ 34 callersMethodGetStringFrom
(message *types.Process)
cmd/worker/actions/action.go:38
↓ 13 callersMethodSetString
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 callersMethodClose
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 callersFunctionStartContainer
StartContainer starts a Docker container with the specified image name, environment variables, volume bindings, and context. Parameters: imageName:
internal/Container/DockerContainer.go:25
↓ 4 callersMethodaddTask
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 callersMethodwaitingForTask
`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 callersMethodGetInternalName
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 callersFunctionProcessTasks
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 callersMethodRun
(address, port string)
internal/workers/worker.go:4
↓ 3 callersMethodSave
(pipeline types.Process)
internal/repositories/process-repository.go:10
↓ 3 callersMethodUpdateStatus
(pipeline types.Process)
internal/repositories/process-repository.go:9
↓ 2 callersMethodAddTaskToQueue
(message types.Process)
internal/queues/message-queue.go:10
↓ 2 callersFunctionCreateActionMap
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 callersMethodCreateQueue
(name string)
internal/queues/message-queue.go:18
↓ 2 callersFunctionCreateRabbitMqMessageQueue
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 callersFunctionCreateYmlConfiguration
()
internal/configuration/yml-configuration.go:12
↓ 2 callersMethodGetIntFrom
(message *types.Process)
cmd/worker/actions/action.go:31
↓ 2 callersMethodLoadConfiguration
()
internal/configuration/configuration.go:37
↓ 2 callersMethodRun
(address, port string)
internal/controllers/controller.go:4
↓ 2 callersFunctionaddToQueue
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 callersFunctiongetPropertyNames
(properties []actions.Property)
internal/controllers/rest-controller.go:70
↓ 1 callersMethodAddTaskAsFailed
(error error, message types.Process)
internal/queues/message-queue.go:11
↓ 1 callersMethodAddTaskAsFinished
(message types.Process)
internal/queues/message-queue.go:13
↓ 1 callersMethodAddTaskAsSuccess
(message types.Process)
internal/queues/message-queue.go:12
↓ 1 callersFunctionBuildImage
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 callersMethodConnect
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 callersMethodConnect
()
internal/queues/message-queue.go:9
↓ 1 callersFunctionConnectRabbitMQ
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 callersFunctionCreateAddNumbers
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 callersFunctionCreateAppendContentToFile
(config *configuration.Config)
cmd/worker/actions/file/file-append.go:18
↓ 1 callersFunctionCreateArchiveToFile
(config *configuration.Config)
cmd/worker/actions/zip/zip-create.go:20
↓ 1 callersFunctionCreateConsoleAction
()
cmd/worker/actions/others/console.go:13
↓ 1 callersFunctionCreateContentToFile
(config *configuration.Config)
cmd/worker/actions/file/file-create.go:18
↓ 1 callersFunctionCreateDeleteFileAction
(config *configuration.Config)
cmd/worker/actions/file/file-delete.go:16
↓ 1 callersFunctionCreateDockerRemove
()
cmd/worker/actions/docker/docker-remove.go:14
↓ 1 callersFunctionCreateDockerRun
()
cmd/worker/actions/docker/docker-run.go:11
↓ 1 callersFunctionCreateGitClone
(config *configuration.Config)
cmd/worker/actions/git/git-clone.go:17
↓ 1 callersFunctionCreateGitCommit
(config *configuration.Config)
cmd/worker/actions/git/git-commit.go:19
↓ 1 callersFunctionCreateGitCreateBranch
(config *configuration.Config)
cmd/worker/actions/git/git-branch.go:17
↓ 1 callersFunctionCreateMapExecutor
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 callersFunctionCreateOnFailFunc
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 callersFunctionCreateOnFinishFunc
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 callersFunctionCreateOnSuccessFunc
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 callersFunctionCreatePipelineService
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 callersFunctionCreatePostgresRepository
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 callersFunctionCreateProcessService
CreateProcessService creates a new instance of ProcessService with the given repository.
internal/services/process-service.go:19
↓ 1 callersFunctionCreateRestController
(pipelineService services.PipelineService, repository repositories.ProcessRepository)
internal/controllers/rest-controller.go:22
↓ 1 callersFunctionCreateRestWorker
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 callersMethodExecute
(pipeline types.Pipeline)
internal/controllers/controller-client.go:15
↓ 1 callersMethodGetById
(processId uuid.UUID)
internal/repositories/process-repository.go:11
↓ 1 callersMethodInputs
()
cmd/worker/actions/action.go:13
↓ 1 callersFunctionMapForeachBody
MapForeachBody maps a ForeachBody object to a ForeachBody object with additional fields.
internal/types/forEach.go:9
↓ 1 callersFunctionMapToForeachStep
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 callersFunctionMapToForeachSteps
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 callersFunctionMapToStep
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 callersMethodMarkAsDone
(types *types.Process)
internal/services/process-service.go:11
↓ 1 callersMethodMarkAsFailed
(types *types.Process, err string)
internal/services/process-service.go:12
↓ 1 callersMethodMarkAsStarted
(types *types.Process)
internal/services/process-service.go:9
↓ 1 callersMethodNewFolder
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 callersFunctionNewProcessFromPipeline
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 callersFunctionNewRabbitMQClient
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 callersMethodOutputs
()
cmd/worker/actions/action.go:14
↓ 1 callersFunctionRemoveContainer
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 callersMethodSetInt
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 callersMethodTaskFinished
(types *types.Process)
internal/services/process-service.go:10
↓ 1 callersMethodValidate
()
api/types/pipeline.go:10
↓ 1 callersMethodWaitingForTask
()
internal/queues/message-queue.go:17
↓ 1 callersFunctioncreateQueues
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 callersMethodestablishConnection
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 callersFunctionexecuteHandler
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 callersFunctiongetActions
(c *controller)
internal/controllers/rest-controller.go:55
↓ 1 callersFunctiongetByIdHandler
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 callersFunctionprocessTasks
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 callersFunctionunmarshal
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 callersFunctionunmarshalMessage
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 callersFunctionwatchForMessages
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
FunctionAddPackageToProject
()
cmd/worker/actions/dotnet/add-nuget.go:11
FunctionAddProjectToSolution
()
cmd/worker/actions/dotnet/add-to-sln.go:11
MethodAddTaskAsFailed
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
MethodAddTaskAsFinished
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
MethodAddTaskAsSuccess
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
MethodAddTaskToQueue
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
FunctionCheckFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-exist.go:16
FunctionCreateControllerClient
CreateControllerClient creates a ControllerClient using the provided ControllerConfig.
internal/controllers/controller-client.go:22
FunctionCreateDockerBuild
()
cmd/worker/actions/docker/docker-build.go:10
FunctionCreateDotnetClassLibAction
()
cmd/worker/actions/dotnet/create-classlib.go:16
FunctionCreateDotnetSolutionAction
()
cmd/worker/actions/dotnet/create-sln.go:16
FunctionCreateFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-create.go:17
FunctionCreateForEachLoop
()
cmd/worker/actions/common/for-each.go:11
FunctionCreateMongoDbRepository
CreateMongoDbRepository initializes a new MongoDB repository for process entities.
internal/repositories/mongodb-repository.go:22
MethodCreateQueue
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
MethodCreateQueue
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
FunctionDeleteFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-delete.go:17
MethodExecute
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
MethodExecute
(process types.Process)
cmd/worker/actions/action.go:16
MethodExecute
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
MethodExecute
(message types.Process)
cmd/worker/actions/git/git-branch.go:55
MethodExecute
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
MethodExecute
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
MethodExecute
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