conditions

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCompleteFailed

func SetCompleteFailed(c Conditioner)

func SetCompleteFailedWithMessage

func SetCompleteFailedWithMessage(c Conditioner, message string)

func SetCompleteWithCronJob added in v0.0.2

func SetCompleteWithCronJob(c Conditioner, cronJob *batchv1.CronJob)

func SetCompleteWithJob

func SetCompleteWithJob(c Conditioner, job *batchv1.Job)

func SetReadyCreated

func SetReadyCreated(c Conditioner)

func SetReadyCreatedWithMessage

func SetReadyCreatedWithMessage(c Conditioner, message string)

func SetReadyFailed

func SetReadyFailed(c Conditioner)

func SetReadyFailedWithMessage

func SetReadyFailedWithMessage(c Conditioner, message string)

Types

type Complete

type Complete struct {
	// contains filtered or unexported fields
}

func NewComplete

func NewComplete(client client.Client) *Complete

func (*Complete) FailedPatcher

func (p *Complete) FailedPatcher(msg string) Patcher

func (*Complete) PatcherWithCronJob added in v0.0.2

func (p *Complete) PatcherWithCronJob(ctx context.Context, err error, key types.NamespacedName) (Patcher, error)

func (*Complete) PatcherWithJob

func (p *Complete) PatcherWithJob(ctx context.Context, err error, key types.NamespacedName) (Patcher, error)

func (*Complete) RefResolverPatcher

func (p *Complete) RefResolverPatcher(err error, obj runtime.Object) Patcher

type Conditioner

type Conditioner interface {
	SetCondition(condition metav1.Condition)
}

type Patcher

type Patcher func(Conditioner)

type Ready

type Ready struct{}

func NewReady

func NewReady() *Ready

func (*Ready) FailedPatcher

func (p *Ready) FailedPatcher(msg string) Patcher

func (*Ready) PatcherWithError

func (p *Ready) PatcherWithError(err error) Patcher

func (*Ready) RefResolverPatcher

func (p *Ready) RefResolverPatcher(err error, obj interface{}) Patcher

Jump to

Keyboard shortcuts

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