Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder definition SchemeBuilder runtime.SchemeBuilder // AddToScheme definition AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{ Group: incident.GroupName, Version: "v1", }
SchemeGroupVersion Define your schema name and the version
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Incident ¶
type Incident struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec IncidentSpec `json:"spec,omitempty"` }
Incident top-level type definition
func (*Incident) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Incident.
func (*Incident) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Incident) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IncidentList ¶
type IncidentList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []Incident `json:"items"` }
IncidentList list definition
func (*IncidentList) DeepCopy ¶
func (in *IncidentList) DeepCopy() *IncidentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IncidentList.
func (*IncidentList) DeepCopyInto ¶
func (in *IncidentList) DeepCopyInto(out *IncidentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*IncidentList) DeepCopyObject ¶
func (in *IncidentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type IncidentSpec ¶
type IncidentSpec struct { ID int64 `json:"id,omitempty"` Summary string `json:"summary,omitempty"` Details string `json:"details,omitempty"` Type string `json:"type,omitempty"` }
IncidentSpec custom spec definition
func (*IncidentSpec) DeepCopy ¶
func (in *IncidentSpec) DeepCopy() *IncidentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IncidentSpec.
func (*IncidentSpec) DeepCopyInto ¶
func (in *IncidentSpec) DeepCopyInto(out *IncidentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.