Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the manager v1 API group +kubebuilder:object:generate=true +groupName=manager.kotaico.de
Index ¶
Constants ¶
const ( BookingScheduled = "SCHEDULED" BookingInProgress = "IN PROGRESS" BookingFinished = "FINISHED" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "manager.kotaico.de", 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 Booking ¶
type Booking struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BookingSpec `json:"spec,omitempty"` Status BookingStatus `json:"status,omitempty"` }
Booking is the Schema for the bookings API
func (*Booking) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Booking.
func (*Booking) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Booking) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BookingList ¶
type BookingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Booking `json:"items"` }
BookingList contains a list of Booking
func (*BookingList) DeepCopy ¶
func (in *BookingList) DeepCopy() *BookingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BookingList.
func (*BookingList) DeepCopyInto ¶
func (in *BookingList) DeepCopyInto(out *BookingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BookingList) DeepCopyObject ¶
func (in *BookingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BookingSpec ¶
type BookingSpec struct { EndAt string `json:"end_at"` StartAt string `json:"start_at"` ResourceName string `json:"resource_name"` UserID string `json:"user_id"` Notifications []Notification `json:"notifications,omitempty"` }
BookingSpec defines the desired state of Booking
func (*BookingSpec) DeepCopy ¶
func (in *BookingSpec) DeepCopy() *BookingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BookingSpec.
func (*BookingSpec) DeepCopyInto ¶
func (in *BookingSpec) DeepCopyInto(out *BookingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BookingStatus ¶
type BookingStatus struct { Status string `json:"status,omitempty"` NotificationSent bool `json:"notification_sent,omitempty"` }
BookingStatus defines the observed state of Booking
func (*BookingStatus) DeepCopy ¶
func (in *BookingStatus) DeepCopy() *BookingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BookingStatus.
func (*BookingStatus) DeepCopyInto ¶
func (in *BookingStatus) DeepCopyInto(out *BookingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Notification ¶
func (*Notification) DeepCopy ¶
func (in *Notification) DeepCopy() *Notification
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Notification.
func (*Notification) DeepCopyInto ¶
func (in *Notification) DeepCopyInto(out *Notification)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Resource ¶
type Resource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSpec `json:"spec,omitempty"` Status ResourceStatus `json:"status,omitempty"` }
Resource is the Schema for the resources API
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Resource) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Resource `json:"items"` }
ResourceList contains a list of Resource
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceList) DeepCopyObject ¶
func (in *ResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceMonitor ¶
type ResourceMonitor struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceMonitorSpec `json:"spec,omitempty"` Status ResourceMonitorStatus `json:"status,omitempty"` }
ResourceMonitor is the Schema for the resourcemonitors API
func (*ResourceMonitor) DeepCopy ¶
func (in *ResourceMonitor) DeepCopy() *ResourceMonitor
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMonitor.
func (*ResourceMonitor) DeepCopyInto ¶
func (in *ResourceMonitor) DeepCopyInto(out *ResourceMonitor)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceMonitor) DeepCopyObject ¶
func (in *ResourceMonitor) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceMonitorList ¶
type ResourceMonitorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceMonitor `json:"items"` }
ResourceMonitorList contains a list of ResourceMonitor
func (*ResourceMonitorList) DeepCopy ¶
func (in *ResourceMonitorList) DeepCopy() *ResourceMonitorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMonitorList.
func (*ResourceMonitorList) DeepCopyInto ¶
func (in *ResourceMonitorList) DeepCopyInto(out *ResourceMonitorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceMonitorList) DeepCopyObject ¶
func (in *ResourceMonitorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceMonitorSpec ¶
type ResourceMonitorSpec struct {
Type string `json:"type"`
}
ResourceMonitorSpec defines the desired state of ResourceMonitor
func (*ResourceMonitorSpec) DeepCopy ¶
func (in *ResourceMonitorSpec) DeepCopy() *ResourceMonitorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMonitorSpec.
func (*ResourceMonitorSpec) DeepCopyInto ¶
func (in *ResourceMonitorSpec) DeepCopyInto(out *ResourceMonitorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceMonitorStatus ¶
type ResourceMonitorStatus struct { }
ResourceMonitorStatus defines the observed state of ResourceMonitor
func (*ResourceMonitorStatus) DeepCopy ¶
func (in *ResourceMonitorStatus) DeepCopy() *ResourceMonitorStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMonitorStatus.
func (*ResourceMonitorStatus) DeepCopyInto ¶
func (in *ResourceMonitorStatus) DeepCopyInto(out *ResourceMonitorStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { BookedBy string `json:"booked_by"` BookedUntil string `json:"booked_until"` Tag string `json:"tag"` Type string `json:"type"` }
ResourceSpec defines the desired state of Resource
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceStatus ¶
type ResourceStatus struct { Instances int `json:"instances"` Running int `json:"running"` Status string `json:"status"` LockedBy string `json:"locked_by"` LockedUntil string `json:"locked_until"` }
ResourceStatus defines the observed state of Resource
func (*ResourceStatus) DeepCopy ¶
func (in *ResourceStatus) DeepCopy() *ResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
func (*ResourceStatus) DeepCopyInto ¶
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.