v1alpha1

package
v0.6.310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

+groupName=team.modela.ai +kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// SchemeBuilder registers our types
	SchemeBuilder = k8sruntime.NewSchemeBuilder(AddKnownTypes)
	// AddToScheme local alias for SchemeBuilder.AddToScheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: team.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func AddKnownTypes

func AddKnownTypes(scheme *k8sruntime.Scheme) error

Adds the list of known types to api.Scheme.

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CheckListItem

type CheckListItem struct {
	// The step ID
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ID *string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"`
	// Instruction to follow.
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Instruction *string `json:"instruction,omitempty" protobuf:"bytes,2,opt,name=instruction"`
	// Enabled indicate weather this item is enabled
	// +kubebuilder:default:=false
	// +kubebuilder:validation:Optional
	Enabled *bool `json:"enabled,omitempty" protobuf:"varint,3,opt,name=enabled"`
	// Condition is the condition to use this checklist item
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Condition *string `json:"condition,omitempty" protobuf:"bytes,4,opt,name=condition"`
	// The command line to execute when running the step.
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Command *string `json:"command,omitempty" protobuf:"bytes,5,opt,name=command"`
	// What must be true before the step
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	PreCondition *string `json:"precondition,omitempty" protobuf:"bytes,6,opt,name=precondition"`
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	PostCondition *string `json:"postcondition,omitempty" protobuf:"bytes,7,opt,name=postcondition"`
}

func (*CheckListItem) DeepCopy

func (in *CheckListItem) DeepCopy() *CheckListItem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckListItem.

func (*CheckListItem) DeepCopyInto

func (in *CheckListItem) DeepCopyInto(out *CheckListItem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CheckListItem) Descriptor

func (*CheckListItem) Descriptor() ([]byte, []int)

func (*CheckListItem) Marshal

func (m *CheckListItem) Marshal() (dAtA []byte, err error)

func (*CheckListItem) MarshalTo

func (m *CheckListItem) MarshalTo(dAtA []byte) (int, error)

func (*CheckListItem) MarshalToSizedBuffer

func (m *CheckListItem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CheckListItem) ProtoMessage

func (*CheckListItem) ProtoMessage()

func (*CheckListItem) Reset

func (m *CheckListItem) Reset()

func (*CheckListItem) Size

func (m *CheckListItem) Size() (n int)

func (*CheckListItem) String

func (this *CheckListItem) String() string

func (*CheckListItem) Unmarshal

func (m *CheckListItem) Unmarshal(dAtA []byte) error

func (*CheckListItem) XXX_DiscardUnknown

func (m *CheckListItem) XXX_DiscardUnknown()

func (*CheckListItem) XXX_Marshal

func (m *CheckListItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckListItem) XXX_Merge

func (m *CheckListItem) XXX_Merge(src proto.Message)

func (*CheckListItem) XXX_Size

func (m *CheckListItem) XXX_Size() int

func (*CheckListItem) XXX_Unmarshal

func (m *CheckListItem) XXX_Unmarshal(b []byte) error

type Comment

type Comment struct {
	// ID is the comment ID. Used when replying to a comment.
	ID string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"`
	// AuthorRef is a reference to the author of the comment
	AuthorRef *v1.ObjectReference `json:"authorRef,omitempty" protobuf:"bytes,2,opt,name=authorRef"`
	// If this comment is a reply to an id
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ReplyToID *string `json:"replyTo,omitempty" protobuf:"bytes,3,opt,name=replyTo"`
	// Content is the content of the comment
	// +kubebuilder:default:=""
	Content *string `json:"content,omitempty" protobuf:"bytes,4,opt,name=content"`
	// PostedAt is the time when the comment was posted
	// +kubebuilder:validation:Optional
	PostedAt *metav1.Time `json:"postedAt,omitempty" protobuf:"bytes,5,opt,name=postedAt"`
	// Sent indicate if the comment was sent to the notifier.
	// +kubebuilder:default:=false
	// +kubebuilder:validation:Optional
	Sent *bool `json:"sent,omitempty" protobuf:"varint,6,opt,name=sent"`
	// Pin the comment
	// +kubebuilder:default:=false
	// +kubebuilder:validation:Optional
	Pinned *bool `json:"pinned,omitempty" protobuf:"varint,7,opt,name=pinned"`
	// The ID of the reply
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ReplyIndicationID *string `json:"replyIndicationID,omitempty" protobuf:"bytes,8,opt,name=replyIndicationID"`
	// The URL of an Image attached to this review
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ImageURL *string `json:"imageURL,omitempty" protobuf:"bytes,9,opt,name=imageURL"`
	// The ID of the reply
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	AccountMentionID *string `json:"accountMentionID,omitempty" protobuf:"bytes,10,opt,name=accountMentionID"`
}

Commnet represents a single comment in the review

func (*Comment) DeepCopy

func (in *Comment) DeepCopy() *Comment

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Comment.

func (*Comment) DeepCopyInto

func (in *Comment) DeepCopyInto(out *Comment)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Comment) Descriptor

func (*Comment) Descriptor() ([]byte, []int)

func (*Comment) Marshal

func (m *Comment) Marshal() (dAtA []byte, err error)

func (*Comment) MarshalTo

func (m *Comment) MarshalTo(dAtA []byte) (int, error)

func (*Comment) MarshalToSizedBuffer

func (m *Comment) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) Reset

func (m *Comment) Reset()

func (*Comment) Size

func (m *Comment) Size() (n int)

func (*Comment) String

func (this *Comment) String() string

func (*Comment) Unmarshal

func (m *Comment) Unmarshal(dAtA []byte) error

func (*Comment) XXX_DiscardUnknown

func (m *Comment) XXX_DiscardUnknown()

func (*Comment) XXX_Marshal

func (m *Comment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Comment) XXX_Merge

func (m *Comment) XXX_Merge(src proto.Message)

func (*Comment) XXX_Size

func (m *Comment) XXX_Size() int

func (*Comment) XXX_Unmarshal

func (m *Comment) XXX_Unmarshal(b []byte) error

type PostMortem

type PostMortem struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              PostMortemSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	//+optional
	Status PostMortemStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +kubebuilder:resource:path=postmortems,shortName=pt,singular=postmortem,categories={team,modela,all} PostMortem represent a post mortem

func (*PostMortem) AddFinalizer

func (pm *PostMortem) AddFinalizer()

func (*PostMortem) Archived

func (pm *PostMortem) Archived() bool

func (*PostMortem) CreateOrUpdateCond

func (pm *PostMortem) CreateOrUpdateCond(cond PostMortemCondition)

Merge or update condition

func (*PostMortem) DeepCopy

func (in *PostMortem) DeepCopy() *PostMortem

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostMortem.

func (*PostMortem) DeepCopyInto

func (in *PostMortem) DeepCopyInto(out *PostMortem)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PostMortem) DeepCopyObject

func (in *PostMortem) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PostMortem) Default

func (pm *PostMortem) Default()

func (*PostMortem) Descriptor

func (*PostMortem) Descriptor() ([]byte, []int)

func (*PostMortem) GetCond

func (*PostMortem) GetCondIdx

func (pm *PostMortem) GetCondIdx(t PostMortemConditionType) int

func (PostMortem) GetObservedGeneration added in v0.6.252

func (postmortem PostMortem) GetObservedGeneration() int64

func (PostMortem) GetStatus added in v0.6.252

func (postmortem PostMortem) GetStatus() proto.Message

func (*PostMortem) HasFinalizer

func (pm *PostMortem) HasFinalizer() bool

func (*PostMortem) Key

func (pm *PostMortem) Key() string

func (*PostMortem) ManifestURI added in v0.5.472

func (pm *PostMortem) ManifestURI() string

func (*PostMortem) MarkArchived

func (pm *PostMortem) MarkArchived()

func (*PostMortem) MarkReady

func (pm *PostMortem) MarkReady()

func (*PostMortem) Marshal

func (m *PostMortem) Marshal() (dAtA []byte, err error)

func (*PostMortem) MarshalTo

func (m *PostMortem) MarshalTo(dAtA []byte) (int, error)

func (*PostMortem) MarshalToSizedBuffer

