Skip to content

Commit 8a38616

Browse files
authored
remove deprecated aliases (#12992)
Removes: - configauth.Authentication use configauth.Config instead - extensionauthtest.NewErrorClient use extensionauthtest.NewErr instead --------- Signed-off-by: Alex Boten <[email protected]>
1 parent c7eff7c commit 8a38616

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver)
7+
component: configauth
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: "Removes deprecated `configauth.Authentication` and `extensionauthtest.NewErrorClient`"
11+
12+
# One or more tracking issues or pull requests related to the change
13+
issues: [12992]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
The following have been removed:
20+
- `configauth.Authentication` use `configauth.Config` instead
21+
- `extensionauthtest.NewErrorClient` use `extensionauthtest.NewErr` instead
22+
23+
# Optional: The change log or logs in which this entry should be included.
24+
# e.g. '[user]' or '[user, api]'
25+
# Include 'user' if the change is relevant to end users.
26+
# Include 'api' if there is a change to a library API.
27+
# Default: '[user]'
28+
change_logs: []

config/configauth/configauth.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ var (
2222
errNotServer = errors.New("requested authenticator is not a server authenticator")
2323
)
2424

25-
// Deprecated: [v0.125.0] Use Config instead.
26-
type Authentication = Config
27-
2825
// Config defines the auth settings for the receiver.
2926
type Config struct {
3027
// AuthenticatorID specifies the name of the extension to use in order to authenticate the incoming data point.

extension/extensionauth/extensionauthtest/err.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ type errClient struct {
2828
extensionauth.ServerAuthenticateFunc
2929
}
3030

31-
// Deprecated: [v0.125.0] Use NewErr.
32-
var NewErrorClient = NewErr
33-
3431
// NewErr returns a new [extension.Extension] that implements all
3532
// extensionauth interface and always returns an error.
3633
func NewErr(err error) extension.Extension {

0 commit comments

Comments
 (0)