modulepackage
0.0.0-20240923172513-9eefff77361c
Repository: https://github.com/deepsourcecorp/artifacts.git
Documentation: pkg.go.dev
# README
Contracts
Contract definitions for services in DeepSource.
Error codes
Level | Code |
---|---|
ERROR | 0 |
WARNING | 1 |
Running tests
- Install uber/prototool and make sure it's available in your path.
- Run
make test
.
Beacon
- To generate golang stubs
brew install protobuf
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
protoc -I=./ --go_out=plugins=grpc:./ ./beacon.proto
# Functions
Returns bearer token that is used to authenticate while interacting with the k8s REST API Utilized by janus and atlas.
Get a HTTP client for interacting with k8s REST API.
Gets the duration interval of retries based on fibonacci series.
Utility function to retry any routine.
SetupRMQConnection sets up the RabbitMQ connection and channels.
Utility to do a rolling restart deployment of a kubernetes pod.
Watches the broker config for any "WRITE" events Exits with status code 1 after any changes to config.
# Variables
No description provided by the author
# Structs
AnalysisEventsLog represents the struct that contains the fields that need to be logged for tracking analysis pipeline's performance.