Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the license v1 API group +kubebuilder:object:generate=true +groupName=license.sealos.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "license.sealos.io", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type License ¶
type License struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LicenseSpec `json:"spec,omitempty"` Status LicenseStatus `json:"status,omitempty"` }
License is the Schema for the licenses API
func (*License) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new License.
func (*License) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*License) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LicenseList ¶
type LicenseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []License `json:"items"` }
LicenseList contains a list of License
func (*LicenseList) DeepCopy ¶
func (in *LicenseList) DeepCopy() *LicenseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseList.
func (*LicenseList) DeepCopyInto ¶
func (in *LicenseList) DeepCopyInto(out *LicenseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LicenseList) DeepCopyObject ¶
func (in *LicenseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LicenseSpec ¶
type LicenseSpec struct { //+kubebuilder:validation:Enum=Account;Cluster Type LicenseType `json:"type,omitempty"` Token string `json:"token,omitempty"` }
LicenseSpec defines the desired state of License
func (*LicenseSpec) DeepCopy ¶
func (in *LicenseSpec) DeepCopy() *LicenseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseSpec.
func (*LicenseSpec) DeepCopyInto ¶
func (in *LicenseSpec) DeepCopyInto(out *LicenseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseStatus ¶
type LicenseStatus struct { //+kubebuilder:validation:Enum=Pending;Failed;Active //+kubebuilder:default=Pending Phase LicenseStatusPhase `json:"phase,omitempty"` ValidationCode ValidationCode `json:"validationCode,omitempty"` Reason string `json:"reason,omitempty"` ActivationTime metav1.Time `json:"activationTime,omitempty"` ExpirationTime metav1.Time `json:"expirationTime,omitempty"` }
LicenseStatus defines the observed state of License
func (*LicenseStatus) DeepCopy ¶
func (in *LicenseStatus) DeepCopy() *LicenseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseStatus.
func (*LicenseStatus) DeepCopyInto ¶
func (in *LicenseStatus) DeepCopyInto(out *LicenseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LicenseStatusPhase ¶
type LicenseStatusPhase string
const ( LicenseStatusPhasePending LicenseStatusPhase = "Pending" LicenseStatusPhaseFailed LicenseStatusPhase = "Failed" LicenseStatusPhaseActive LicenseStatusPhase = "Active" )
type LicenseType ¶
type LicenseType string
const ( AccountLicenseType LicenseType = "Account" ClusterLicenseType LicenseType = "Cluster" )
type ValidationCode ¶
type ValidationCode int
const ( ValidationSuccess ValidationCode = iota ValidationError ValidationExpired ValidationClusterIDMismatch ValidationClusterInfoMismatch )