Skip to content

Commit becdc45

Browse files
committed
chore: changed module to public & added REUSE
1 parent 1f518cd commit becdc45

File tree

12 files changed

+28
-47
lines changed

12 files changed

+28
-47
lines changed

.reuse/dep5

-29
This file was deleted.

REUSE.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version = 1
2+
SPDX-PackageName = "ui-backend"
3+
SPDX-PackageDownloadLocation = "https://github.com/openmcp-project/ui-backend"
4+
SPDX-PackageComment = "The code in this project may include calls to APIs (\"API Calls\") of\n SAP or third-party products or services developed outside of this project\n (\"External Products\").\n \"APIs\" means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products, or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project's code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls."
5+
6+
[[annotations]]
7+
path = "**"
8+
precedence = "closest"
9+
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and ui-backend contributors"
10+
SPDX-License-Identifier = "Apache-2.0"

cmd/server/main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"os"
88
"time"
99

10-
"github.tools.sap/cola/ui-backend/internal/utils"
11-
"github.tools.sap/cola/ui-backend/pkg/k8s"
10+
"github.com/openmcp-project/ui-backend/internal/utils"
11+
"github.com/openmcp-project/ui-backend/pkg/k8s"
1212
"k8s.io/client-go/tools/clientcmd"
1313

14-
"github.tools.sap/cola/ui-backend/internal/server"
14+
"github.com/openmcp-project/ui-backend/internal/server"
1515
)
1616

1717
func main() {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.tools.sap/cola/ui-backend
1+
module github.com/openmcp-project/ui-backend
22

33
go 1.23.0
44

internal/server/handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log/slog"
66
"net/http"
77

8-
"github.tools.sap/cola/ui-backend/pkg/k8s"
8+
"github.com/openmcp-project/ui-backend/pkg/k8s"
99
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
1010
"k8s.io/apimachinery/pkg/runtime"
1111
utilruntime "k8s.io/apimachinery/pkg/util/runtime"

internal/server/handlerBtpSO.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"log/slog"
77
"net/http"
88

9-
"github.tools.sap/cola/ui-backend/internal/utils"
10-
"github.tools.sap/cola/ui-backend/pkg/k8s"
11-
"github.tools.sap/cola/ui-backend/pkg/openmcp"
9+
"github.com/openmcp-project/ui-backend/internal/utils"
10+
"github.com/openmcp-project/ui-backend/pkg/k8s"
11+
"github.com/openmcp-project/ui-backend/pkg/openmcp"
1212
)
1313

1414
var (

internal/server/handlerCategory.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"log/slog"
77
"net/http"
88

9-
"github.tools.sap/cola/ui-backend/internal/utils"
10-
"github.tools.sap/cola/ui-backend/pkg/k8s"
11-
"github.tools.sap/cola/ui-backend/pkg/openmcp"
9+
"github.com/openmcp-project/ui-backend/internal/utils"
10+
"github.com/openmcp-project/ui-backend/pkg/k8s"
11+
"github.com/openmcp-project/ui-backend/pkg/openmcp"
1212
)
1313

1414
func managedHandler(s *shared, req *http.Request, res *response) (*response, *HttpError) {

internal/server/handlerMain.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"net/url"
1010
"strconv"
1111

12-
"github.tools.sap/cola/ui-backend/internal/utils"
13-
"github.tools.sap/cola/ui-backend/pkg/k8s"
14-
"github.tools.sap/cola/ui-backend/pkg/openmcp"
12+
"github.com/openmcp-project/ui-backend/internal/utils"
13+
"github.com/openmcp-project/ui-backend/pkg/k8s"
14+
"github.com/openmcp-project/ui-backend/pkg/openmcp"
1515
)
1616

1717
const (

internal/server/handlerWellKnownKubeconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"log/slog"
55
"net/http"
66

7-
"github.tools.sap/cola/ui-backend/internal/utils"
7+
"github.com/openmcp-project/ui-backend/internal/utils"
88
"gopkg.in/yaml.v3"
99
)
1010

internal/server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package server
33
import (
44
"net/http"
55

6-
"github.tools.sap/cola/ui-backend/pkg/k8s"
6+
"github.com/openmcp-project/ui-backend/pkg/k8s"
77
)
88

99
func NewMiddleware(theCrateKube k8s.Kube, theDownstreamKube k8s.Kube) *http.ServeMux {

internal/utils/kubeconfig.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99

1010
"github.com/fsnotify/fsnotify"
11-
"github.tools.sap/cola/ui-backend/pkg/k8s"
11+
"github.com/openmcp-project/ui-backend/pkg/k8s"
1212
)
1313

1414
type watchedKubeconfig struct {

pkg/openmcp/controlplane.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log/slog"
66

7-
"github.tools.sap/cola/ui-backend/pkg/k8s"
7+
"github.com/openmcp-project/ui-backend/pkg/k8s"
88
)
99

1010
func GetControlPlaneKubeconfig(kube k8s.Kube, projectName, workspaceName, controlPlaneName, crateToken string, crateKubeconfig k8s.KubeConfig) (k8s.KubeConfig, error) {

0 commit comments

Comments
 (0)