Skip to content

Commit

Permalink
Use new benthos path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffail committed May 29, 2024
1 parent 46322e0 commit 9a212ee
Show file tree
Hide file tree
Showing 289 changed files with 357 additions and 355 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ linters-settings:
- name: superfluous-else
errcheck:
exclude-functions:
- (*github.com/benthosdev/benthos/v4/internal/batch.Error).Failed
- (*github.com/benthosdev/benthos/v4/public/service.BatchError).Failed
- (*github.com/redpanda-data/benthos/v4/internal/batch.Error).Failed
- (*github.com/redpanda-data/benthos/v4/public/service.BatchError).Failed
govet:
enable-all: true
disable:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ all: $(APPS)

install: $(APPS)
@install -d $(INSTALL_DIR)
@rm -f $(INSTALL_DIR)/benthos
@rm -f $(INSTALL_DIR)/redpanda-connect
@cp $(PATHINSTBIN)/* $(INSTALL_DIR)/

deps:
Expand Down
2 changes: 1 addition & 1 deletion cmd/redpanda-connect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log/slog"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/kafka"

Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp09/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

amqp "github.com/rabbitmq/amqp091-go"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func amqp09InputSpec() *service.ConfigSpec {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp09/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func doSetupAndAssertions(setQueueDeclareAutoDelete bool, t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp09/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

amqp "github.com/rabbitmq/amqp091-go"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func amqp09OutputSpec() *service.ConfigSpec {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp1/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/Azure/go-amqp"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp1/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"github.com/Azure/go-amqp"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

//go:embed input_description.adoc
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/amqp1/integration_service_bus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func TestIntegrationAzureServiceBus(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/amqp1/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func TestIntegrationAMQP1(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/amqp1/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/Azure/go-amqp"

"github.com/benthosdev/benthos/v4/public/bloblang"
"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/bloblang"
"github.com/redpanda-data/benthos/v4/public/service"
)

func amqp1OutputSpec() *service.ConfigSpec {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/avro/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/linkedin/goavro/v2"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func avroConfigSpec() *service.ConfigSpec {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/avro/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func TestAvroBasic(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/avro/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/linkedin/goavro/v2"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/awk/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/benhoyt/goawk/interp"
"github.com/benhoyt/goawk/parser"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

var varInvalidRegexp *regexp.Regexp
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/awk/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func testAwk(confStr string, args ...any) (service.Processor, error) {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/cache_dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/cache_dynamodb_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func createTable(ctx context.Context, t testing.TB, dynamoPort, id string) error {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/cache_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/s3/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/config/config.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package config

import "github.com/benthosdev/benthos/v4/public/service"
import "github.com/redpanda-data/benthos/v4/public/service"

// SessionFields defines a re-usable set of config fields for an AWS session
// that is compatible with the public service APIs and avoids importing the full
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/input_kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/gofrs/uuid"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/input_kinesis_checkpointer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/dynamodb"
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

// Common errors that might occur throughout checkpointing.
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/input_kinesis_record_batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/Jeffail/checkpoint"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

type awsKinesisRecordBatcher struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/input_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/sqs"
sqstypes "github.com/aws/aws-sdk-go-v2/service/sqs/types"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/benthosdev/benthos/v4/public/service/codec"
"github.com/redpanda-data/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service/codec"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/input_sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/Jeffail/shutdown"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/input_sqs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

type mockSqsInput struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/integration_kinesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/kinesis"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func createKinesisShards(ctx context.Context, t testing.TB, awsPort, id string, numShards int32) ([]string, error) {
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/integration_s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
sqstypes "github.com/aws/aws-sdk-go-v2/service/sqs/types"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"

_ "github.com/benthosdev/benthos/v4/public/components/pure"
_ "github.com/redpanda-data/benthos/v4/public/components/pure"
)

func createBucket(ctx context.Context, s3Port, bucket string) error {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/integration_sqs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"

_ "github.com/redpanda-data/connect/v4/public/components/pure"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service/integration"

_ "github.com/redpanda-data/connect/v4/public/components/pure"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/metrics_cloudwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/cloudwatch"
"github.com/aws/aws-sdk-go-v2/service/cloudwatch/types"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/dynamodb/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
"github.com/redpanda-data/connect/v4/internal/retries"
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_dynamodb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

type mockDynamoDB struct {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/kinesis/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
"github.com/redpanda-data/connect/v4/internal/retries"
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_kinesis_firehose.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/aws/aws-sdk-go-v2/service/firehose/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
"github.com/redpanda-data/connect/v4/internal/retries"
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_kinesis_firehose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cenkalti/backoff/v4"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

type mockKinesisFirehose struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/output_kinesis_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/benthosdev/benthos/v4/public/service/integration"
"github.com/redpanda-data/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service/integration"
)

func TestKinesisIntegration(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_kinesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

type mockKinesis struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/output_s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/s3"
"github.com/aws/aws-sdk-go-v2/service/s3/types"

"github.com/benthosdev/benthos/v4/public/bloblang"
"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/bloblang"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/output_sns.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/sns"
"github.com/aws/aws-sdk-go-v2/service/sns/types"

"github.com/benthosdev/benthos/v4/public/bloblang"
"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/bloblang"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/impl/aws/output_sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
"github.com/cenkalti/backoff/v4"

"github.com/benthosdev/benthos/v4/public/bloblang"
"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/bloblang"
"github.com/redpanda-data/benthos/v4/public/service"

"github.com/redpanda-data/connect/v4/internal/impl/aws/config"
"github.com/redpanda-data/connect/v4/internal/retries"
Expand Down
2 changes: 1 addition & 1 deletion internal/impl/aws/output_sqs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/benthosdev/benthos/v4/public/service"
"github.com/redpanda-data/benthos/v4/public/service"
)

func TestSQSHeaderCheck(t *testing.T) {
Expand Down
Loading

0 comments on commit 9a212ee

Please sign in to comment.