Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • asapo/asapo
  • joao.alvim/asapo
  • philipp.middendorf/asapo
  • stefan.dietrich/asapo
4 results
Show changes
Showing
with 280 additions and 132 deletions
# Contributing
Contributions are welcome! Before submitting a merge request, do the followings:
- Run `pre-commit run -a` to make sure that all files are correctly formated.
For more information on architecture decisions made for the development of `ASAP::O`,
check the [ADRs](docs/contributing/architecture/decisions/README.md) (Architecture
Decision Records).
......@@ -39,4 +39,3 @@ libcurl - https://curl.haxx.se/ - MIT-like license - https://curl.haxx.se/docs/c
Remarks
========
gcc compiled binaries fall into the GCC Runtime Library Exception - https://www.gnu.org/licenses/gcc-exception.html
Copyright (c) 2021 Deutsches Elektronen-Synchrotron (DESY)
MIT License
Copyright (c) 2021-2024 Deutsches Elektronen-Synchrotron (DESY)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
### Producer Protocol
| Release | used by client | Supported by server | Status |
| ------------ | ------------------- | -------------------- | ---------------- |
| v0.4 | 21.09.0 - 21.09.0 | 21.09.0 - 21.09.0 | Current version |
| v0.3 | 21.06.0 - 21.06.0 | 21.06.0 - 21.09.0 | Deprecates from 01.09.2022 |
| v0.2 | 21.03.2 - 21.03.2 | 21.03.2 - 21.09.0 | Deprecates from 01.07.2022 |
| v0.1 | 21.03.0 - 21.03.1 | 21.03.0 - 21.09.0 | Deprecates from 01.06.2022 |
| v0.7 | 24.11.0 - 24.11.0 | 24.11.0 - 24.11.0 | Current version |
| v0.6 | 21.12.0 - 22.10.0 | 22.03.0 - 24.11.0 | Deprecates from 01.03.2025 |
| v0.5 | 21.12.0 - 21.12.0 | 21.12.0 - 22.03.0 | Deprecates from 01.03.2023 |
| v0.4 | 21.09.0 - 21.09.0 | 21.09.0 - 22.03.0 | Deprecates from 01.12.2022 |
| v0.3 | 21.06.0 - 21.06.0 | 21.06.0 - 22.03.0 | Deprecates from 01.09.2022 |
| v0.2 | 21.03.2 - 21.03.2 | 21.03.2 - 22.03.0 | Deprecates from 01.07.2022 |
| v0.1 | 21.03.0 - 21.03.1 | 21.03.0 - 22.03.0 | Deprecates from 01.06.2022 |
### Consumer Protocol
| Release | used by client | Supported by server | Status |
| ------------ | ------------------- | -------------------- | ---------------- |
| v0.4 | 21.06.0 - 21.09.0 | 21.06.0 - 21.09.0 | Current version |
| v0.3 | 21.03.3 - 21.03.3 | 21.03.3 - 21.09.0 | Deprecates from 01.07.2022 |
| v0.2 | 21.03.2 - 21.03.2 | 21.03.2 - 21.09.0 | Deprecates from 01.06.2022 |
| v0.1 | 21.03.0 - 21.03.1 | 21.03.0 - 21.09.0 | Deprecates from 01.06.2022 |
| v0.7 | 24.11.0 - 24.11.0 | 24.11.0 - 24.11.0 | Current version |
| v0.6 | 21.12.0 - 22.10.0 | 22.03.0 - 24.11.0 | Deprecates from 01.03.2025 |
| v0.5 | 21.12.0 - 21.12.0 | 21.12.0 - 22.03.0 | Deprecates from 01.03.2023 |
| v0.4 | 21.06.0 - 21.09.0 | 21.06.0 - 22.03.0 | Deprecates from 01.12.2022 |
| v0.3 | 21.03.3 - 21.03.3 | 21.03.3 - 22.03.0 | Deprecates from 01.07.2022 |
| v0.2 | 21.03.2 - 21.03.2 | 21.03.2 - 22.03.0 | Deprecates from 01.06.2022 |
| v0.1 | 21.03.0 - 21.03.1 | 21.03.0 - 22.03.0 | Deprecates from 01.06.2022 |
This diff is collapsed.
# Routine Tasks
This file lists maintenance tasks that must be performed regularly.
- Update versions of tools run by `pre-commit`
- Command: `pre-commit autoupdate`
- Last execution: 20/11/2024
This diff is collapsed.
......@@ -3,6 +3,7 @@ package cli
import (
"bytes"
"testing"
"github.com/stretchr/testify/assert"
)
......@@ -10,7 +11,7 @@ var CommandTests = []struct {
cmd command
answer string
}{
{command{"token", []string{"-secret", "secret_file","-types","read","-endpoint","bla", "beamtime"}}, "secret"},
{command{"token", []string{"-secret", "secret_file", "-types", "read", "-endpoint", "bla", "beamtime"}}, "secret"},
{command{"dummy", []string{"description"}}, "wrong"},
}
......
This diff is collapsed.
This diff is collapsed.
......@@ -4,8 +4,9 @@ import (
"asapo_common/structs"
"asapo_common/utils"
"encoding/json"
"github.com/rs/xid"
"time"
"github.com/rs/xid"
)
type Auth struct {
......
......@@ -25,7 +25,7 @@ func (cmd *command) description(d string) bool {
}
func (cmd *command) errBadOptions(err string) error {
return errors.New(ProgramName + " " + cmd.name + ": " + err + "\nType '" +os.Args[0] +" " + cmd.name + " -help'")
return errors.New(ProgramName + " " + cmd.name + ": " + err + "\nType '" + os.Args[0] + " " + cmd.name + " -help'")
}
// createDefaultFlagset creates new flagset and adds default help behaviour.
......