-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WASM Transform Proto and Endpoints for Programmatic API (#1011)
Add endpoints for WASM transforms: - GET /v1alpha1/transforms - PUT /v1alpha1/transforms - GET /v1alpha1/transforms/{name} - DELETE /v1alpha1/transforms
- Loading branch information
1 parent
c23e021
commit fab9e0e
Showing
29 changed files
with
4,844 additions
and
76 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
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,29 @@ | ||
// Copyright 2024 Redpanda Data, Inc. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.md | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0 | ||
|
||
package errors | ||
|
||
import ( | ||
"errors" | ||
|
||
"connectrpc.com/connect" | ||
|
||
v1alpha1 "github.com/redpanda-data/console/backend/pkg/protogen/redpanda/api/dataplane/v1alpha1" | ||
) | ||
|
||
// NewRedpandaAdminAPINotConfiguredError is a standard error to return if an endpoint | ||
// requires the Redpanda Admin API to be configured, but it isn't. | ||
func NewRedpandaAdminAPINotConfiguredError() *connect.Error { | ||
return NewConnectError( | ||
connect.CodeUnimplemented, | ||
errors.New("the redpanda admin api must be configured to use this endpoint"), | ||
NewErrorInfo(v1alpha1.Reason_REASON_FEATURE_NOT_CONFIGURED.String()), | ||
NewHelp(NewHelpLinkConsoleReferenceConfig()), | ||
) | ||
} |
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
Oops, something went wrong.