mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-04-22 02:26:36 +00:00
feat(v1beta1): remove unused structs and functions from v1beta1. Rename v1alpha1 structs to follow new naming. Move v1alpha1 structs to separate files
18 lines
336 B
Go
18 lines
336 B
Go
// Copyright 2020-2021 Clastix Labs
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package v1alpha1
|
|
|
|
// OwnerSpec defines tenant owner name and kind
|
|
type OwnerSpec struct {
|
|
Name string `json:"name"`
|
|
Kind Kind `json:"kind"`
|
|
}
|
|
|
|
// +kubebuilder:validation:Enum=User;Group
|
|
type Kind string
|
|
|
|
func (k Kind) String() string {
|
|
return string(k)
|
|
}
|