func/pkg/functions
Matej Vašek 8e0b752edc
Apply linter suggestions (#2786)
* Refactor: if-elif-else => switch

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: calls to embedded fields

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Fix: add missing err checks

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: omit type where possible

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: apply De Morgan's law

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: call ReplaceAll where possible

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

* Cleanup: fix format of error messages

Signed-off-by: Matej Vašek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vašek <mvasek@redhat.com>
2025-04-15 09:43:13 +00:00
..
testdata Fix linter issues (#2420) 2024-07-09 13:48:22 +00:00
client.go Apply linter suggestions (#2786) 2025-04-15 09:43:13 +00:00
client_int_test.go Fix some linter errors in integration tests (#2608) 2024-12-04 13:36:45 +00:00
client_test.go refactor data member of the InvokeMessage to be []byte (#2733) 2025-03-06 13:45:00 +00:00
config_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
errors.go Cleanup orphaned func, new image-name calculation (#1962) 2024-02-27 10:44:20 +00:00
function.go Make build binds more similar to runtime binds (#2768) 2025-04-03 10:19:05 +00:00
function_envs.go src: Envs type (#1701) 2023-04-28 16:45:51 +00:00
function_envs_unit_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
function_git.go fix: replace git-urls with patched fork (#2105) 2023-12-12 11:01:27 +00:00
function_git_unit_test.go feat: host-based scaffolded function runner (#1733) 2023-05-24 21:26:25 +00:00
function_labels.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
function_labels_unit_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
function_migrations.go Fixed PersistentVolumeClaim spelling error (#2069) 2023-11-07 21:28:46 +00:00
function_migrations_unit_test.go feat: host-based scaffolded function runner (#1733) 2023-05-24 21:26:25 +00:00
function_options.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
function_options_unit_test.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
function_test.go func write: write localsettings to .func/local.yaml (#2121) 2024-01-19 08:56:06 +00:00
function_unit_test.go removes redundant default labels and annotations (#2746) 2025-03-24 11:42:57 +00:00
function_volumes.go Fixed PersistentVolumeClaim spelling error (#2069) 2023-11-07 21:28:46 +00:00
function_volumes_unit_test.go Fixed PersistentVolumeClaim spelling error (#2069) 2023-11-07 21:28:46 +00:00
instances.go fix: test and namespace isolation (#2187) 2024-05-17 08:25:46 +00:00
instances_test.go fix: test and namespace isolation (#2187) 2024-05-17 08:25:46 +00:00
invoke.go Refactor if-elif-else => switch (#2785) 2025-04-14 12:02:16 +00:00
job.go feat: enable scaffolding for host builds (#1750) 2023-06-06 20:37:26 +00:00
job_test.go feat: host-based scaffolded function runner (#1733) 2023-05-24 21:26:25 +00:00
repositories.go fix: HOME with different permissions (#2361) 2024-09-09 07:20:04 +00:00
repositories_test.go Fix test failures in OCP prow CI (#2503) 2024-09-16 06:57:35 +00:00
repository.go Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00:00
repository_test.go src: Envs type (#1701) 2023-04-28 16:45:51 +00:00
runner.go Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00:00
runner_test.go Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00:00
template.go Apply linter suggestions (#2786) 2025-04-15 09:43:13 +00:00
templates.go src: errors cleanup (#1783) 2023-06-06 20:15:26 +00:00
templates_embedded.go chore: refactor repository layout (#1554) 2023-02-15 08:46:52 +00:00
templates_test.go Python Middleware v2 Scaffolding (#2685) 2025-04-02 10:44:05 +00:00