operators: move api into a dedicated submodule (#1164)

This allows external modules to import the API types more cleanly.
This commit is contained in:
Otto Bittner 2023-02-13 11:52:36 +01:00 committed by GitHub
parent 74c569cba0
commit aa422bb648
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 145 additions and 11 deletions

View 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