obj

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewConditionPatcher(upd, orig *Condition) lifecycle.Persister

func NewKnativeRevisionPatcher

func NewKnativeRevisionPatcher(upd, orig *KnativeRevision) lifecycle.Persister

func NewKnativeServicePatcher

func NewKnativeServicePatcher(upd, orig *KnativeService) lifecycle.Persister

func NewPipelinePatcher

func NewPipelinePatcher(upd, orig *Pipeline) lifecycle.Persister

func NewPipelineRunPatcher

func NewPipelineRunPatcher(upd, orig *PipelineRun) lifecycle.Persister

func NewRunPatcher

func NewRunPatcher(upd, orig *Run) lifecycle.Persister

func NewTaskPatcher

func NewTaskPatcher(upd, orig *Task) lifecycle.Persister

func NewTenantPatcher

func NewTenantPatcher(upd, orig *Tenant) lifecycle.Persister

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 NewCondition(key client.ObjectKey) *Condition

func NewConditionFromObject

func NewConditionFromObject(obj *tektonv1alpha1.Condition) *Condition

func (*Condition) Copy

func (c *Condition) Copy() *Condition

type Configurable

type Configurable interface {
	Configure(ctx context.Context) error
}

type Core

func NewCore

func NewCore(key client.ObjectKey) *Core

func NewCoreFromObject

func NewCoreFromObject(obj *v1alpha1.RelayCore) *Core

func (*Core) Copy

func (c *Core) Copy() *Core

func (*Core) PersistStatus

func (c *Core) PersistStatus(ctx context.Context, cl client.Client) error

type IgnoreNilConfigurable

type IgnoreNilConfigurable struct {
	Configurable
}

func (IgnoreNilConfigurable) Configure

func (inc IgnoreNilConfigurable) Configure(ctx context.Context) error

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 NewPipeline(key client.ObjectKey) *Pipeline

func NewPipelineFromObject

func NewPipelineFromObject(obj *tektonv1beta1.Pipeline) *Pipeline

func (*Pipeline) Copy

func (p *Pipeline) Copy() *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 NewRun

func NewRun(key client.ObjectKey) *Run

func NewRunFromObject

func NewRunFromObject(obj *relayv1beta1.Run) *Run

func (*Run) Copy

func (r *Run) Copy() *Run

func (*Run) IsCancelled

func (r *Run) IsCancelled() bool

func (*Run) IsCondition

func (r *Run) IsCondition(rct relayv1beta1.RunConditionType, status corev1.ConditionStatus) bool

func (*Run) IsRunning

func (r *Run) IsRunning() bool

func (*Run) PersistStatus

func (r *Run) PersistStatus(ctx context.Context, cl client.Client) error

func (*Run) PodSelector

func (r *Run) PodSelector() metav1.LabelSelector

type Task

func NewTask

func NewTask(key client.ObjectKey) *Task

func NewTaskFromObject

func NewTaskFromObject(obj *tektonv1beta1.Task) *Task

func (*Task) Copy

func (t *Task) Copy() *Task

func (*Task) SetVolume

func (t *Task) SetVolume(spec corev1.Volume)

func (*Task) SetWorkspace

func (t *Task) SetWorkspace(spec tektonv1beta1.WorkspaceDeclaration)

type Tenant

type Tenant struct {
	*helper.NamespaceScopedAPIObject

	Key    client.ObjectKey
	Object *relayv1beta1.Tenant
}

func NewTenant

func NewTenant(key client.ObjectKey) *Tenant

func NewTenantFromObject

func NewTenantFromObject(obj *relayv1beta1.Tenant) *Tenant

func (*Tenant) Copy

func (t *Tenant) Copy() *Tenant

func (*Tenant) Managed

func (t *Tenant) Managed() bool

func (*Tenant) PersistStatus

func (t *Tenant) PersistStatus(ctx context.Context, cl client.Client) error

func (*Tenant) Ready

func (t *Tenant) Ready() bool

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 (wt *WebhookTrigger) PersistStatus(ctx context.Context, cl client.Client) error

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 NewWorkflow(key client.ObjectKey) *Workflow

func NewWorkflowFromObject

func NewWorkflowFromObject(obj *relayv1beta1.Workflow) *Workflow

func (*Workflow) Copy

func (w *Workflow) Copy() *Workflow

Jump to

Keyboard shortcuts

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