MCPcopy Create free account

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

Functions206 in github.com/PiotrFerenc/task-tower

MethodExecute
Execute performs the execution of the appendContentToFile action. It appends content to a file specified by the fileName property. Parameters: mess
cmd/worker/actions/file/file-append.go:70
MethodExecute
Execute executes the contentToFile action by writing the content to a file with the provided file name. The file is created in the TmpFolder specified
cmd/worker/actions/file/file-create.go:72
MethodExecute
Execute executes the deleteFile action by deleting the specified file. Parameters: - message: The input process message. Returns: - types.Process: T
cmd/worker/actions/file/file-delete.go:50
MethodExecute
(process types.Process)
cmd/worker/actions/common/for-each.go:48
MethodExecute
Execute executes a Docker container. Parameters: process: The process that contains the required parameters for executing the container. Returns:
cmd/worker/actions/docker/docker-run.go:76
MethodExecute
Execute builds a Docker image using the provided Dockerfile content and tags. Parameters: process: The process object containing the Dockerfile con
cmd/worker/actions/docker/docker-build.go:68
MethodExecute
(process types.Process)
cmd/worker/actions/docker/docker-remove.go:40
MethodExecute
Execute The Execute() method receives a parameter of types.Message type and returns (types.Message, error).
cmd/worker/actions/math/add-numbers.go:65
MethodExecute
Execute renames a folder by moving it to a new location with a new name. Parameters: message: The original Process object. Returns: types.Proces
cmd/worker/actions/folder/folder-rename.go:72
MethodExecute
Execute executes the checkFolder action by checking if a folder with the provided folderName exists in the temporary folder. Parameters: message: T
cmd/worker/actions/folder/folder-exist.go:53
MethodExecute
Execute executes the createFolder action by creating a folder with the provided name in the temporary folder. It returns the updated process message a
cmd/worker/actions/folder/folder-create.go:64
MethodExecute
Execute performs the deletion of a folder with the provided folder name. Parameters: message: The process message containing the necessary informat
cmd/worker/actions/folder/folder-delete.go:61
MethodExecute
Execute executes the addToProject action by starting a Docker container with the specified image name, environment variables, volume bindings, and con
cmd/worker/actions/dotnet/add-nuget.go:70
MethodExecute
Execute executes a classLib process by starting a container with the specified image and environment variables. Parameters: process: The process to
cmd/worker/actions/dotnet/create-classlib.go:57
MethodExecute
Execute executes a solutionFile process by starting a container with the specified image and environment variables. Parameters: process: The proces
cmd/worker/actions/dotnet/create-sln.go:57
MethodExecute
Execute executes the addToSln action by starting a Docker container with the specified image name, environment variables, volume bindings, and context
cmd/worker/actions/dotnet/add-to-sln.go:79
MethodGetById
(processId uuid.UUID)
internal/repositories/postgres-repository.go:39
MethodGetById
GetById retrieves a process pipeline from the MongoDB repository based on the given processId. Parameters: processId: The unique identifier of the p
internal/repositories/mongodb-repository.go:84
MethodGetCategoryName
()
cmd/worker/actions/action.go:15
MethodGetCategoryName
()
cmd/worker/actions/others/console.go:24
MethodGetCategoryName
()
cmd/worker/actions/git/git-branch.go:37
MethodGetCategoryName
()
cmd/worker/actions/git/git-clone.go:37
MethodGetCategoryName
()
cmd/worker/actions/git/git-commit.go:46
MethodGetCategoryName
()
cmd/worker/actions/zip/zip-create.go:46
MethodGetCategoryName
()
cmd/worker/actions/file/file-append.go:45
MethodGetCategoryName
()
cmd/worker/actions/file/file-create.go:45
MethodGetCategoryName
()
cmd/worker/actions/file/file-delete.go:29
MethodGetCategoryName
()
cmd/worker/actions/common/for-each.go:35
MethodGetCategoryName
()
cmd/worker/actions/docker/docker-run.go:51
MethodGetCategoryName
()
cmd/worker/actions/docker/docker-build.go:42
MethodGetCategoryName
()
cmd/worker/actions/docker/docker-remove.go:26
MethodGetCategoryName
()
cmd/worker/actions/math/add-numbers.go:43
MethodGetCategoryName
()
cmd/worker/actions/folder/folder-rename.go:45
MethodGetCategoryName
()
cmd/worker/actions/folder/folder-exist.go:29
MethodGetCategoryName
()
cmd/worker/actions/folder/folder-create.go:37
MethodGetCategoryName
()
cmd/worker/actions/folder/folder-delete.go:37
MethodGetCategoryName
()
cmd/worker/actions/dotnet/add-nuget.go:55
MethodGetCategoryName
()
cmd/worker/actions/dotnet/create-classlib.go:43
MethodGetCategoryName
()
cmd/worker/actions/dotnet/create-sln.go:43
MethodGetCategoryName
()
cmd/worker/actions/dotnet/add-to-sln.go:63
MethodInputs
()
cmd/worker/actions/others/console.go:27
MethodInputs
()
cmd/worker/actions/git/git-branch.go:40
MethodInputs
()
cmd/worker/actions/git/git-clone.go:40
MethodInputs
()
cmd/worker/actions/git/git-commit.go:49
MethodInputs
()
cmd/worker/actions/zip/zip-create.go:50
MethodInputs
()
cmd/worker/actions/file/file-append.go:48
MethodInputs
()
cmd/worker/actions/file/file-create.go:48
MethodInputs
()
cmd/worker/actions/file/file-delete.go:32
MethodInputs
()
cmd/worker/actions/common/for-each.go:39
MethodInputs
()
cmd/worker/actions/docker/docker-run.go:55
MethodInputs
()
cmd/worker/actions/docker/docker-build.go:46
MethodInputs
()
cmd/worker/actions/docker/docker-remove.go:30
MethodInputs
Inputs The Inputs() method returns a slice of Property structure. The Property structure includes two fields: Name and Type, both of which are strings
cmd/worker/actions/math/add-numbers.go:51
MethodInputs
()
cmd/worker/actions/folder/folder-rename.go:49
MethodInputs
()
cmd/worker/actions/folder/folder-exist.go:33
MethodInputs
()
cmd/worker/actions/folder/folder-create.go:41
MethodInputs
()
cmd/worker/actions/folder/folder-delete.go:41
MethodInputs
()
cmd/worker/actions/dotnet/add-nuget.go:43
MethodInputs
()
cmd/worker/actions/dotnet/create-classlib.go:35
MethodInputs
()
cmd/worker/actions/dotnet/create-sln.go:35
MethodInputs
()
cmd/worker/actions/dotnet/add-to-sln.go:51
MethodLoadConfiguration
LoadConfiguration loads the configuration from the specified file and returns a Config object. The method uses Viper to read the configuration file. I
internal/configuration/yml-configuration.go:42
MethodMarkAsDone
MarkAsDone sets the status of the pipeline and its current step to "Done". It then updates the status of the pipeline in the repository.
internal/services/process-service.go:40
MethodMarkAsFailed
MarkAsFailed sets the status of the pipeline and its current step to "Fail", and updates the error message. It then updates the status of the pipeline
internal/services/process-service.go:49
MethodMarkAsStarted
MarkAsStarted saves the pipeline in the repository.
internal/services/process-service.go:26
MethodOutputs
()
cmd/worker/actions/others/console.go:33
MethodOutputs
Outputs method returns an empty list of actions.Property. It is a method of gitCreateBranch struct, which is a implementation of the Action interface.
cmd/worker/actions/git/git-branch.go:51
MethodOutputs
()
cmd/worker/actions/git/git-clone.go:46
MethodOutputs
()
cmd/worker/actions/git/git-commit.go:56
MethodOutputs
()
cmd/worker/actions/zip/zip-create.go:57
MethodOutputs
()
cmd/worker/actions/file/file-append.go:54
MethodOutputs
()
cmd/worker/actions/file/file-create.go:54
MethodOutputs
()
cmd/worker/actions/file/file-delete.go:38
MethodOutputs
()
cmd/worker/actions/common/for-each.go:44
MethodOutputs
()
cmd/worker/actions/docker/docker-run.go:60
MethodOutputs
()
cmd/worker/actions/docker/docker-build.go:52
MethodOutputs
()
cmd/worker/actions/docker/docker-remove.go:36
MethodOutputs
Outputs The Outputs() method returns a slice of Property structure. It creates a property structure for an output, 'c', of 'number' type and returns i
cmd/worker/actions/math/add-numbers.go:60
MethodOutputs
()
cmd/worker/actions/folder/folder-rename.go:56
MethodOutputs
()
cmd/worker/actions/folder/folder-exist.go:39
MethodOutputs
()
cmd/worker/actions/folder/folder-create.go:47
MethodOutputs
()
cmd/worker/actions/folder/folder-delete.go:47
MethodOutputs
()
cmd/worker/actions/dotnet/add-nuget.go:49
MethodOutputs
()
cmd/worker/actions/dotnet/create-classlib.go:40
MethodOutputs
()
cmd/worker/actions/dotnet/create-sln.go:40
MethodOutputs
()
cmd/worker/actions/dotnet/add-to-sln.go:57
FunctionRenameFolder
(config *configuration.Config)
cmd/worker/actions/folder/folder-rename.go:18
MethodRun
Run is a method that starts the server and listens for incoming requests. It takes an address and a port as parameters and returns an error if any err
internal/controllers/rest-controller.go:41
MethodRun
(pipeline *apitypes.Pipeline)
internal/services/pipeline-service.go:17
MethodRun
Run runs the pipeline by creating a new process from the provided pipeline, marking the process as started, adding the process to the queue, and retur
internal/services/pipeline-service.go:68
MethodRun
Run starts the worker by running a Gin server on the specified address and port. It takes the address and port as parameters and does not return any v
internal/workers/rest-worker.go:24
MethodSave
Save saves a pipeline to the repository. It takes a types.Process object and saves the corresponding ProcessEntity and StepEntity records in the datab
internal/repositories/postgres-repository.go:70
MethodSave
Save saves a process pipeline in the MongoDB repository. Parameters: pipeline: The process pipeline object to be saved.
internal/repositories/mongodb-repository.go:67
MethodTaskFinished
TaskFinished sets the status of the pipeline to "Processing" and its current step to "Done". It then updates the status of the pipeline in the reposit
internal/services/process-service.go:32
FunctionTestProcess
(t *testing.T)
tests/main_test.go:16
MethodUpdateStatus
UpdateStatus updates the status of a pipeline in the repository. It takes a types.Process object and updates the corresponding ProcessEntity and StepE
internal/repositories/postgres-repository.go:49
MethodUpdateStatus
UpdateStatus updates the status of a process pipeline in the MongoDB repository. Parameters: pipeline: The process pipeline object containing the u
internal/repositories/mongodb-repository.go:45
MethodWaitingForFailedTask
WaitingForFailedTask returns a channel of amqp.Delivery that receives messages from the `QueueTaskFailed` queue. It uses the `waitingForTask` method w
internal/queues/rabbitmq-queue.go:109
MethodWaitingForFailedTask
()
internal/queues/message-queue.go:14
MethodWaitingForFinishedTask
WaitingForFinishedTask returns a channel of amqp.Delivery that receives messages from the `QueueTaskFinished` queue. It uses the `waitingForTask` meth
internal/queues/rabbitmq-queue.go:131
← previousnext →101–200 of 206, ranked by callers