func (m *PostMortem) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostMortem) ProtoMessage

func (*PostMortem) ProtoMessage()

func (*PostMortem) RemoveFinalizer

func (pm *PostMortem) RemoveFinalizer()

func (*PostMortem) RepPath

func (pm *PostMortem) RepPath(root string) (string, error)

Return the on disk rep location

func (*PostMortem) Reset

func (m *PostMortem) Reset()

func (*PostMortem) RootURI added in v0.5.472

func (pm *PostMortem) RootURI() string

func (PostMortem) SetObservedGeneration added in v0.6.252

func (postmortem PostMortem) SetObservedGeneration(generation int64)

func (*PostMortem) SetStatus added in v0.6.252

func (postmortem *PostMortem) SetStatus(status interface{})

func (PostMortem) SetUpdatedAt added in v0.6.252

func (postmortem PostMortem) SetUpdatedAt(time *metav1.Time)

func (*PostMortem) SetupWebhookWithManager

func (pm *PostMortem) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*PostMortem) Size

func (m *PostMortem) Size() (n int)

func (*PostMortem) String

func (this *PostMortem) String() string

func (*PostMortem) Unmarshal

func (m *PostMortem) Unmarshal(dAtA []byte) error

func (*PostMortem) ValidateCreate

func (pm *PostMortem) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*PostMortem) ValidateDelete

func (pm *PostMortem) ValidateDelete() error

func (*PostMortem) ValidateUpdate

func (pm *PostMortem) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

func (*PostMortem) XXX_DiscardUnknown

func (m *PostMortem) XXX_DiscardUnknown()

func (*PostMortem) XXX_Marshal

func (m *PostMortem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostMortem) XXX_Merge

func (m *PostMortem) XXX_Merge(src proto.Message)

func (*PostMortem) XXX_Size

func (m *PostMortem) XXX_Size() int

func (*PostMortem) XXX_Unmarshal

func (m *PostMortem) XXX_Unmarshal(b []byte) error

type PostMortemCondition

type PostMortemCondition struct {
	// Type of bucket condition.
	Type PostMortemConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=PostMortemConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

Post Morem Condition describes the state of a post mortem at a certain point.

func (*PostMortemCondition) DeepCopy

func (in *PostMortemCondition) DeepCopy() *PostMortemCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostMortemCondition.

func (*PostMortemCondition) DeepCopyInto

func (in *PostMortemCondition) DeepCopyInto(out *PostMortemCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PostMortemCondition) Descriptor

func (*PostMortemCondition) Descriptor() ([]byte, []int)

func (*PostMortemCondition) Marshal

func (m *PostMortemCondition) Marshal() (dAtA []byte, err error)

func (*PostMortemCondition) MarshalTo

func (m *PostMortemCondition) MarshalTo(dAtA []byte) (int, error)

func (*PostMortemCondition) MarshalToSizedBuffer

func (m *PostMortemCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostMortemCondition) ProtoMessage

func (*PostMortemCondition) ProtoMessage()

func (*PostMortemCondition) Reset

func (m *PostMortemCondition) Reset()

func (*PostMortemCondition) Size

func (m *PostMortemCondition) Size() (n int)

func (*PostMortemCondition) String

func (this *PostMortemCondition) String() string

func (*PostMortemCondition) Unmarshal

func (m *PostMortemCondition) Unmarshal(dAtA []byte) error

func (*PostMortemCondition) XXX_DiscardUnknown

func (m *PostMortemCondition) XXX_DiscardUnknown()

func (*PostMortemCondition) XXX_Marshal

func (m *PostMortemCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostMortemCondition) XXX_Merge

func (m *PostMortemCondition) XXX_Merge(src proto.Message)

func (*PostMortemCondition) XXX_Size

func (m *PostMortemCondition) XXX_Size() int

func (*PostMortemCondition) XXX_Unmarshal

func (m *PostMortemCondition) XXX_Unmarshal(b []byte) error

type PostMortemConditionType

type PostMortemConditionType string
const (
	PostMortemReady PostMortemConditionType = "Ready"
	PostMortemSaved PostMortemConditionType = "Saved"
)

/ Post Moretem Condition

type PostMortemList

type PostMortemList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []PostMortem `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+kubebuilder:object:root=true PostMortemList is a list of PostMortems

func (*PostMortemList) DeepCopy

func (in *PostMortemList) DeepCopy() *PostMortemList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostMortemList.

func (*PostMortemList) DeepCopyInto

func (in *PostMortemList) DeepCopyInto(out *PostMortemList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PostMortemList) DeepCopyObject

func (in *PostMortemList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*PostMortemList) Descriptor

func (*PostMortemList) Descriptor() ([]byte, []int)

func (*PostMortemList) Marshal

func (m *PostMortemList) Marshal() (dAtA []byte, err error)

func (*PostMortemList) MarshalTo

func (m *PostMortemList) MarshalTo(dAtA []byte) (int, error)

func (*PostMortemList) MarshalToSizedBuffer

func (m *PostMortemList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostMortemList) ProtoMessage

func (*PostMortemList) ProtoMessage()

func (*PostMortemList) Reset

func (m *PostMortemList) Reset()

func (*PostMortemList) Size

func (m *PostMortemList) Size() (n int)

func (*PostMortemList) String

func (this *PostMortemList) String() string

func (*PostMortemList) Unmarshal

func (m *PostMortemList) Unmarshal(dAtA []byte) error

func (*PostMortemList) XXX_DiscardUnknown

func (m *PostMortemList) XXX_DiscardUnknown()

func (*PostMortemList) XXX_Marshal

func (m *PostMortemList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostMortemList) XXX_Merge

func (m *PostMortemList) XXX_Merge(src proto.Message)

func (*PostMortemList) XXX_Size

func (m *PostMortemList) XXX_Size() int

func (*PostMortemList) XXX_Unmarshal

func (m *PostMortemList) XXX_Unmarshal(b []byte) error

type PostMortemSpec

type PostMortemSpec struct {
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	// Description of the meeting
	Description *string `json:"description,omitempty" protobuf:"bytes,1,opt,name=description"`
	// The target object of the post mortem for example a predictor.
	// +kubebuilder:validation:Optional
	EntityRef *v1.ObjectReference `json:"entityRef" protobuf:"bytes,2,opt,name=entityRef"`
	// The place of the events, can be lab or serving site.
	// +kubebuilder:validation:Optional
	LocationRef *v1.ObjectReference `json:"locationRef" protobuf:"bytes,3,opt,name=locationRef"`
	// Reference to accounts that handled the post-mortem
	// +kubebuilder:validation:Optional
	HandledBy []v1.ObjectReference `json:"handledBy" protobuf:"bytes,4,rep,name=handledBy"`
	// Alerts
	// +kubebuilder:validation:Optional
	Alerts []RaisedAlert `json:"alerts" protobuf:"bytes,5,rep,name=alerts"`
	// Timeline is the list of events that happed during the events
	// +kubebuilder:validation:Optional
	TimeLine []TimeLineEvent `json:"timeline" protobuf:"bytes,6,rep,name=timeline"`
	// Root cause
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	RootCause *string `json:"rootCause" protobuf:"bytes,7,opt,name=rootCause"`
	// Summary of the post mortem
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Summary *string `json:"summary" protobuf:"bytes,8,opt,name=summary"`
	// The owner account name
	// +kubebuilder:default:="no-one"
	// +kubebuilder:validation:Optional
	Owner *string `json:"owner,omitempty" protobuf:"bytes,9,opt,name=owner"`
	// TenantRef is the commit tenant
	// +kubebuilder:validation:Optional
	TenantRef *v1.ObjectReference `json:"tenantRef,omitempty" protobuf:"bytes,10,opt,name=tenantRef"`
	// The start time of the post mortem
	// +kubebuilder:validation:Optional
	StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,11,opt,name=startTime"`
	// The detection time of the post mortem
	// +kubebuilder:validation:Optional
	DetectionTime *metav1.Time `json:"detectionTime,omitempty" protobuf:"bytes,12,opt,name=detectionTime"`
	// The end time of the post mortem.
	// +kubebuilder:validation:Optional
	EndTime *metav1.Time `json:"endTime,omitempty" protobuf:"bytes,13,opt,name=endTime"`
	// Attach image to the post mortem.
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ImageURL *string `json:"imageURL,omitempty" protobuf:"bytes,14,opt,name=imageURL"`
}

