mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-05-06 01:16:44 +00:00
* chore(refactor): project and api refactoring Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> * chore(refactor): project and api refactoring Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com> --------- Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
20 lines
458 B
Go
20 lines
458 B
Go
// Copyright 2020-2025 Project Capsule Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package api
|
|
|
|
// +kubebuilder:validation:Enum=User;Group;ServiceAccount
|
|
type UserKind string
|
|
|
|
func (k UserKind) String() string {
|
|
return string(k)
|
|
}
|
|
|
|
// +kubebuilder:object:generate=true
|
|
type UserSpec struct {
|
|
// Kind of entity. Possible values are "User", "Group", and "ServiceAccount"
|
|
Kind OwnerKind `json:"kind"`
|
|
// Name of the entity.
|
|
Name string `json:"name"`
|
|
}
|