Documentation ¶
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type Image
- type IngressSpec
- type KubeSerial
- type KubeSerialList
- type KubeSerialSpec
- type KubeSerialStatus
- type Manager
- type ManagerList
- type ManagerScheduleRequest
- type ManagerScheduleRequestList
- type ManagerScheduleRequestSpec
- type ManagerScheduleRequestStatus
- type ManagerSpec
- type ManagerStatus
- type SerialDevice
- func (in *SerialDevice) DeepCopy() *SerialDevice
- func (in *SerialDevice) DeepCopyInto(out *SerialDevice)
- func (in *SerialDevice) DeepCopyObject() runtime.Object
- func (d *SerialDevice) GetCondition(conditionType SerialDeviceConditionType) *SerialDeviceCondition
- func (d *SerialDevice) IsAvailable() bool
- func (d *SerialDevice) IsFree() bool
- func (d *SerialDevice) IsReady() bool
- func (d *SerialDevice) NeedsManager() bool
- func (d *SerialDevice) SetCondition(newCondition SerialDeviceCondition)
- type SerialDevice2
- type SerialDeviceCondition
- type SerialDeviceConditionType
- type SerialDeviceList
- type SerialDeviceSpec
- type SerialDeviceStatus
Constants ¶
const GroupName = "app.kubeserial.com"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Image ¶
type Image struct { // +required // +kubebuilder:validation:Required Repository string `json:"repository"` // +required // +kubebuilder:validation:Required Tag string `json:"tag"` }
Image is spec for image to be used by manager.
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IngressSpec ¶
type IngressSpec struct { // +required // +kubebuilder:validation:Required Enabled bool `json:"enabled"` // +optional // +kubebuilder:validation:Optional Domain string `json:"domain,omitempty"` // +optional // +kubebuilder:validation:Optional Annotations map[string]string `json:"annotations,omitempty"` }
IngressSpec defines the desired Ingress configuration +k8s:openapi-gen=true
func (*IngressSpec) DeepCopy ¶
func (in *IngressSpec) DeepCopy() *IngressSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IngressSpec.
func (*IngressSpec) DeepCopyInto ¶
func (in *IngressSpec) DeepCopyInto(out *IngressSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeSerial ¶
type KubeSerial struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubeSerialSpec `json:"spec"` Status KubeSerialStatus `json:"status,omitempty"` }
KubeSerial is the Schema for the kubeserials API +genclient +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:resource:path=kubeserials,scope=Namespaced
func (*KubeSerial) DeepCopy ¶
func (in *KubeSerial) DeepCopy() *KubeSerial
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSerial.
func (*KubeSerial) DeepCopyInto ¶
func (in *KubeSerial) DeepCopyInto(out *KubeSerial)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeSerial) DeepCopyObject ¶
func (in *KubeSerial) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeSerialList ¶
type KubeSerialList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubeSerial `json:"items"` }
KubeSerialList contains a list of KubeSerial.
func (*KubeSerialList) DeepCopy ¶
func (in *KubeSerialList) DeepCopy() *KubeSerialList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSerialList.
func (*KubeSerialList) DeepCopyInto ¶
func (in *KubeSerialList) DeepCopyInto(out *KubeSerialList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubeSerialList) DeepCopyObject ¶
func (in *KubeSerialList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubeSerialSpec ¶
type KubeSerialSpec struct { // +required // +kubebuilder:validation:Required SerialDevices []SerialDevice2 `json:"serialDevices"` // +required // +kubebuilder:validation:Required Ingress IngressSpec `json:"ingress"` }
KubeSerialSpec defines the desired state of KubeSerial +k8s:openapi-gen=true
func (*KubeSerialSpec) DeepCopy ¶
func (in *KubeSerialSpec) DeepCopy() *KubeSerialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSerialSpec.
func (*KubeSerialSpec) DeepCopyInto ¶
func (in *KubeSerialSpec) DeepCopyInto(out *KubeSerialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeSerialStatus ¶
type KubeSerialStatus struct{}
KubeSerialStatus defines the observed state of KubeSerial +k8s:openapi-gen=true
func (*KubeSerialStatus) DeepCopy ¶
func (in *KubeSerialStatus) DeepCopy() *KubeSerialStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeSerialStatus.
func (*KubeSerialStatus) DeepCopyInto ¶
func (in *KubeSerialStatus) DeepCopyInto(out *KubeSerialStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Manager ¶
type Manager struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManagerSpec `json:"spec,omitempty"` Status ManagerStatus `json:"status,omitempty"` }
Manager is the Schema for the managers API.
func (*Manager) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manager.
func (*Manager) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Manager) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerList ¶
type ManagerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Manager `json:"items"` }
ManagerList contains a list of Manager.
func (*ManagerList) DeepCopy ¶
func (in *ManagerList) DeepCopy() *ManagerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerList.
func (*ManagerList) DeepCopyInto ¶
func (in *ManagerList) DeepCopyInto(out *ManagerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagerList) DeepCopyObject ¶
func (in *ManagerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerScheduleRequest ¶
type ManagerScheduleRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ManagerScheduleRequestSpec `json:"spec,omitempty"` Status ManagerScheduleRequestStatus `json:"status,omitempty"` }
ManagerScheduleRequest is the Schema for the managerschedulerequests API.
func (*ManagerScheduleRequest) DeepCopy ¶
func (in *ManagerScheduleRequest) DeepCopy() *ManagerScheduleRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerScheduleRequest.
func (*ManagerScheduleRequest) DeepCopyInto ¶
func (in *ManagerScheduleRequest) DeepCopyInto(out *ManagerScheduleRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagerScheduleRequest) DeepCopyObject ¶
func (in *ManagerScheduleRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerScheduleRequestList ¶
type ManagerScheduleRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ManagerScheduleRequest `json:"items"` }
ManagerScheduleRequestList contains a list of ManagerScheduleRequest.
func (*ManagerScheduleRequestList) DeepCopy ¶
func (in *ManagerScheduleRequestList) DeepCopy() *ManagerScheduleRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerScheduleRequestList.
func (*ManagerScheduleRequestList) DeepCopyInto ¶
func (in *ManagerScheduleRequestList) DeepCopyInto(out *ManagerScheduleRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagerScheduleRequestList) DeepCopyObject ¶
func (in *ManagerScheduleRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagerScheduleRequestSpec ¶
type ManagerScheduleRequestSpec struct { // +kubebuilder:validation:Required Device string `json:"device"` // +kubebuilder:validation:Required Manager string `json:"manager"` }
+k8s:openapi-gen=true ManagerScheduleRequestSpec defines the desired state of ManagerScheduleRequest.
func (*ManagerScheduleRequestSpec) DeepCopy ¶
func (in *ManagerScheduleRequestSpec) DeepCopy() *ManagerScheduleRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerScheduleRequestSpec.
func (*ManagerScheduleRequestSpec) DeepCopyInto ¶
func (in *ManagerScheduleRequestSpec) DeepCopyInto(out *ManagerScheduleRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagerScheduleRequestStatus ¶
type ManagerScheduleRequestStatus struct { // +kubebuilder:default:=false Fulfilled bool `json:"fulfilled"` // TODO: this is still empty when created }
+k8s:openapi-gen=true ManagerScheduleRequestStatus defines the observed state of ManagerScheduleRequest.
func (*ManagerScheduleRequestStatus) DeepCopy ¶
func (in *ManagerScheduleRequestStatus) DeepCopy() *ManagerScheduleRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerScheduleRequestStatus.
func (*ManagerScheduleRequestStatus) DeepCopyInto ¶
func (in *ManagerScheduleRequestStatus) DeepCopyInto(out *ManagerScheduleRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagerSpec ¶
type ManagerSpec struct { // +required // +kubebuilder:validation:Required Image Image `json:"image"` // +required // +kubebuilder:validation:Required RunCmd string `json:"runCmd"` // +required // +kubebuilder:validation:Required Dupa string `json:"dupa"` // +optional // +kubebuilder:validation:Optional Config string `json:"config"` // +optional // +kubebuilder:validation:Optional ConfigPath string `json:"configPath"` }
+k8s:openapi-gen=true ManagerSpec defines the desired state of Manager.
func (*ManagerSpec) DeepCopy ¶
func (in *ManagerSpec) DeepCopy() *ManagerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerSpec.
func (*ManagerSpec) DeepCopyInto ¶
func (in *ManagerSpec) DeepCopyInto(out *ManagerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagerStatus ¶
type ManagerStatus struct{}
+k8s:openapi-gen=true ManagerStatus defines the observed state of Manager.
func (*ManagerStatus) DeepCopy ¶
func (in *ManagerStatus) DeepCopy() *ManagerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagerStatus.
func (*ManagerStatus) DeepCopyInto ¶
func (in *ManagerStatus) DeepCopyInto(out *ManagerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SerialDevice ¶
type SerialDevice struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SerialDeviceSpec `json:"spec,omitempty"` Status SerialDeviceStatus `json:"status,omitempty"` }
SerialDevice is the Schema for the SerialDevices API.
func (*SerialDevice) DeepCopy ¶
func (in *SerialDevice) DeepCopy() *SerialDevice
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDevice.
func (*SerialDevice) DeepCopyInto ¶
func (in *SerialDevice) DeepCopyInto(out *SerialDevice)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SerialDevice) DeepCopyObject ¶
func (in *SerialDevice) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SerialDevice) GetCondition ¶
func (d *SerialDevice) GetCondition(conditionType SerialDeviceConditionType) *SerialDeviceCondition
func (*SerialDevice) IsAvailable ¶
func (d *SerialDevice) IsAvailable() bool
func (*SerialDevice) IsFree ¶
func (d *SerialDevice) IsFree() bool
func (*SerialDevice) IsReady ¶
func (d *SerialDevice) IsReady() bool
func (*SerialDevice) NeedsManager ¶
func (d *SerialDevice) NeedsManager() bool
NeedsManager checks if SerialDevice needs Manager.
func (*SerialDevice) SetCondition ¶
func (d *SerialDevice) SetCondition(newCondition SerialDeviceCondition)
type SerialDevice2 ¶
type SerialDevice2 struct { // +required // +kubebuilder:validation:Required Name string `json:"name"` // +required // +kubebuilder:validation:Required IDVendor string `json:"idVendor"` // +required // +kubebuilder:validation:Required IDProduct string `json:"idProduct"` // +optional // +kubebuilder:validation:Optional Manager string `json:"manager"` }
SerialDevice defines monitored device +k8s:openapi-gen=true
func (*SerialDevice2) DeepCopy ¶
func (in *SerialDevice2) DeepCopy() *SerialDevice2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDevice2.
func (*SerialDevice2) DeepCopyInto ¶
func (in *SerialDevice2) DeepCopyInto(out *SerialDevice2)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SerialDeviceCondition ¶
type SerialDeviceCondition struct { // +required Type SerialDeviceConditionType `json:"type" protobuf:"bytes,1,opt,name=type"` // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=True;False;Unknown Status metav1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // +optional // +kubebuilder:validation:Minimum=0 ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Format=date-time LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"` // +optional // +kubebuilder:validation:Optional // +kubebuilder:validation:Type=string // +kubebuilder:validation:Format=date-time LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime" protobuf:"bytes,4,opt,name=lastHeartbeatTime"` // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=1024 // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$` Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"` // message is a human readable message indicating details about the transition. // This may be an empty string. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=32768 Message string `json:"message" protobuf:"bytes,6,opt,name=message"` }
func (*SerialDeviceCondition) DeepCopy ¶
func (in *SerialDeviceCondition) DeepCopy() *SerialDeviceCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDeviceCondition.
func (*SerialDeviceCondition) DeepCopyInto ¶
func (in *SerialDeviceCondition) DeepCopyInto(out *SerialDeviceCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SerialDeviceConditionType ¶
type SerialDeviceConditionType string
const ( SerialDeviceAvailable SerialDeviceConditionType = "Available" SerialDeviceFree SerialDeviceConditionType = "Free" SerialDeviceReady SerialDeviceConditionType = "Ready" )
type SerialDeviceList ¶
type SerialDeviceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SerialDevice `json:"items"` }
SerialDeviceList contains a list of SerialDevice.
func (*SerialDeviceList) DeepCopy ¶
func (in *SerialDeviceList) DeepCopy() *SerialDeviceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDeviceList.
func (*SerialDeviceList) DeepCopyInto ¶
func (in *SerialDeviceList) DeepCopyInto(out *SerialDeviceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SerialDeviceList) DeepCopyObject ¶
func (in *SerialDeviceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SerialDeviceSpec ¶
type SerialDeviceSpec struct { // +required // +kubebuilder:validation:Required Name string `json:"name"` // +required // +kubebuilder:validation:Required IDVendor string `json:"idVendor"` // +required // +kubebuilder:validation:Required IDProduct string `json:"idProduct"` // +optional // +kubebuilder:validation:Optional Manager string `json:"manager,omitempty"` }
+k8s:openapi-gen=true SerialDeviceSpec defines the desired state of SerialDevice.
func (*SerialDeviceSpec) DeepCopy ¶
func (in *SerialDeviceSpec) DeepCopy() *SerialDeviceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDeviceSpec.
func (*SerialDeviceSpec) DeepCopyInto ¶
func (in *SerialDeviceSpec) DeepCopyInto(out *SerialDeviceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SerialDeviceStatus ¶
type SerialDeviceStatus struct { Conditions []SerialDeviceCondition `json:"conditions"` NodeName string `json:"nodeName,omitempty"` }
+k8s:openapi-gen=true SerialDeviceStatus defines the observed state of SerialDevice.
func (*SerialDeviceStatus) DeepCopy ¶
func (in *SerialDeviceStatus) DeepCopy() *SerialDeviceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SerialDeviceStatus.
func (*SerialDeviceStatus) DeepCopyInto ¶
func (in *SerialDeviceStatus) DeepCopyInto(out *SerialDeviceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.