PostMortemSpec defines the desired state of PostMorem

func (*PostMortemSpec) DeepCopy

func (in *PostMortemSpec) DeepCopy() *PostMortemSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostMortemSpec.

func (*PostMortemSpec) DeepCopyInto

func (in *PostMortemSpec) DeepCopyInto(out *PostMortemSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PostMortemSpec) Descriptor

func (*PostMortemSpec) Descriptor() ([]byte, []int)

func (*PostMortemSpec) Marshal

func (m *PostMortemSpec) Marshal() (dAtA []byte, err error)

func (*PostMortemSpec) MarshalTo

func (m *PostMortemSpec) MarshalTo(dAtA []byte) (int, error)

func (*PostMortemSpec) MarshalToSizedBuffer

func (m *PostMortemSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostMortemSpec) ProtoMessage

func (*PostMortemSpec) ProtoMessage()

func (*PostMortemSpec) Reset

func (m *PostMortemSpec) Reset()

func (*PostMortemSpec) Size

func (m *PostMortemSpec) Size() (n int)

func (*PostMortemSpec) String

func (this *PostMortemSpec) String() string

func (*PostMortemSpec) Unmarshal

func (m *PostMortemSpec) Unmarshal(dAtA []byte) error

func (*PostMortemSpec) XXX_DiscardUnknown

func (m *PostMortemSpec) XXX_DiscardUnknown()

func (*PostMortemSpec) XXX_Marshal

func (m *PostMortemSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostMortemSpec) XXX_Merge

func (m *PostMortemSpec) XXX_Merge(src proto.Message)

func (*PostMortemSpec) XXX_Size

func (m *PostMortemSpec) XXX_Size() int

func (*PostMortemSpec) XXX_Unmarshal

func (m *PostMortemSpec) XXX_Unmarshal(b []byte) error

type PostMortemStatus

type PostMortemStatus struct {
	// ObservedGeneration is the Last generation that was acted on
	//+kubebuilder:validation:Optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
	// Last time the object was updated
	//+kubebuilder:validation:Optional
	LastUpdated *metav1.Time `json:"lastUpdated,omitempty" protobuf:"bytes,2,opt,name=lastUpdated"`
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +kubebuilder:validation:Optional
	Conditions []PostMortemCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,3,rep,name=conditions"`
}

PostMortemStatus defines the actual state of a PostMortem

func (*PostMortemStatus) DeepCopy

func (in *PostMortemStatus) DeepCopy() *PostMortemStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostMortemStatus.

func (*PostMortemStatus) DeepCopyInto

func (in *PostMortemStatus) DeepCopyInto(out *PostMortemStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PostMortemStatus) Descriptor

func (*PostMortemStatus) Descriptor() ([]byte, []int)

func (*PostMortemStatus) Marshal

func (m *PostMortemStatus) Marshal() (dAtA []byte, err error)

func (*PostMortemStatus) MarshalTo

func (m *PostMortemStatus) MarshalTo(dAtA []byte) (int, error)

func (*PostMortemStatus) MarshalToSizedBuffer

func (m *PostMortemStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostMortemStatus) ProtoMessage

func (*PostMortemStatus) ProtoMessage()

func (*PostMortemStatus) Reset

func (m *PostMortemStatus) Reset()

func (*PostMortemStatus) Size

func (m *PostMortemStatus) Size() (n int)

func (*PostMortemStatus) String

func (this *PostMortemStatus) String() string

func (*PostMortemStatus) Unmarshal

func (m *PostMortemStatus) Unmarshal(dAtA []byte) error

func (*PostMortemStatus) XXX_DiscardUnknown

func (m *PostMortemStatus) XXX_DiscardUnknown()

func (*PostMortemStatus) XXX_Marshal

func (m *PostMortemStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostMortemStatus) XXX_Merge

func (m *PostMortemStatus) XXX_Merge(src proto.Message)

func (*PostMortemStatus) XXX_Size

func (m *PostMortemStatus) XXX_Size() int

func (*PostMortemStatus) XXX_Unmarshal

func (m *PostMortemStatus) XXX_Unmarshal(b []byte) error

type RaisedAlert

type RaisedAlert struct {
	// +kubebuilder:validation:Optional
	Name *string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// +kubebuilder:validation:Optional
	At *metav1.Time `json:"at" protobuf:"bytes,2,opt,name=at"`
}

Alert is an alert that was raised during the incident

func (*RaisedAlert) DeepCopy

func (in *RaisedAlert) DeepCopy() *RaisedAlert

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RaisedAlert.

func (*RaisedAlert) DeepCopyInto

func (in *RaisedAlert) DeepCopyInto(out *RaisedAlert)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RaisedAlert) Descriptor

func (*RaisedAlert) Descriptor() ([]byte, []int)

func (*RaisedAlert) Marshal

func (m *RaisedAlert) Marshal() (dAtA []byte, err error)

func (*RaisedAlert) MarshalTo

func (m *RaisedAlert) MarshalTo(dAtA []byte) (int, error)

func (*RaisedAlert) MarshalToSizedBuffer

func (m *RaisedAlert) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RaisedAlert) ProtoMessage

func (*RaisedAlert) ProtoMessage()

func (*RaisedAlert) Reset

func (m *RaisedAlert) Reset()

func (*RaisedAlert) Size

func (m *RaisedAlert) Size() (n int)

func (*RaisedAlert) String

func (this *RaisedAlert) String() string

func (*RaisedAlert) Unmarshal

func (m *RaisedAlert) Unmarshal(dAtA []byte) error

func (*RaisedAlert) XXX_DiscardUnknown

func (m *RaisedAlert) XXX_DiscardUnknown()

func (*RaisedAlert) XXX_Marshal

func (m *RaisedAlert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RaisedAlert) XXX_Merge

func (m *RaisedAlert) XXX_Merge(src proto.Message)

func (*RaisedAlert) XXX_Size

func (m *RaisedAlert) XXX_Size() int

func (*RaisedAlert) XXX_Unmarshal

func (m *RaisedAlert) XXX_Unmarshal(b []byte) error

type Review

type Review struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              ReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	//+optional
	Status ReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:printcolumn:name="Entity Kind",type="string",JSONPath=".spec.entityRef.kind",description="" +kubebuilder:printcolumn:name="Entity Namespace",type="string",JSONPath=".spec.entityRef.namespace",description="" +kubebuilder:printcolumn:name="Entity Name",type="string",JSONPath=".spec.entityRef.name",description="" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +kubebuilder:subresource:status +kubebuilder:resource:path=reviews,shortName=cv,singular=review,categories={team,modela} Review represents a comment about any review

func ParseCommentYaml

func ParseCommentYaml(content []byte) (*Review, error)

func (*Review) AddFinalizer

func (conv *Review) AddFinalizer()

func (*Review) Archived

func (conv *Review) Archived() bool

func (*Review) CreateOrUpdateCond

func (conv *Review) CreateOrUpdateCond(cond ReviewCondition)

Merge or update condition

func (*Review) DeepCopy

func (in *Review) DeepCopy() *Review

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Review.

func (*Review) DeepCopyInto

func (in *Review) DeepCopyInto(out *Review)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Review) DeepCopyObject

func (in *Review) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Review) Default

func (conv *Review) Default()

func (*Review) Descriptor

func (*Review) Descriptor() ([]byte, []int)

func (*Review) GetCond

func (conv *Review) GetCond(t ReviewConditionType) ReviewCondition

func (*Review) GetCondIdx

func (conv *Review) GetCondIdx(t ReviewConditionType) int

func (Review) GetObservedGeneration added in v0.6.252

func (review Review) GetObservedGeneration() int64

func (Review) GetStatus added in v0.6.252

func (review Review) GetStatus() proto.Message

func (*Review) HasFinalizer

func (conv *Review) HasFinalizer() bool

func (*Review) Key

func (conv *Review) Key() string

