Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the talks v1 API group +kubebuilder:object:generate=true +groupName=talks.kubecon.na
Index ¶
Constants ¶
const ( // CreateFailedCondition indicates a transient or persistent creation failure // of an external resource. // This is a "negative polarity" or "abnormal-true" type, and is only // present on the resource if it is True. CreateFailedCondition string = "CreateFailed" // UpdateFailedCondition indicates a transient or persistent update failure // of an external resource. // This is a "negative polarity" or "abnormal-true" type, and is only // present on the resource if it is True. UpdateFailedCondition string = "CreateFailed" // FetchFailedCondition indicates a transient or persistent fetch failure // of an external resource. // This is a "negative polarity" or "abnormal-true" type, and is only // present on the resource if it is True. FetchFailedCondition string = "FetchFailed" )
const ( // CreateFailedReason indicates that the create failed. CreateFailedReason string = "CreateFailed" // UpdateFailedReason indicates that the update failed. UpdateFailedReason string = "UpdateFailed" // FetchFailedReason indicates that the fetch failed. FetchFailedReason string = "FetchFailed" )
const ( // ProposalStateFinale is the state of a proposal that cannot be changed anymore. ProposalStateFinal = "final" // ProposalStateDraft is the state of a proposal that is still being drafted ProposalStateDraft = "draft" )
const Finalizer = "finalizers.talks.kubecon.na"
const ( // SpeakerIndexKey is the key used for indexing objects based on their // referenced Speaker. SpeakerIndexKey = ".metadata.SpeakerName" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "talks.kubecon.na", 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 Proposal ¶
type Proposal struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProposalSpec `json:"spec,omitempty"`
Status ProposalStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status Proposal is the Schema for the proposals API
func (*Proposal) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Proposal.
func (*Proposal) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Proposal) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Proposal) GetConditions ¶
func (*Proposal) SetConditions ¶
type ProposalList ¶
type ProposalList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Proposal `json:"items"`
}
ProposalList contains a list of Proposal
func (*ProposalList) DeepCopy ¶
func (in *ProposalList) DeepCopy() *ProposalList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposalList.
func (*ProposalList) DeepCopyInto ¶
func (in *ProposalList) DeepCopyInto(out *ProposalList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProposalList) DeepCopyObject ¶
func (in *ProposalList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProposalSpec ¶
type ProposalSpec struct {
// Title of the proposal
// +kubebuilder:validation:MaxLength=50
// +kubebuilder:validation:MinLength=1
// +required
Title string `json:"title"`
// Abstract on what the proposal is about
// +kubebuilder:validation:MaxLength=50
// +kubebuilder:validation:MinLength=1
// +required
Abstract string `json:"abstract"`
// Type of talk the proposal is on.
// +kubebuilder:validation:Enum=talk;tutorial;keynote;lightning
// +kubebuilder:default=talk
Type string `json:"type"`
// +required
Final bool `json:"final"`
// speaker submitting this talk
// +required
SpeakerRef *SpeakerRef `json:"speakerRef"`
}
ProposalSpec defines the desired state of Proposal
func (*ProposalSpec) DeepCopy ¶
func (in *ProposalSpec) DeepCopy() *ProposalSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposalSpec.
func (*ProposalSpec) DeepCopyInto ¶
func (in *ProposalSpec) DeepCopyInto(out *ProposalSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProposalStatus ¶
type ProposalStatus struct {
// ObservedGeneration is the last observed generation of the Speaker object.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// The time at which the proposal was submitted
// +optional
LastUpdate metav1.Time `json:"lastUpdate,omitempty"`
// Submission represents the current status of the proposal
// It can be draft or final
// +kubebuilder:validation:Enum=draft;final
// +optional
Submission string `json:"submission,omitempty"`
// Conditions is a list of conditions and their status.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ProposalStatus defines the observed state of Proposal
func (*ProposalStatus) DeepCopy ¶
func (in *ProposalStatus) DeepCopy() *ProposalStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProposalStatus.
func (*ProposalStatus) DeepCopyInto ¶
func (in *ProposalStatus) DeepCopyInto(out *ProposalStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Speaker ¶
type Speaker struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec SpeakerSpec `json:"spec,omitempty"`
Status SpeakerStatus `json:"status,omitempty"`
}
+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Speaker",type=string,JSONPath=`.spec.name` +kubebuilder:printcolumn:name="Email",type=string,JSONPath=`.spec.email` Speaker is the Schema for the speakers API
func (*Speaker) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Speaker.
func (*Speaker) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Speaker) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Speaker) GetConditions ¶
func (*Speaker) SetConditions ¶
type SpeakerList ¶
type SpeakerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Speaker `json:"items"`
}
SpeakerList contains a list of Speaker
func (*SpeakerList) DeepCopy ¶
func (in *SpeakerList) DeepCopy() *SpeakerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpeakerList.
func (*SpeakerList) DeepCopyInto ¶
func (in *SpeakerList) DeepCopyInto(out *SpeakerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SpeakerList) DeepCopyObject ¶
func (in *SpeakerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SpeakerRef ¶
type SpeakerRef struct {
// Name of speaker custom resource
// +kubebuilder:validation:Type=string
Name string `json:"name"`
// Namespace of speaker ref
// +kubebuilder:validation:Type=string
Namespace string `json:"namespace"`
}
func (*SpeakerRef) DeepCopy ¶
func (in *SpeakerRef) DeepCopy() *SpeakerRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpeakerRef.
func (*SpeakerRef) DeepCopyInto ¶
func (in *SpeakerRef) DeepCopyInto(out *SpeakerRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpeakerSpec ¶
type SpeakerSpec struct {
// Name of the Speaker.
// +kubebuilder:validation:Type=string
// +required
Name string `json:"name"`
// +kubebuilder:validation:Type=string
Bio string `json:"bio,omitempty"`
// Email of the Speaker
// +kubebuilder:validation:Type=string
// +kubebuilder:validation:Pattern="^[a-zA-Z0-9.-]+@([a-zA-Z0-9]+.)+[a-zA-Z0-9-]{2,15}$"
Email string `json:"email,omitempty"`
}
SpeakerSpec defines the desired state of Speaker
func (*SpeakerSpec) DeepCopy ¶
func (in *SpeakerSpec) DeepCopy() *SpeakerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpeakerSpec.
func (*SpeakerSpec) DeepCopyInto ¶
func (in *SpeakerSpec) DeepCopyInto(out *SpeakerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SpeakerStatus ¶
type SpeakerStatus struct {
// ObservedGeneration is the last observed generation of the Speaker object.
// +optional
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// ID is the speaker ID
// in the form of namespace-name
// +optional
ID string `json:"id,omitempty"`
// Conditions is a list of conditions and their status.
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
SpeakerStatus defines the observed state of Speaker
func (*SpeakerStatus) DeepCopy ¶
func (in *SpeakerStatus) DeepCopy() *SpeakerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SpeakerStatus.
func (*SpeakerStatus) DeepCopyInto ¶
func (in *SpeakerStatus) DeepCopyInto(out *SpeakerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.