status

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ServiceBindingGetErrorReason is added in an usage when we cannot get a given ServiceBinding
	ServiceBindingGetErrorReason = "ServiceBindingGetError"
	// ServiceBindingOngoingAsyncOptReason is added in an usage when given ServiceBinding has ongoing async operation
	ServiceBindingOngoingAsyncOptReason = "ServiceBindingAsyncOperationInProgressError"
	// ServiceBindingNotReadyReason id added in an usage when given ServiceBinding is not in ready state
	ServiceBindingNotReadyReason = "ServiceBindingNotReadyError"
	// PodPresetUpsertErrorReason is added in an usage when we cannot create a new PodPreset
	PodPresetUpsertErrorReason = "PodPresetUpsertError"
	// FetchBindingLabelsErrorReason is added in an usage when we cannot fetch labels from given ClusterServiceClass
	FetchBindingLabelsErrorReason = "ServiceClassGetBindingLabelsError"
	// ApplyLabelsConflictErrorReason is added in a usage when we cannot add labels to the given resource because they already exists
	ApplyLabelsConflictErrorReason = "ApplyLabelsConflictError"
	// EnsureLabelsAppliedErrorReason is added in a usage when we cannot add labels to the given resource, e.g. given resource does not exits
	EnsureLabelsAppliedErrorReason = "EnsureLabelsAppliedError"

	// EnsureLabelsDeletedErrorReason is added in a usage when we cannot deleted labels from the given resource
	EnsureLabelsDeletedErrorReason = "EnsureLabelsDeletedError"
	// PodPresetDeleteErrorReason is added in an usage when we cannot delete a new PodPreset
	PodPresetDeleteErrorReason = "PodPresetDeleteError"
	// GetStoredSpecError is added in an usage when we cannot get stored spec for given ServiceBindingUsage
	GetStoredSpecError = "GetStoredSBUSpecError"
)

Variables

View Source
var TimeNowFn = metaV1.Now

TimeNowFn is used for getting time for a new condition. It's exported to allow client to mock it in tests.

Functions

func GetUsageCondition

GetUsageCondition returns the condition with the provided type or nil if not found.

func NewUsageCondition

NewUsageCondition creates a new usage condition.

func SetUsageCondition

func SetUsageCondition(status *sbuTypes.ServiceBindingUsageStatus, condition sbuTypes.ServiceBindingUsageCondition)

SetUsageCondition updates the usage to include the provided condition. If the condition that we are about to add already exists and has the same status then we are not going to update the LastTransitionTime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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