func (*Review) ManifestURI added in v0.5.472

func (conv *Review) ManifestURI() string

func (*Review) MarkArchived

func (conv *Review) MarkArchived()

func (*Review) MarkReady

func (conv *Review) MarkReady()

func (*Review) Marshal

func (m *Review) Marshal() (dAtA []byte, err error)

func (*Review) MarshalTo

func (m *Review) MarshalTo(dAtA []byte) (int, error)

func (*Review) MarshalToSizedBuffer

func (m *Review) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Review) ProtoMessage

func (*Review) ProtoMessage()

func (*Review) RemoveFinalizer

func (conv *Review) RemoveFinalizer()

func (*Review) RepPath

func (conv *Review) RepPath(root string) (string, error)

Return the on disk rep location

func (*Review) Reset

func (m *Review) Reset()

func (*Review) RootURI added in v0.5.472

func (conv *Review) RootURI() string

func (Review) SetObservedGeneration added in v0.6.252

func (review Review) SetObservedGeneration(generation int64)

func (*Review) SetStatus added in v0.6.252

func (review *Review) SetStatus(status interface{})

func (Review) SetUpdatedAt added in v0.6.252

func (review Review) SetUpdatedAt(time *metav1.Time)

func (*Review) SetupWebhookWithManager

func (review *Review) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Review) Size

func (m *Review) Size() (n int)

func (*Review) String

func (this *Review) String() string

func (*Review) Unmarshal

func (m *Review) Unmarshal(dAtA []byte) error

func (*Review) XXX_DiscardUnknown

func (m *Review) XXX_DiscardUnknown()

func (*Review) XXX_Marshal

func (m *Review) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Review) XXX_Merge

func (m *Review) XXX_Merge(src proto.Message)

func (*Review) XXX_Size

func (m *Review) XXX_Size() int

func (*Review) XXX_Unmarshal

func (m *Review) XXX_Unmarshal(b []byte) error

type ReviewCondition

type ReviewCondition struct {
	Type   ReviewConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=ReviewConditionType"`
	Status v1.ConditionStatus  `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

ReviewCondition describes the state of the review

func (*ReviewCondition) DeepCopy

func (in *ReviewCondition) DeepCopy() *ReviewCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewCondition.

func (*ReviewCondition) DeepCopyInto

func (in *ReviewCondition) DeepCopyInto(out *ReviewCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReviewCondition) Descriptor

func (*ReviewCondition) Descriptor() ([]byte, []int)

func (*ReviewCondition) Marshal

func (m *ReviewCondition) Marshal() (dAtA []byte, err error)

func (*ReviewCondition) MarshalTo

func (m *ReviewCondition) MarshalTo(dAtA []byte) (int, error)

func (*ReviewCondition) MarshalToSizedBuffer

func (m *ReviewCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReviewCondition) ProtoMessage

func (*ReviewCondition) ProtoMessage()

func (*ReviewCondition) Reset

func (m *ReviewCondition) Reset()

func (*ReviewCondition) Size

func (m *ReviewCondition) Size() (n int)

func (*ReviewCondition) String

func (this *ReviewCondition) String() string

func (*ReviewCondition) Unmarshal

func (m *ReviewCondition) Unmarshal(dAtA []byte) error

func (*ReviewCondition) XXX_DiscardUnknown

func (m *ReviewCondition) XXX_DiscardUnknown()

func (*ReviewCondition) XXX_Marshal

func (m *ReviewCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReviewCondition) XXX_Merge

func (m *ReviewCondition) XXX_Merge(src proto.Message)

func (*ReviewCondition) XXX_Size

func (m *ReviewCondition) XXX_Size() int

func (*ReviewCondition) XXX_Unmarshal

func (m *ReviewCondition) XXX_Unmarshal(b []byte) error

type ReviewConditionType

type ReviewConditionType string

/ BucketName conditions

const (
	ReviewReady ReviewConditionType = "Ready"
	ReviewSaved ReviewConditionType = "Saved"
)

/ BucketName Condition

type ReviewList

type ReviewList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Review `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+kubebuilder:object:root=true ReviewList is a list of Reviews

func (*ReviewList) DeepCopy

func (in *ReviewList) DeepCopy() *ReviewList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewList.

func (*ReviewList) DeepCopyInto

func (in *ReviewList) DeepCopyInto(out *ReviewList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReviewList) DeepCopyObject

func (in *ReviewList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ReviewList) Descriptor

func (*ReviewList) Descriptor() ([]byte, []int)

func (*ReviewList) Marshal

func (m *ReviewList) Marshal() (dAtA []byte, err error)

func (*ReviewList) MarshalTo

func (m *ReviewList) MarshalTo(dAtA []byte) (int, error)

func (*ReviewList) MarshalToSizedBuffer

func (m *ReviewList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReviewList) ProtoMessage

func (*ReviewList) ProtoMessage()

func (*ReviewList) Reset

func (m *ReviewList) Reset()

func (*ReviewList) Size

func (m *ReviewList) Size() (n int)

func (*ReviewList) String

func (this *ReviewList) String() string

func (*ReviewList) Unmarshal

func (m *ReviewList) Unmarshal(dAtA []byte) error

func (*ReviewList) XXX_DiscardUnknown

func (m *ReviewList) XXX_DiscardUnknown()

func (*ReviewList) XXX_Marshal

func (m *ReviewList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReviewList) XXX_Merge

func (m *ReviewList) XXX_Merge(src proto.Message)

func (*ReviewList) XXX_Size

func (m *ReviewList) XXX_Size() int

func (*ReviewList) XXX_Unmarshal

func (m *ReviewList) XXX_Unmarshal(b []byte) error

type ReviewSpec

type ReviewSpec struct {
	// The target of the review
	EntityRef *v1.ObjectReference `json:"entityRef" protobuf:"bytes,1,opt,name=entityRef"`
	// Messages are the messages of the review.
	Messages []Comment `json:"messages" protobuf:"bytes,2,rep,name=messages"`
	// The owner account name
	// +kubebuilder:default:="no-one"
	// +kubebuilder:validation:Optional
	Owner *string `json:"owner,omitempty" protobuf:"bytes,3,opt,name=owner"`
	// The notifier is used for alerts about new msgs in the review
	// +kubebuilder:default:="default-slack-notifier"
	// +kubebuilder:validation:Optional
	NotifierName *string `json:"notifierName,omitempty" protobuf:"bytes,4,opt,name=notifierName"`
	// TenantRef is the review tenant.
	// +kubebuilder:validation:Optional
	TenantRef *v1.ObjectReference `json:"tenantRef,omitempty" protobuf:"bytes,5,opt,name=tenantRef"`
}

ReviewSpec defines the desired state of a Review

func (*ReviewSpec) DeepCopy

func (in *ReviewSpec) DeepCopy() *ReviewSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewSpec.

func (*ReviewSpec) DeepCopyInto

func (in *ReviewSpec) DeepCopyInto(out *ReviewSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReviewSpec) Descriptor

func (*ReviewSpec) Descriptor() ([]byte, []int)

func (*ReviewSpec) Marshal

func (m *ReviewSpec) Marshal() (dAtA []byte, err error)

func (*ReviewSpec) MarshalTo

func (m *ReviewSpec) MarshalTo(dAtA []byte) (int, error)

func (*ReviewSpec) MarshalToSizedBuffer

func (m *ReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReviewSpec) ProtoMessage

func (*ReviewSpec) ProtoMessage()

func (*ReviewSpec) Reset

func (m *ReviewSpec) Reset()

func (*ReviewSpec) Size

func (m *ReviewSpec) Size() (n int)

func (*ReviewSpec) String

func (this *ReviewSpec) String() string

func (*ReviewSpec) Unmarshal

func (m *ReviewSpec) Unmarshal(dAtA []byte) error

func (*ReviewSpec) XXX_DiscardUnknown

func (m *ReviewSpec) XXX_DiscardUnknown()

func (*ReviewSpec) XXX_Marshal

func (m *ReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReviewSpec) XXX_Merge

func (m *ReviewSpec) XXX_Merge(src proto.Message)

func (*ReviewSpec) XXX_Size

func (m *ReviewSpec) XXX_Size() int

func (*ReviewSpec) XXX_Unmarshal

func (m *ReviewSpec) XXX_Unmarshal(b []byte) error

type ReviewStatus

type ReviewStatus struct {
	// Last time the object was updated
	//+kubebuilder:validation:Optional
	LastUpdated *metav1.Time `json:"lastUpdated,omitempty" protobuf:"bytes,1,opt,name=lastUpdated"`
	// ObservedGeneration is the Last generation that was acted on
	//+kubebuilder:validation:Optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,2,opt,name=observedGeneration"`
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +kubebuilder:validation:Optional
	Conditions []ReviewCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,3,rep,name=conditions"`
}

ReviewStatus is the current status of the review

func (*ReviewStatus) DeepCopy

func (in *ReviewStatus) DeepCopy() *ReviewStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReviewStatus.

func (*ReviewStatus) DeepCopyInto

func (in *ReviewStatus) DeepCopyInto(out *ReviewStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ReviewStatus) Descriptor

func (*ReviewStatus) Descriptor() ([]byte, []int)

func (*ReviewStatus) Marshal

func (m *ReviewStatus) Marshal() (dAtA []byte, err error)

func (*ReviewStatus) MarshalTo

func (m *ReviewStatus) MarshalTo(dAtA []byte) (int, error)

func (*ReviewStatus) MarshalToSizedBuffer

func (m *ReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReviewStatus) ProtoMessage

func (*ReviewStatus) ProtoMessage()

func (*ReviewStatus) Reset

func (m *ReviewStatus) Reset()

func (*ReviewStatus) Size

func (m *ReviewStatus) Size() (n int)

func (*ReviewStatus) String

func (this *ReviewStatus) String() string

func (*ReviewStatus) Unmarshal

func (m *ReviewStatus) Unmarshal(dAtA []byte) error

func (*ReviewStatus) XXX_DiscardUnknown

func (m *ReviewStatus) XXX_DiscardUnknown()

func (*ReviewStatus) XXX_Marshal

func (m *ReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReviewStatus) XXX_Merge

func (m *ReviewStatus) XXX_Merge(src proto.Message)

func (*ReviewStatus) XXX_Size

func (m *ReviewStatus) XXX_Size() int

func (*ReviewStatus) XXX_Unmarshal

func (m *ReviewStatus) XXX_Unmarshal(b []byte) error

type RunBook

type RunBook struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              RunBookSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	//+optional
	Status RunBookStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +kubebuilder:subresource:status +kubebuilder:resource:path=runbooks,shortName=rb,singular=runbook,categories={data,modela} RunBook represent a list of instructions for a specific operation

func (*RunBook) AddFinalizer

func (runbook *RunBook) AddFinalizer()

func (*RunBook) CreateOrUpdateCond

func (runbook *RunBook) CreateOrUpdateCond(cond RunBookCondition)

Merge or update condition

func (*RunBook) DeepCopy

func (in *RunBook) DeepCopy() *RunBook

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunBook.

func (*RunBook) DeepCopyInto

func (in *RunBook) DeepCopyInto(out *RunBook)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunBook) DeepCopyObject

