omni/internal/backend/grpc/export_test.go
Utku Ozdemir 5057ba92cb
Some checks failed
default / default (push) Has been cancelled
default / e2e-backups (push) Has been cancelled
default / e2e-forced-removal (push) Has been cancelled
default / e2e-scaling (push) Has been cancelled
default / e2e-short (push) Has been cancelled
default / e2e-short-secureboot (push) Has been cancelled
default / e2e-templates (push) Has been cancelled
default / e2e-upgrades (push) Has been cancelled
default / e2e-workload-proxy (push) Has been cancelled
chore: rekres, bump deps, satisfy linters, fix generated test headers
- The license headers in the generated test sources via `mockgen` were getting commented-out after `make generate` was run.
  Fix this by replacing repeated double-slashes `// //` via a single double-slash `//`.
- Rekres, `make generate` and `make generate-frontend`.
- Bump Go deps.
- Fix linting errors to satisfy new rules in golangci-lint `v2.1.1`.

Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>
2025-04-22 13:00:20 +02:00

29 lines
688 B
Go

// Copyright (c) 2025 Sidero Labs, Inc.
//
// Use of this software is governed by the Business Source License
// included in the LICENSE file.
package grpc
import (
"github.com/cosi-project/runtime/pkg/state"
"go.uber.org/zap"
"github.com/siderolabs/omni/internal/backend/imagefactory"
)
type ManagementServer = managementServer
//nolint:revive
func NewManagementServer(st state.State, imageFactoryClient *imagefactory.Client, logger *zap.Logger) *ManagementServer {
return &ManagementServer{
omniState: st,
imageFactoryClient: imageFactoryClient,
logger: logger,
}
}
func GenerateDest(apiurl string) (string, error) {
return generateDest(apiurl)
}