Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the usage v1 API group. +kubebuilder:object:generate=true +groupName=usage.openmcp.cloud
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "usage.openmcp.cloud", 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 DailyUsage ¶
func NewDailyUsage ¶
func NewDailyUsage(date time.Time, hours int) (DailyUsage, error)
func (*DailyUsage) DeepCopy ¶
func (in *DailyUsage) DeepCopy() *DailyUsage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DailyUsage.
func (*DailyUsage) DeepCopyInto ¶
func (in *DailyUsage) DeepCopyInto(out *DailyUsage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DailyUsageReport ¶ added in v0.0.5
type DailyUsageReport struct { Date metav1.Time `json:"date"` Status string `json:"status,omitempty"` Message string `json:"message,omitempty"` }
func (*DailyUsageReport) DeepCopy ¶ added in v0.0.5
func (in *DailyUsageReport) DeepCopy() *DailyUsageReport
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DailyUsageReport.
func (*DailyUsageReport) DeepCopyInto ¶ added in v0.0.5
func (in *DailyUsageReport) DeepCopyInto(out *DailyUsageReport)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MCPUsage ¶
type MCPUsage struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MCPUsageSpec `json:"spec,omitempty"` Status MCPUsageStatus `json:"status,omitempty"` }
MCPUsage is the Schema for the mcpdailies API.
func (*MCPUsage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPUsage.
func (*MCPUsage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCPUsage) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCPUsageList ¶
type MCPUsageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MCPUsage `json:"items"` }
MCPUsageList contains a list of MCPUsage.
func (*MCPUsageList) DeepCopy ¶
func (in *MCPUsageList) DeepCopy() *MCPUsageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPUsageList.
func (*MCPUsageList) DeepCopyInto ¶
func (in *MCPUsageList) DeepCopyInto(out *MCPUsageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MCPUsageList) DeepCopyObject ¶
func (in *MCPUsageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MCPUsageSpec ¶
type MCPUsageSpec struct { ChargingTarget string `json:"charging_target"` ChargingTargetType string `json:"charging_target_type"` Project string `json:"project"` Workspace string `json:"workspace"` MCP string `json:"mcp"` Usage []DailyUsage `json:"daily_usage,omitempty"` LastUsageCaptured metav1.Time `json:"last_usage_captured,omitempty"` MCPCreatedAt metav1.Time `json:"mcp_created_at,omitempty"` MCPDeletedAt metav1.Time `json:"mcp_deleted_at,omitempty"` Message string `json:"message,omitempty"` }
MCPUsageSpec defines the desired state of MCPUsage.
func (*MCPUsageSpec) DeepCopy ¶
func (in *MCPUsageSpec) DeepCopy() *MCPUsageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPUsageSpec.
func (*MCPUsageSpec) DeepCopyInto ¶
func (in *MCPUsageSpec) DeepCopyInto(out *MCPUsageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MCPUsageStatus ¶
type MCPUsageStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file DailyUsageReport []DailyUsageReport `json:"daily_usage_report"` }
MCPUsageStatus defines the observed state of MCPUsage.
func (*MCPUsageStatus) DeepCopy ¶
func (in *MCPUsageStatus) DeepCopy() *MCPUsageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MCPUsageStatus.
func (*MCPUsageStatus) DeepCopyInto ¶
func (in *MCPUsageStatus) DeepCopyInto(out *MCPUsageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.