func (in *RunBook) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RunBook) Default

func (runbook *RunBook) Default()

func (*RunBook) Descriptor

func (*RunBook) Descriptor() ([]byte, []int)

func (*RunBook) GetCond

func (runbook *RunBook) GetCond(t RunBookConditionType) RunBookCondition

func (*RunBook) GetCondIdx

func (runbook *RunBook) GetCondIdx(t RunBookConditionType) int

func (RunBook) GetObservedGeneration added in v0.6.252

func (runbook RunBook) GetObservedGeneration() int64

func (RunBook) GetStatus added in v0.6.252

func (runbook RunBook) GetStatus() proto.Message

func (*RunBook) HasFinalizer

func (runbook *RunBook) HasFinalizer() bool

func (*RunBook) Key

func (runbook *RunBook) Key() string

func (*RunBook) ManifestURI added in v0.5.472

func (runbook *RunBook) ManifestURI() string

func (*RunBook) MarkReady

func (runbook *RunBook) MarkReady()

func (*RunBook) MarkSaved

func (runbook *RunBook) MarkSaved()

func (*RunBook) Marshal

func (m *RunBook) Marshal() (dAtA []byte, err error)

func (*RunBook) MarshalTo

func (m *RunBook) MarshalTo(dAtA []byte) (int, error)

func (*RunBook) MarshalToSizedBuffer

func (m *RunBook) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RunBook) ProtoMessage

func (*RunBook) ProtoMessage()

func (*RunBook) RemoveFinalizer

func (runbook *RunBook) RemoveFinalizer()

func (*RunBook) RepPath

func (runbook *RunBook) RepPath(root string) (string, error)

Return the on disk rep location

func (*RunBook) Reset

func (m *RunBook) Reset()

func (*RunBook) RootURI added in v0.5.472

func (runbook *RunBook) RootURI() string

func (*RunBook) Saved

func (runbook *RunBook) Saved() bool

func (RunBook) SetObservedGeneration added in v0.6.252

func (runbook RunBook) SetObservedGeneration(generation int64)

func (*RunBook) SetStatus added in v0.6.252

func (runbook *RunBook) SetStatus(status interface{})

func (RunBook) SetUpdatedAt added in v0.6.252

func (runbook RunBook) SetUpdatedAt(time *metav1.Time)

func (*RunBook) SetupWebhookWithManager

func (pm *RunBook) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*RunBook) Size

func (m *RunBook) Size() (n int)

func (*RunBook) String

func (this *RunBook) String() string

func (*RunBook) Unmarshal

func (m *RunBook) Unmarshal(dAtA []byte) error

func (*RunBook) ValidateCreate

func (runbook *RunBook) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*RunBook) ValidateDelete

func (runbook *RunBook) ValidateDelete() error

func (*RunBook) ValidateUpdate

func (runbook *RunBook) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

func (*RunBook) XXX_DiscardUnknown

func (m *RunBook) XXX_DiscardUnknown()

func (*RunBook) XXX_Marshal

func (m *RunBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBook) XXX_Merge

func (m *RunBook) XXX_Merge(src proto.Message)

func (*RunBook) XXX_Size

func (m *RunBook) XXX_Size() int

func (*RunBook) XXX_Unmarshal

func (m *RunBook) XXX_Unmarshal(b []byte) error

type RunBookCondition

