Integrate BACKBEAT SDK and resolve KACHING license validation
Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
3
vendor/github.com/multiformats/go-multicodec/.gitmodules
generated
vendored
Normal file
3
vendor/github.com/multiformats/go-multicodec/.gitmodules
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "multicodec"]
|
||||
path = multicodec
|
||||
url = https://github.com/multiformats/multicodec
|
||||
14
vendor/github.com/multiformats/go-multicodec/LICENSE
generated
vendored
Normal file
14
vendor/github.com/multiformats/go-multicodec/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
This library is dual-licensed under either of Apache 2.0 or MIT terms:
|
||||
|
||||
- Apache-2.0 Software License: https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
- MIT Software License: https://opensource.org/licenses/MIT
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the terms listed in this notice is distributed on
|
||||
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
|
||||
either express or implied. See each License for the specific language
|
||||
governing permissions and limitations under that License.
|
||||
|
||||
<!--- SPDX-License-Identifier: Apache-2.0 OR MIT -->
|
||||
`SPDX-License-Identifier: Apache-2.0 OR MIT`
|
||||
7
vendor/github.com/multiformats/go-multicodec/LICENSE-APACHE
generated
vendored
Normal file
7
vendor/github.com/multiformats/go-multicodec/LICENSE-APACHE
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright (c) 2020 The Contributors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
||||
21
vendor/github.com/multiformats/go-multicodec/LICENSE-MIT
generated
vendored
Normal file
21
vendor/github.com/multiformats/go-multicodec/LICENSE-MIT
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 The Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
109
vendor/github.com/multiformats/go-multicodec/README.md
generated
vendored
Normal file
109
vendor/github.com/multiformats/go-multicodec/README.md
generated
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
# go-multicodec
|
||||
|
||||
[](https://github.com/RichardLitt/standard-readme)
|
||||
|
||||
> Generated Go constants for the [multicodec table](https://github.com/multiformats/multicodec) used by the [multiformats](https://github.com/multiformats/multiformats) projects.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Install](#install)
|
||||
- [Type](#type)
|
||||
- [Usage](#usage)
|
||||
- [Importing Code constant](#importing-code-constant)
|
||||
- [Code from string](#code-from-string)
|
||||
- [Code from uint64](#code-from-uint64)
|
||||
- [Generator](#generator)
|
||||
- [With old table.csv](#with-old-tablecsv)
|
||||
- [With updated table.csv](#with-updated-tablecsv)
|
||||
- [Maintainers](#maintainers)
|
||||
- [Contribute](#contribute)
|
||||
- [License](#license)
|
||||
|
||||
## Install
|
||||
|
||||
`go-multicodec` is a standard Go module:
|
||||
|
||||
go get github.com/multiformats/go-multicodec
|
||||
|
||||
|
||||
## Type
|
||||
|
||||
`Code` describes an integer reserved in the multicodec table, defined at [multiformats/multicodec/table.csv](https://github.com/multiformats/multicodec/blob/master/table.csv).
|
||||
|
||||
```go
|
||||
type Code uint64
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Importing Code constant
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import "github.com/multiformats/go-multicodec"
|
||||
|
||||
func main() {
|
||||
code := multicodec.Sha2_256 // Code
|
||||
name := multicodec.Sha2_256.String()
|
||||
}
|
||||
```
|
||||
|
||||
The corresponding `name` value for each codec from the [multicodecs table](https://raw.githubusercontent.com/multiformats/multicodec/master/table.csv) can be accessed via its `String` method. For example, `multicodec.Sha2_256.String()` will return `sha2-256`.
|
||||
|
||||
### Code from string
|
||||
|
||||
```go
|
||||
var multicodec.Code code
|
||||
err := code.Set("libp2p-key")
|
||||
```
|
||||
|
||||
|
||||
### Code from uint64
|
||||
|
||||
```go
|
||||
rawCode := multicodec.Code(0x55)
|
||||
```
|
||||
|
||||
## Generator
|
||||
|
||||
### With old table.csv
|
||||
|
||||
To generate the constants yourself:
|
||||
|
||||
```console
|
||||
$ git clone https://github.com/multiformats/go-multicodec
|
||||
$ cd go-multicodec
|
||||
$ git submodule init && git submodule update
|
||||
$ go generate
|
||||
```
|
||||
|
||||
Note: You may need to install `stringer` via `go install golang.org/x/tools/cmd/stringer`.
|
||||
|
||||
### With updated table.csv
|
||||
|
||||
To generate the constants for the latest [table.csv](https://github.com/multiformats/multicodec/blob/master/table.csv):
|
||||
|
||||
```console
|
||||
$ git clone https://github.com/multiformats/go-multicodec
|
||||
$ cd go-multicodec
|
||||
$ git submodule init
|
||||
$ git submodule update --remote # updates ./multicodec/table.csv to upstream version
|
||||
$ go generate
|
||||
```
|
||||
|
||||
## Maintainers
|
||||
|
||||
[@mvdan](https://github.com/mvdan).
|
||||
|
||||
## Contribute
|
||||
|
||||
Contributions welcome. Please check out [the issues](https://github.com/multiformats/go-multicodec/issues).
|
||||
|
||||
Check out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
|
||||
|
||||
Small note: If editing the README, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
|
||||
|
||||
## License
|
||||
|
||||
SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
88
vendor/github.com/multiformats/go-multicodec/code.go
generated
vendored
Normal file
88
vendor/github.com/multiformats/go-multicodec/code.go
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
// Package multicodec exposes the multicodec table as Go constants.
|
||||
package multicodec
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
//go:generate go run gen.go
|
||||
//go:generate gofmt -w code_table.go
|
||||
//go:generate go run golang.org/x/tools/cmd/stringer@v0.5.0 -type=Code -linecomment
|
||||
|
||||
// Code describes an integer reserved in the multicodec table, defined at
|
||||
// github.com/multiformats/multicodec.
|
||||
type Code uint64
|
||||
|
||||
// Assert that Code implements flag.Value.
|
||||
// Requires a pointer, since Set modifies the receiver.
|
||||
//
|
||||
// Note that we don't implement encoding.TextMarshaler and encoding.TextUnmarshaler.
|
||||
// That's on purpose; even though multicodec names are stable just like the codes,
|
||||
// Go should still generally encode and decode multicodecs by their code number.
|
||||
// Many encoding libraries like xml and json default to TextMarshaler if it exists.
|
||||
//
|
||||
// Conversely, implementing flag.Value makes sense;
|
||||
// --someflag=sha1 is useful as it would often be typed by a human.
|
||||
var _ flag.Value = (*Code)(nil)
|
||||
|
||||
// Assert that Code implements fmt.Stringer without a pointer.
|
||||
var _ fmt.Stringer = Code(0)
|
||||
|
||||
// ReservedStart is the (inclusive) start of the reserved range of codes that
|
||||
// are safe to use for internal purposes.
|
||||
const ReservedStart = 0x300000
|
||||
|
||||
// ReservedEnd is the (inclusive) end of the reserved range of codes that are
|
||||
// safe to use for internal purposes.
|
||||
const ReservedEnd = 0x3FFFFF
|
||||
|
||||
// Set implements flag.Value, interpreting the input string as a multicodec and
|
||||
// setting the receiver to it.
|
||||
//
|
||||
// The input string can be the name or number for a known code. A number can be
|
||||
// in any format accepted by strconv.ParseUint with base 0, including decimal
|
||||
// and hexadecimal.
|
||||
//
|
||||
// Numbers in the reserved range 0x300000-0x3FFFFF are also accepted.
|
||||
func (c *Code) Set(text string) error {
|
||||
// Checking if the text is a valid number is cheap, so do it first.
|
||||
// It should be impossible for a string to be both a valid number and a
|
||||
// valid name, anyway.
|
||||
if n, err := strconv.ParseUint(text, 0, 64); err == nil {
|
||||
code := Code(n)
|
||||
if code >= 0x300000 && code <= 0x3FFFFF { // reserved range
|
||||
*c = code
|
||||
return nil
|
||||
}
|
||||
if _, ok := _Code_map[code]; ok { // known code
|
||||
*c = code
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// For now, checking if the text is a valid name is a linear operation,
|
||||
// so do it after.
|
||||
// Right now we have ~450 codes, so a linear search isn't too bad.
|
||||
// Consider generating a map[string]Code later on if linear search
|
||||
// starts being a problem.
|
||||
for code, name := range _Code_map {
|
||||
if name == text {
|
||||
*c = code
|
||||
return nil
|
||||
}
|
||||
}
|
||||
return fmt.Errorf("unknown multicodec: %q", text)
|
||||
}
|
||||
|
||||
// Note that KnownCodes is a function backed by a code-generated slice.
|
||||
// Later on, if the slice gets too large, we could codegen a packed form
|
||||
// and only expand to a regular slice via a sync.Once.
|
||||
// A function also makes it a bit clearer that the list should be read-only.
|
||||
|
||||
// KnownCodes returns a list of all codes registered in the multicodec table.
|
||||
// The returned slice should be treated as read-only.
|
||||
func KnownCodes() []Code {
|
||||
return knownCodes
|
||||
}
|
||||
1085
vendor/github.com/multiformats/go-multicodec/code_string.go
generated
vendored
Normal file
1085
vendor/github.com/multiformats/go-multicodec/code_string.go
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2703
vendor/github.com/multiformats/go-multicodec/code_table.go
generated
vendored
Normal file
2703
vendor/github.com/multiformats/go-multicodec/code_table.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
vendor/github.com/multiformats/go-multicodec/version.json
generated
vendored
Normal file
3
vendor/github.com/multiformats/go-multicodec/version.json
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"version": "v0.9.0"
|
||||
}
|
||||
Reference in New Issue
Block a user