This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
forked from raystack/dex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: list the topic and dates for a dlq-bucket (#64)
* feat: list the topic and dates for a dlq-bucket * feat: remove importing models from entropy * chore: fix linting in previous files * test: add a handler test * lint: added exclusion rule for generated method * test: add more handler tests * chore: go version fix * chore: add a constant * fix: fix prefixing issue * fix: review comments * refactor: take interface on routes to test it later * refactor: changed payload type * refactor: naming of strcut * fix: revert back swagger --------- Co-authored-by: Stewart Jingga <[email protected]>
- Loading branch information
1 parent
2917ddf
commit c1f98ef
Showing
26 changed files
with
1,338 additions
and
674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,4 +140,4 @@ issues: | |
- forbidigo | ||
- contextcheck | ||
severity: | ||
default-severity: error | ||
default-severity: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,10 @@ generate-mocks: | |
@mockery --srcpkg=buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/siren/v1beta1/sirenv1beta1grpc --name=SirenServiceClient | ||
@mockery --srcpkg=buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/shield/v1beta1/shieldv1beta1grpc --name=ShieldServiceClient | ||
@mockery --srcpkg=buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/optimus/core/v1beta1/corev1beta1grpc --name=JobSpecificationServiceClient | ||
@mockery --srcpkg=buf.build/gen/go/gotocompany/proton/grpc/go/gotocompany/entropy/v1beta1/entropyv1beta1grpc --name=ResourceServiceClient | ||
@mockery --srcpkg=./internal/server/gcs --name=BlobStorageClient | ||
@mockery --srcpkg=./internal/server/gcs --name=BlobObjectClient | ||
@mockery --srcpkg=./internal/server/gcs --name=ObjectIterator | ||
|
||
clean: tidy | ||
@echo "Cleaning up build directories..." | ||
|
@@ -64,3 +68,4 @@ download: | |
setup: | ||
@go install github.com/vektra/mockery/[email protected] | ||
@go install mvdan.cc/[email protected] | ||
@go install github.com/daixiang0/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
package entropy | ||
|
||
import "time" | ||
|
||
type Config struct { | ||
// Stopped flag when set forces the firehose to be stopped on next sync. | ||
Stopped bool `json:"stopped"` | ||
|
||
// StopTime can be set to schedule the firehose to be stopped at given time. | ||
StopTime *time.Time `json:"stop_time,omitempty"` | ||
|
||
// Replicas is the number of firehose instances to run. | ||
Replicas int `json:"replicas"` | ||
|
||
// Namespace is the target namespace where firehose should be deployed. | ||
// Inherits from driver config. | ||
Namespace string `json:"namespace,omitempty"` | ||
|
||
// DeploymentID will be used as the release-name for the deployment. | ||
// Must be shorter than 53 chars if set. If not set, one will be generated | ||
// automatically. | ||
DeploymentID string `json:"deployment_id,omitempty"` | ||
|
||
// EnvVariables contains all the firehose environment config values. | ||
EnvVariables map[string]string `json:"env_variables,omitempty"` | ||
|
||
// ResetOffset represents the value to which kafka consumer offset was set to | ||
ResetOffset string `json:"reset_offset,omitempty"` | ||
|
||
Limits UsageSpec `json:"limits,omitempty"` | ||
Requests UsageSpec `json:"requests,omitempty"` | ||
Telegraf *Telegraf `json:"telegraf,omitempty"` | ||
ChartValues *ChartValues `json:"chart_values,omitempty"` | ||
InitContainer InitContainer `json:"init_container,omitempty"` | ||
} | ||
|
||
type UsageSpec struct { | ||
CPU string `json:"cpu,omitempty" validate:"required"` | ||
Memory string `json:"memory,omitempty" validate:"required"` | ||
} | ||
|
||
type InitContainer struct { | ||
Enabled bool `json:"enabled"` | ||
|
||
Args []string `json:"args"` | ||
Command []string `json:"command"` | ||
|
||
Repository string `json:"repository"` | ||
ImageTag string `json:"image_tag"` | ||
PullPolicy string `json:"pull_policy"` | ||
} | ||
|
||
type Telegraf struct { | ||
Enabled bool `json:"enabled,omitempty"` | ||
Image map[string]any `json:"image,omitempty"` | ||
Config TelegrafConf `json:"config,omitempty"` | ||
} | ||
|
||
type TelegrafConf struct { | ||
Output map[string]any `json:"output"` | ||
AdditionalGlobalTags map[string]string `json:"additional_global_tags"` | ||
} | ||
|
||
type ChartValues struct { | ||
ImageTag string `json:"image_tag" validate:"required"` | ||
ChartVersion string `json:"chart_version" validate:"required"` | ||
ImagePullPolicy string `json:"image_pull_policy" validate:"required"` | ||
} | ||
|
||
type ScaleParams struct { | ||
Replicas int `json:"replicas"` | ||
} | ||
|
||
type StartParams struct { | ||
StopTime *time.Time `json:"stop_time"` | ||
} | ||
|
||
type ResetParams struct { | ||
To string `json:"to"` | ||
Datetime string `json:"datetime"` | ||
} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.