type RunBookCondition struct {
	// Type of condition.
	Type RunBookConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=RunBookConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// The last time this condition was updated.
	LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,3,opt,name=lastUpdateTime"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

RunBookCondition describes the state of a RunBook at a certain point.

func (*RunBookCondition) DeepCopy

func (in *RunBookCondition) DeepCopy() *RunBookCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunBookCondition.

func (*RunBookCondition) DeepCopyInto

func (in *RunBookCondition) DeepCopyInto(out *RunBookCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunBookCondition) Descriptor

func (*RunBookCondition) Descriptor() ([]byte, []int)

func (*RunBookCondition) Marshal

func (m *RunBookCondition) Marshal() (dAtA []byte, err error)

func (*RunBookCondition) MarshalTo

func (m *RunBookCondition) MarshalTo(dAtA []byte) (int, error)

func (*RunBookCondition) MarshalToSizedBuffer

func (m *RunBookCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RunBookCondition) ProtoMessage

func (*RunBookCondition) ProtoMessage()

func (*RunBookCondition) Reset

func (m *RunBookCondition) Reset()

func (*RunBookCondition) Size

func (m *RunBookCondition) Size() (n int)

func (*RunBookCondition) String

func (this *RunBookCondition) String() string

func (*RunBookCondition) Unmarshal

func (m *RunBookCondition) Unmarshal(dAtA []byte) error

func (*RunBookCondition) XXX_DiscardUnknown

func (m *RunBookCondition) XXX_DiscardUnknown()

func (*RunBookCondition) XXX_Marshal

func (m *RunBookCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBookCondition) XXX_Merge

func (m *RunBookCondition) XXX_Merge(src proto.Message)

func (*RunBookCondition) XXX_Size

func (m *RunBookCondition) XXX_Size() int

func (*RunBookCondition) XXX_Unmarshal

func (m *RunBookCondition) XXX_Unmarshal(b []byte) error

type RunBookConditionType

type RunBookConditionType string

/ RunBook conditions

const (
	RunBookReady RunBookConditionType = "Ready"
	RunBookSaved RunBookConditionType = "Saved"
)

/ RunBookReady Condition

type RunBookList

type RunBookList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Items []RunBook `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+kubebuilder:object:root=true RunBookList is a list of RunBooks

func (*RunBookList) DeepCopy

func (in *RunBookList) DeepCopy() *RunBookList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunBookList.

func (*RunBookList) DeepCopyInto

func (in *RunBookList) DeepCopyInto(out *RunBookList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunBookList) DeepCopyObject

func (in *RunBookList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*RunBookList) Descriptor

func (*RunBookList) Descriptor() ([]byte, []int)

func (*RunBookList) Marshal

func (m *RunBookList) Marshal() (dAtA []byte, err error)

func (*RunBookList) MarshalTo

func (m *RunBookList) MarshalTo(dAtA []byte) (int, error)

func (*RunBookList) MarshalToSizedBuffer

func (m *RunBookList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RunBookList) ProtoMessage

func (*RunBookList) ProtoMessage()

func (*RunBookList) Reset

func (m *RunBookList) Reset()

func (*RunBookList) Size

func (m *RunBookList) Size() (n int)

func (*RunBookList) String

func (this *RunBookList) String() string

func (*RunBookList) Unmarshal

func (m *RunBookList) Unmarshal(dAtA []byte) error

func (*RunBookList) XXX_DiscardUnknown

func (m *RunBookList) XXX_DiscardUnknown()

func (*RunBookList) XXX_Marshal

func (m *RunBookList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBookList) XXX_Merge

func (m *RunBookList) XXX_Merge(src proto.Message)

func (*RunBookList) XXX_Size

func (m *RunBookList) XXX_Size() int

func (*RunBookList) XXX_Unmarshal

func (m *RunBookList) XXX_Unmarshal(b []byte) error

type RunBookSpec

type RunBookSpec struct {
	// Description of the run book
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" protobuf:"bytes,1,opt,name=description"`
	// The target object of run book
	// +kubebuilder:validation:Optional
	EntityRef *v1.ObjectReference `json:"entityRef" protobuf:"bytes,2,opt,name=entityRef"`
	// The author of the run book
	AuthorRef *v1.ObjectReference `json:"authorRef,omitempty" protobuf:"bytes,3,opt,name=authorRef"`
	// The checklist
	// +kubebuilder:validation:Optional
	CheckList []CheckListItem `json:"checklist,omitempty" protobuf:"bytes,4,opt,name=checklist"`
	// The owner account name
	// +kubebuilder:default:="no-one"
	// +kubebuilder:validation:Optional
	Owner *string `json:"owner,omitempty" protobuf:"bytes,5,opt,name=owner"`
	// TenantRef is the run book tenant
	// +kubebuilder:validation:Optional
	TenantRef *v1.ObjectReference `json:"tenantRef,omitempty" protobuf:"bytes,6,opt,name=tenantRef"`
}

RunBookSpec defines the desired state of RunBook

func (*RunBookSpec) DeepCopy

func (in *RunBookSpec) DeepCopy() *RunBookSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunBookSpec.

func (*RunBookSpec) DeepCopyInto

func (in *RunBookSpec) DeepCopyInto(out *RunBookSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunBookSpec) Descriptor

func (*RunBookSpec) Descriptor() ([]byte, []int)

func (*RunBookSpec) Marshal

func (m *RunBookSpec) Marshal() (dAtA []byte, err error)

func (*RunBookSpec) MarshalTo

func (m *RunBookSpec) MarshalTo(dAtA []byte) (int, error)

func (*RunBookSpec) MarshalToSizedBuffer

func (m *RunBookSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RunBookSpec) ProtoMessage

func (*RunBookSpec) ProtoMessage()

func (*RunBookSpec) Reset

func (m *RunBookSpec) Reset()

func (*RunBookSpec) Size

func (m *RunBookSpec) Size() (n int)

func (*RunBookSpec) String

func (this *RunBookSpec) String() string

func (*RunBookSpec) Unmarshal

func (m *RunBookSpec) Unmarshal(dAtA []byte) error

func (*RunBookSpec) XXX_DiscardUnknown

func (m *RunBookSpec) XXX_DiscardUnknown()

func (*RunBookSpec) XXX_Marshal

func (m *RunBookSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBookSpec) XXX_Merge

func (m *RunBookSpec) XXX_Merge(src proto.Message)

func (*RunBookSpec) XXX_Size

func (m *RunBookSpec) XXX_Size() int

func (*RunBookSpec) XXX_Unmarshal

func (m *RunBookSpec) XXX_Unmarshal(b []byte) error

type RunBookStatus

type RunBookStatus struct {
	// ObservedGeneration is the Last generation that was acted on
	//+kubebuilder:validation:Optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`

	// Last time the object was updated
	//+kubebuilder:validation:Optional
	LastUpdated *metav1.Time `json:"lastUpdated,omitempty" protobuf:"bytes,2,opt,name=lastUpdated"`

	// +patchMergeKey=type
	// +patchStrategy=merge
	// +kubebuilder:validation:Optional
	Conditions []RunBookCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,3,rep,name=conditions"`
}

RunBookStatus defines the actual state of a RunBook

func (*RunBookStatus) DeepCopy

func (in *RunBookStatus) DeepCopy() *RunBookStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RunBookStatus.

func (*RunBookStatus) DeepCopyInto

func (in *RunBookStatus) DeepCopyInto(out *RunBookStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RunBookStatus) Descriptor

func (*RunBookStatus) Descriptor() ([]byte, []int)

func (*RunBookStatus) Marshal

func (m *RunBookStatus) Marshal() (dAtA []byte, err error)

func (*RunBookStatus) MarshalTo

func (m *RunBookStatus) MarshalTo(dAtA []byte) (int, error)

func (*RunBookStatus) MarshalToSizedBuffer

func (m *RunBookStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RunBookStatus) ProtoMessage

func (*RunBookStatus) ProtoMessage()

func (*RunBookStatus) Reset

func (m *RunBookStatus) Reset()

func (*RunBookStatus) Size

func (m *RunBookStatus) Size() (n int)

func (*RunBookStatus) String

func (this *RunBookStatus) String() string

func (*RunBookStatus) Unmarshal

func (m *RunBookStatus) Unmarshal(dAtA []byte) error

func (*RunBookStatus) XXX_DiscardUnknown

func (m *RunBookStatus) XXX_DiscardUnknown()

func (*RunBookStatus) XXX_Marshal

func (m *RunBookStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RunBookStatus) XXX_Merge

func (m *RunBookStatus) XXX_Merge(src proto.Message)

func (*RunBookStatus) XXX_Size

func (m *RunBookStatus) XXX_Size() int

func (*RunBookStatus) XXX_Unmarshal

func (m *RunBookStatus) XXX_Unmarshal(b []byte) error

type TaskSpec added in v0.4.709

type TaskSpec struct {
	ID *string `json:"id,omitempty" protobuf:"bytes,1,opt,name=id"`
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Content *string `json:"description,omitempty" protobuf:"bytes,2,opt,name=description"`
	// Assigned to is the user name assigned to this task
	// +kubebuilder:default:="no-one"
	// +kubebuilder:validation:Optional
	AssignedTo *string `json:"assignedTo,omitempty" protobuf:"bytes,3,opt,name=assignedTo"`
	// Flagged donete that task was flagged
	DueDate *metav1.Time `json:"dueDate,omitempty" protobuf:"bytes,4,opt,name=dueDate"`
	// Reminder is the time to send a reminder
	Reminder *metav1.Time `json:"reminder,omitempty" protobuf:"bytes,5,opt,name=reminder"`
	// If this task is a subtask, this is the name of the subtask
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	ParentTask *string `json:"parentTask,omitempty" protobuf:"bytes,6,opt,name=parentTask"`
}

func (*TaskSpec) DeepCopy added in v0.4.709

