creating

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkCreatingFalseForExistingObject

func MarkCreatingFalseForExistingObject(object conditions.Object)

MarkCreatingFalseForExistingObject sets Creating condition with status False, reason ExistingObject, severity Info and a message informing that the object was already created.

func MarkCreatingFalseWithCreationCompleted

func MarkCreatingFalseWithCreationCompleted(object conditions.Object)

MarkCreatingFalseWithCreationCompleted sets Creating condition with status False, reason CreationCompleted, severity Info and a message informing how long the creation took.

func MarkCreatingTrue

func MarkCreatingTrue(object conditions.Object)

MarkCreatingTrue sets Creating condition with status True.

Types

type Handler

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

func NewHandler

func NewHandler(config HandlerConfig) (*Handler, error)

func (*Handler) EnsureCreated

func (h *Handler) EnsureCreated(ctx context.Context, object interface{}) error

func (*Handler) EnsureDeleted

func (h *Handler) EnsureDeleted(_ context.Context, _ interface{}) error

func (*Handler) Name

func (h *Handler) Name() string

type HandlerConfig

type HandlerConfig struct {
	CtrlClient ctrl.Client
	Logger     micrologger.Logger

	Name         string
	UpdateStatus bool
}

Jump to

Keyboard shortcuts

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