mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-03 23:04:53 -04:00
operators: move api into a dedicated submodule (#1164)
This allows external modules to import the API types more cleanly.
This commit is contained in:
parent
74c569cba0
commit
aa422bb648
7 changed files with 145 additions and 11 deletions
15
operators/constellation-node-operator/api/api.go
Normal file
15
operators/constellation-node-operator/api/api.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
/*
|
||||
The api module is used to bundle the Constellation operator API into a separate module.
|
||||
This allows us to use the types from the API in other places than the operators themself, without having modules mutually depend on each other.
|
||||
We can also publish this API more easily if we decide to do so.
|
||||
|
||||
Model for this approach is the Kubernetes API itself: https://pkg.go.dev/k8s.io/api#section-readme
|
||||
*/
|
||||
|
||||
package api
|
Loading…
Add table
Add a link
Reference in a new issue