func (in *TaskSpec) DeepCopy() *TaskSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.

func (*TaskSpec) DeepCopyInto added in v0.4.709

func (in *TaskSpec) DeepCopyInto(out *TaskSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TaskSpec) Descriptor added in v0.4.709

func (*TaskSpec) Descriptor() ([]byte, []int)

func (*TaskSpec) Marshal added in v0.4.709

func (m *TaskSpec) Marshal() (dAtA []byte, err error)

func (*TaskSpec) MarshalTo added in v0.4.709

func (m *TaskSpec) MarshalTo(dAtA []byte) (int, error)

func (*TaskSpec) MarshalToSizedBuffer added in v0.4.709

func (m *TaskSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TaskSpec) ProtoMessage added in v0.4.709

func (*TaskSpec) ProtoMessage()

func (*TaskSpec) Reset added in v0.4.709

func (m *TaskSpec) Reset()

func (*TaskSpec) Size added in v0.4.709

func (m *TaskSpec) Size() (n int)

func (*TaskSpec) String added in v0.4.709

func (this *TaskSpec) String() string

func (*TaskSpec) Unmarshal added in v0.4.709

func (m *TaskSpec) Unmarshal(dAtA []byte) error

func (*TaskSpec) XXX_DiscardUnknown added in v0.4.709

func (m *TaskSpec) XXX_DiscardUnknown()

func (*TaskSpec) XXX_Marshal added in v0.4.709

func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TaskSpec) XXX_Merge added in v0.4.709

func (m *TaskSpec) XXX_Merge(src proto.Message)

func (*TaskSpec) XXX_Size added in v0.4.709

func (m *TaskSpec) XXX_Size() int

func (*TaskSpec) XXX_Unmarshal added in v0.4.709

func (m *TaskSpec) XXX_Unmarshal(b []byte) error

type TimeLineEvent

type TimeLineEvent struct {
	// +kubebuilder:validation:Optional
	// +kubebuilder:default:=""
	Content *string `json:"content" protobuf:"bytes,1,opt,name=content"`
	// +kubebuilder:validation:Optional
	At *metav1.Time `json:"at" protobuf:"bytes,2,opt,name=at"`
}

TimeLineEvent

func (*TimeLineEvent) DeepCopy

func (in *TimeLineEvent) DeepCopy() *TimeLineEvent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TimeLineEvent.

func (*TimeLineEvent) DeepCopyInto

func (in *TimeLineEvent) DeepCopyInto(out *TimeLineEvent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TimeLineEvent) Descriptor

func (*TimeLineEvent) Descriptor() ([]byte, []int)

func (*TimeLineEvent) Marshal

func (m *TimeLineEvent) Marshal() (dAtA []byte, err error)

func (*TimeLineEvent) MarshalTo

func (m *TimeLineEvent) MarshalTo(dAtA []byte) (int, error)

func (*TimeLineEvent) MarshalToSizedBuffer

func (m *TimeLineEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TimeLineEvent) ProtoMessage

func (*TimeLineEvent) ProtoMessage()

func (*TimeLineEvent) Reset

func (m *TimeLineEvent) Reset()

func (*TimeLineEvent) Size

func (m *TimeLineEvent) Size() (n int)

func (*TimeLineEvent) String

func (this *TimeLineEvent) String() string

func (*TimeLineEvent) Unmarshal

func (m *TimeLineEvent) Unmarshal(dAtA []byte) error

func (*TimeLineEvent) XXX_DiscardUnknown

func (m *TimeLineEvent) XXX_DiscardUnknown()

func (*TimeLineEvent) XXX_Marshal

func (m *TimeLineEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TimeLineEvent) XXX_Merge

func (m *TimeLineEvent) XXX_Merge(src proto.Message)

func (*TimeLineEvent) XXX_Size

func (m *TimeLineEvent) XXX_Size() int

func (*TimeLineEvent) XXX_Unmarshal

func (m *TimeLineEvent) XXX_Unmarshal(b []byte) error

type Todo

type Todo struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Spec              TodoSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
	//+optional
	Status TodoStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase",description="" +kubebuilder:printcolumn:name="Description",type="string",JSONPath=".spec.description",description="" +kubebuilder:printcolumn:name="Entity Namespace",type="string",JSONPath=".spec.entityRef.namespace",description="" +kubebuilder:printcolumn:name="Entity Name",type="string",JSONPath=".spec.entityRef.name",description="" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" +kubebuilder:resource:path=todos,singular=todo,categories={team,modela}

func (*Todo) AddFinalizer

func (alert *Todo) AddFinalizer()

func (*Todo) CreateOrUpdateCond

func (alert *Todo) CreateOrUpdateCond(cond TodoCondition)

Merge or update condition

func (*Todo) DeepCopy

func (in *Todo) DeepCopy() *Todo

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Todo.

func (*Todo) DeepCopyInto

func (in *Todo) DeepCopyInto(out *Todo)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Todo) DeepCopyObject

func (in *Todo) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Todo) Default

func (alert *Todo) Default()

func (*Todo) Descriptor

func (*Todo) Descriptor() ([]byte, []int)

func (*Todo) GetCond

func (alert *Todo) GetCond(t TodoConditionType) TodoCondition

func (*Todo) GetCondIdx

func (alert *Todo) GetCondIdx(t TodoConditionType) int

func (Todo) GetObservedGeneration added in v0.6.252

func (todo Todo) GetObservedGeneration() int64

func (Todo) GetStatus added in v0.6.252

func (todo Todo) GetStatus() proto.Message

func (*Todo) HasFinalizer

func (alert *Todo) HasFinalizer() bool

func (*Todo) IsReady

func (alert *Todo) IsReady() bool

func (*Todo) ManifestURI added in v0.5.472

func (alert *Todo) ManifestURI() string

func (*Todo) MarkArchived

func (alert *Todo) MarkArchived()

func (*Todo) MarkDone

func (task *Todo) MarkDone()

func (*Todo) Marshal

func (m *Todo) Marshal() (dAtA []byte, err error)

func (*Todo) MarshalTo

func (m *Todo) MarshalTo(dAtA []byte) (int, error)

func (*Todo) MarshalToSizedBuffer

func (m *Todo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Todo) ProtoMessage

func (*Todo) ProtoMessage()

func (*Todo) RemoveFinalizer

func (alert *Todo) RemoveFinalizer()

func (*Todo) Reset

func (m *Todo) Reset()

func (*Todo) RootURI added in v0.5.472

func (alert *Todo) RootURI() string

func (Todo) SetObservedGeneration added in v0.6.252

func (todo Todo) SetObservedGeneration(generation int64)

func (*Todo) SetStatus added in v0.6.252

func (todo *Todo) SetStatus(status interface{})

func (Todo) SetUpdatedAt added in v0.6.252

func (todo Todo) SetUpdatedAt(time *metav1.Time)

func (*Todo) SetupWebhookWithManager

func (alert *Todo) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Todo) Size

func (m *Todo) Size() (n int)

func (*Todo) String

func (this *Todo) String() string

func (*Todo) Unmarshal

func (m *Todo) Unmarshal(dAtA []byte) error

func (*Todo) ValidateCreate

func (alert *Todo) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Todo) ValidateDelete

func (alert *Todo) ValidateDelete() error

func (*Todo) ValidateUpdate

func (alert *Todo) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

func (*Todo) XXX_DiscardUnknown

func (m *Todo) XXX_DiscardUnknown()

func (*Todo) XXX_Marshal

func (m *Todo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Todo) XXX_Merge

func (m *Todo) XXX_Merge(src proto.Message)

func (*Todo) XXX_Size

func (m *Todo) XXX_Size() int

func (*Todo) XXX_Unmarshal

func (m *Todo) XXX_Unmarshal(b []byte) error

type TodoCondition

