Documentation ¶
Index ¶
- Constants
- Variables
- func NewConditionPatcher(upd, orig *Condition) lifecycle.Persister
- func NewKnativeRevisionPatcher(upd, orig *KnativeRevision) lifecycle.Persister
- func NewKnativeServicePatcher(upd, orig *KnativeService) lifecycle.Persister
- func NewPipelinePatcher(upd, orig *Pipeline) lifecycle.Persister
- func NewPipelineRunPatcher(upd, orig *PipelineRun) lifecycle.Persister
- func NewRunPatcher(upd, orig *Run) lifecycle.Persister
- func NewTaskPatcher(upd, orig *Task) lifecycle.Persister
- func NewTenantPatcher(upd, orig *Tenant) lifecycle.Persister
- func NewWebhookTriggerPatcher(upd, orig *WebhookTrigger) lifecycle.Persister
- type Condition
- type Configurable
- type Core
- type IgnoreNilConfigurable
- type KnativeRevision
- type KnativeService
- type Pipeline
- type PipelineRun
- type Run
- func (r *Run) Copy() *Run
- func (r *Run) IsCancelled() bool
- func (r *Run) IsCondition(rct relayv1beta1.RunConditionType, status corev1.ConditionStatus) bool
- func (r *Run) IsRunning() bool
- func (r *Run) PersistStatus(ctx context.Context, cl client.Client) error
- func (r *Run) PodSelector() metav1.LabelSelector
- type Task
- type Tenant
- type WebhookTrigger
- type Workflow
Constants ¶
View Source
const ( TenantStatusReasonNamespaceReady = "NamespaceReady" TenantStatusReasonNamespaceError = "NamespaceError" TenantStatusReasonEventSinkMissing = "EventSinkMissing" TenantStatusReasonEventSinkNotConfigured = "EventSinkNotConfigured" TenantStatusReasonEventSinkReady = "EventSinkReady" TenantStatusReasonReady = "Ready" TenantStatusReasonError = "Error" )
View Source
const ( WebhookTriggerStatusReasonServiceReady = "ServiceReady" WebhookTriggerStatusReasonServiceError = "ServiceError" WebhookTriggerStatusReasonReady = "Ready" WebhookTriggerStatusReasonError = "Error" )
View Source
const (
RunStateCancel = "cancel"
)
Variables ¶
View Source
var (
ConditionKind = tektonv1alpha1.SchemeGroupVersion.WithKind("Condition")
)
View Source
var (
KnativeRevisionKind = servingv1.SchemeGroupVersion.WithKind("Revision")
)
View Source
var (
KnativeServiceKind = servingv1.SchemeGroupVersion.WithKind("Service")
)
View Source
var (
PipelineKind = tektonv1beta1.SchemeGroupVersion.WithKind("Pipeline")
)
View Source
var (
PipelineRunKind = tektonv1beta1.SchemeGroupVersion.WithKind("PipelineRun")
)
View Source
var (
TaskKind = tektonv1beta1.SchemeGroupVersion.WithKind("Task")
)
Functions ¶
func NewConditionPatcher ¶
func NewKnativeRevisionPatcher ¶
func NewKnativeRevisionPatcher(upd, orig *KnativeRevision) lifecycle.Persister
func NewKnativeServicePatcher ¶
func NewKnativeServicePatcher(upd, orig *KnativeService) lifecycle.Persister
func NewPipelinePatcher ¶
func NewPipelineRunPatcher ¶
func NewPipelineRunPatcher(upd, orig *PipelineRun) lifecycle.Persister
func NewRunPatcher ¶
func NewTaskPatcher ¶
func NewTenantPatcher ¶
func NewWebhookTriggerPatcher ¶
func NewWebhookTriggerPatcher(upd, orig *WebhookTrigger) lifecycle.Persister
Types ¶
type Condition ¶
type Condition struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *tektonv1alpha1.Condition }
func NewCondition ¶
func NewConditionFromObject ¶
func NewConditionFromObject(obj *tektonv1alpha1.Condition) *Condition
type Configurable ¶
type Core ¶
type Core struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *v1alpha1.RelayCore }
func NewCoreFromObject ¶
type IgnoreNilConfigurable ¶
type IgnoreNilConfigurable struct {
Configurable
}
type KnativeRevision ¶
type KnativeRevision struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *servingv1.Revision }
func NewKnativeRevision ¶
func NewKnativeRevision(key client.ObjectKey) *KnativeRevision
func NewKnativeRevisionFromObject ¶
func NewKnativeRevisionFromObject(obj *servingv1.Revision) *KnativeRevision
func (*KnativeRevision) Copy ¶
func (kr *KnativeRevision) Copy() *KnativeRevision
type KnativeService ¶
type KnativeService struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *servingv1.Service }
func NewKnativeService ¶
func NewKnativeService(key client.ObjectKey) *KnativeService
func NewKnativeServiceFromObject ¶
func NewKnativeServiceFromObject(obj *servingv1.Service) *KnativeService
func (*KnativeService) Copy ¶
func (ks *KnativeService) Copy() *KnativeService
type Pipeline ¶
type Pipeline struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *tektonv1beta1.Pipeline }
func NewPipeline ¶
func NewPipelineFromObject ¶
func NewPipelineFromObject(obj *tektonv1beta1.Pipeline) *Pipeline
func (*Pipeline) SetWorkspace ¶
func (p *Pipeline) SetWorkspace(spec tektonv1beta1.PipelineWorkspaceDeclaration)
type PipelineRun ¶
type PipelineRun struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *tektonv1beta1.PipelineRun }
func NewPipelineRun ¶
func NewPipelineRun(key client.ObjectKey) *PipelineRun
func NewPipelineRunFromObject ¶
func NewPipelineRunFromObject(obj *tektonv1beta1.PipelineRun) *PipelineRun
func (*PipelineRun) Copy ¶
func (pr *PipelineRun) Copy() *PipelineRun
type Run ¶
type Run struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *relayv1beta1.Run }
func NewRunFromObject ¶
func NewRunFromObject(obj *relayv1beta1.Run) *Run
func (*Run) IsCancelled ¶
func (*Run) IsCondition ¶
func (r *Run) IsCondition(rct relayv1beta1.RunConditionType, status corev1.ConditionStatus) bool
func (*Run) PersistStatus ¶
func (*Run) PodSelector ¶
func (r *Run) PodSelector() metav1.LabelSelector
type Task ¶
type Task struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *tektonv1beta1.Task }
func NewTaskFromObject ¶
func NewTaskFromObject(obj *tektonv1beta1.Task) *Task
func (*Task) SetWorkspace ¶
func (t *Task) SetWorkspace(spec tektonv1beta1.WorkspaceDeclaration)
type Tenant ¶
type Tenant struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *relayv1beta1.Tenant }
func NewTenantFromObject ¶
func NewTenantFromObject(obj *relayv1beta1.Tenant) *Tenant
func (*Tenant) PersistStatus ¶
type WebhookTrigger ¶
type WebhookTrigger struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *relayv1beta1.WebhookTrigger }
func NewWebhookTrigger ¶
func NewWebhookTrigger(key client.ObjectKey) *WebhookTrigger
func NewWebhookTriggerFromObject ¶
func NewWebhookTriggerFromObject(obj *relayv1beta1.WebhookTrigger) *WebhookTrigger
func (*WebhookTrigger) Copy ¶
func (wt *WebhookTrigger) Copy() *WebhookTrigger
func (*WebhookTrigger) PersistStatus ¶
func (*WebhookTrigger) PodSelector ¶
func (wt *WebhookTrigger) PodSelector() metav1.LabelSelector
func (*WebhookTrigger) Ready ¶
func (wt *WebhookTrigger) Ready() bool
type Workflow ¶
type Workflow struct { *helper.NamespaceScopedAPIObject Key client.ObjectKey Object *relayv1beta1.Workflow }
func NewWorkflow ¶
func NewWorkflowFromObject ¶
func NewWorkflowFromObject(obj *relayv1beta1.Workflow) *Workflow
Click to show internal directories.
Click to hide internal directories.