Skip to content

Commit

Permalink
Add license header to new files
Browse files Browse the repository at this point in the history
  • Loading branch information
epapbak committed Jan 3, 2024
1 parent c7909e2 commit 24bc7be
Show file tree
Hide file tree
Showing 8 changed files with 84 additions and 64 deletions.
28 changes: 13 additions & 15 deletions kafka/configuration.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/*
Copyright © 2020, 2023 Red Hat, Inc.
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.
*/
// Copyright 2024 Red Hat, Inc
//
// 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.

// Package broker contains data types, interfaces, and methods related to

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.18

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.19

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.20

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.21

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.18

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.19

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.20

package comment should be of the form "Package kafka ..."

Check failure on line 15 in kafka/configuration.go

View workflow job for this annotation

GitHub Actions / Linters for Go 1.21

package comment should be of the form "Package kafka ..."
// brokers that can be used to consume input messages by aggegator.
Expand Down
4 changes: 2 additions & 2 deletions kafka/configuration_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2022, 2023 Red Hat, Inc
// Copyright 2024 Red Hat, Inc
//
// 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
// 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,
Expand Down
28 changes: 13 additions & 15 deletions kafka/metrics.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/*
Copyright © 2020, 2021, 2022 Red Hat, Inc.
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.
*/
// Copyright 2024 Red Hat, Inc
//
// 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.

// This file contains the Kafka-related metrics that needs to be exposed to Prometheus
// Currently, the following metrics are exposed:
Expand Down
4 changes: 2 additions & 2 deletions kafka/metrics_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2020, 2021, 2022, 2023 Red Hat, Inc
// Copyright 2024 Red Hat, Inc
//
// 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
// 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,
Expand Down
28 changes: 13 additions & 15 deletions kafka/producer.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/*
Copyright © 2020 Red Hat, Inc.
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.
*/
// Copyright 2024 Red Hat, Inc
//
// 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.

package kafka

Expand Down
28 changes: 13 additions & 15 deletions kafka/producer_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
/*
Copyright © 2020 Red Hat, Inc.
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.
*/
// Copyright 2024 Red Hat, Inc
//
// 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.

package kafka_test

Expand Down
14 changes: 14 additions & 0 deletions kafka/scram_client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2024 Red Hat, Inc
//
// 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.

package kafka

import "github.com/xdg/scram"
Expand Down
14 changes: 14 additions & 0 deletions tests/helpers/mock_kafka.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2024 Red Hat, Inc
//
// 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.

package helpers

import (
Expand Down

0 comments on commit 24bc7be

Please sign in to comment.