type TodoCondition struct {
	// Type of account condition.
	Type TodoConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=TodoConditionType"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,3,opt,name=lastTransitionTime"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`
	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
}

TodoCondition describes the state of the license at a certain point.

func (*TodoCondition) DeepCopy

func (in *TodoCondition) DeepCopy() *TodoCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TodoCondition.

func (*TodoCondition) DeepCopyInto

func (in *TodoCondition) DeepCopyInto(out *TodoCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TodoCondition) Descriptor

func (*TodoCondition) Descriptor() ([]byte, []int)

func (*TodoCondition) Marshal

func (m *TodoCondition) Marshal() (dAtA []byte, err error)

func (*TodoCondition) MarshalTo

func (m *TodoCondition) MarshalTo(dAtA []byte) (int, error)

func (*TodoCondition) MarshalToSizedBuffer

func (m *TodoCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TodoCondition) ProtoMessage

func (*TodoCondition) ProtoMessage()

func (*TodoCondition) Reset

func (m *TodoCondition) Reset()

func (*TodoCondition) Size

func (m *TodoCondition) Size() (n int)

func (*TodoCondition) String

func (this *TodoCondition) String() string

func (*TodoCondition) Unmarshal

func (m *TodoCondition) Unmarshal(dAtA []byte) error

func (*TodoCondition) XXX_DiscardUnknown

func (m *TodoCondition) XXX_DiscardUnknown()

func (*TodoCondition) XXX_Marshal

func (m *TodoCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TodoCondition) XXX_Merge

func (m *TodoCondition) XXX_Merge(src proto.Message)

func (*TodoCondition) XXX_Size

func (m *TodoCondition) XXX_Size() int

func (*TodoCondition) XXX_Unmarshal

func (m *TodoCondition) XXX_Unmarshal(b []byte) error

type TodoConditionType

type TodoConditionType string

Todo condition

const (
	TodoDone  TodoConditionType = "Done"
	TodoSaved TodoConditionType = "Saved"
)

/ Todo Condition

type TodoList

type TodoList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []Todo `json:"items" protobuf:"bytes,2,rep,name=items"`
}

+kubebuilder:object:root=true TodoList is a list of Todos

func (*TodoList) DeepCopy

func (in *TodoList) DeepCopy() *TodoList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TodoList.

func (*TodoList) DeepCopyInto

func (in *TodoList) DeepCopyInto(out *TodoList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TodoList) DeepCopyObject

func (in *TodoList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TodoList) Descriptor

func (*TodoList) Descriptor() ([]byte, []int)

func (*TodoList) Marshal

func (m *TodoList) Marshal() (dAtA []byte, err error)

func (*TodoList) MarshalTo

func (m *TodoList) MarshalTo(dAtA []byte) (int, error)

func (*TodoList) MarshalToSizedBuffer

func (m *TodoList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TodoList) ProtoMessage

func (*TodoList) ProtoMessage()

func (*TodoList) Reset

func (m *TodoList) Reset()

func (*TodoList) Size

func (m *TodoList) Size() (n int)

func (*TodoList) String

func (this *TodoList) String() string

func (*TodoList) Unmarshal

func (m *TodoList) Unmarshal(dAtA []byte) error

func (*TodoList) XXX_DiscardUnknown

func (m *TodoList) XXX_DiscardUnknown()

func (*TodoList) XXX_Marshal

func (m *TodoList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TodoList) XXX_Merge

func (m *TodoList) XXX_Merge(src proto.Message)

func (*TodoList) XXX_Size

func (m *TodoList) XXX_Size() int

func (*TodoList) XXX_Unmarshal

func (m *TodoList) XXX_Unmarshal(b []byte) error

type TodoSpec

type TodoSpec struct {
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Optional
	Description *string `json:"description,omitempty" protobuf:"bytes,1,opt,name=description"`
	// +kubebuilder:validation:Optional
	Tasks []TaskSpec `json:"task,omitempty" protobuf:"bytes,2,rep,name=tasks"`
	// The modela entity that the task refer to.
	// +kubebuilder:validation:Optional
	EntityRef v1.ObjectReference `json:"entityRef,omitempty" protobuf:"bytes,3,opt,name=entityRef"`
	// +kubebuilder:default:=""
	// +kubebuilder:validation:Required
	// NotifierName is the name of the notifier used to fire the alert.
	NotifierName *string `json:"notifierName,omitempty" protobuf:"bytes,4,opt,name=notifierName"`
	// Flagged donate that task was flagged
	// +kubebuilder:default:=false
	// +kubebuilder:validation:Optional
	Flagged *bool `json:"flagged,omitempty" protobuf:"varint,5,opt,name=flagged"`
	// TenantRef is the todo tenant
	// +kubebuilder:validation:Optional
	TenantRef *v1.ObjectReference `json:"tenantRef,omitempty" protobuf:"bytes,6,opt,name=tenantRef"`
}

TodoSpec defines the desired state of Todo

func (*TodoSpec) DeepCopy

func (in *TodoSpec) DeepCopy() *TodoSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TodoSpec.

func (*TodoSpec) DeepCopyInto

func (in *TodoSpec) DeepCopyInto(out *TodoSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TodoSpec) Descriptor

func (*TodoSpec) Descriptor() ([]byte, []int)

func (*TodoSpec) Marshal

func (m *TodoSpec) Marshal() (dAtA []byte, err error)

func (*TodoSpec) MarshalTo

func (m *TodoSpec) MarshalTo(dAtA []byte) (int, error)

func (*TodoSpec) MarshalToSizedBuffer

func (m *TodoSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TodoSpec) ProtoMessage

func (*TodoSpec) ProtoMessage()

func (*TodoSpec) Reset

func (m *TodoSpec) Reset()

func (*TodoSpec) Size

func (m *TodoSpec) Size() (n int)

func (*TodoSpec) String

func (this *TodoSpec) String() string

func (*TodoSpec) Unmarshal

func (m *TodoSpec) Unmarshal(dAtA []byte) error

func (*TodoSpec) XXX_DiscardUnknown

func (m *TodoSpec) XXX_DiscardUnknown()

func (*TodoSpec) XXX_Marshal

func (m *TodoSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TodoSpec) XXX_Merge

func (m *TodoSpec) XXX_Merge(src proto.Message)

func (*TodoSpec) XXX_Size

func (m *TodoSpec) XXX_Size() int

func (*TodoSpec) XXX_Unmarshal

func (m *TodoSpec) XXX_Unmarshal(b []byte) error

type TodoStatus

type TodoStatus struct {
	// ObservedGeneration is the Last generation that was acted on
	//+kubebuilder:validation:Optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`
	// Last time the object was updated
	//+kubebuilder:validation:Optional
	LastUpdated *metav1.Time `json:"lastUpdated,omitempty" protobuf:"bytes,2,opt,name=lastUpdated"`
	// +patchMergeKey=type
	// +patchStrategy=merge
	// +kubebuilder:validation:Optional
	Conditions []TodoCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,3,rep,name=conditions"`
}

TodoStatus is the observed state of a Todo

func (*TodoStatus) DeepCopy

func (in *TodoStatus) DeepCopy() *TodoStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TodoStatus.

func (*TodoStatus) DeepCopyInto

func (in *TodoStatus) DeepCopyInto(out *TodoStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TodoStatus) Descriptor

func (*TodoStatus) Descriptor() ([]byte, []int)

func (*TodoStatus) Marshal

func (m *TodoStatus) Marshal() (dAtA []byte, err error)

func (*TodoStatus) MarshalTo

func (m *TodoStatus) MarshalTo(dAtA []byte) (int, error)

func (*TodoStatus) MarshalToSizedBuffer

func (m *TodoStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TodoStatus) ProtoMessage

func (*TodoStatus) ProtoMessage()

func (*TodoStatus) Reset

func (m *TodoStatus) Reset()

func (*TodoStatus) Size

func (m *TodoStatus) Size() (n int)

func (*TodoStatus) String

func (this *TodoStatus) String() string

func (*TodoStatus) Unmarshal

func (m *TodoStatus) Unmarshal(dAtA []byte) error

func (*TodoStatus) XXX_DiscardUnknown

func (m *TodoStatus) XXX_DiscardUnknown()

func (*TodoStatus) XXX_Marshal

func (m *TodoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TodoStatus) XXX_Merge

func (m *TodoStatus) XXX_Merge(src proto.Message)

func (*TodoStatus) XXX_Size

func (m *TodoStatus) XXX_Size() int

func (*TodoStatus) XXX_Unmarshal

func (m *TodoStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL