common

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceInstanceController       ControllerName = "ServiceInstance"
	ServiceBindingController        ControllerName = "ServiceBinding"
	FinalizerName                   string         = "services.cloud.sap.com/sap-btp-finalizer"
	StaleBindingIDLabel             string         = "services.cloud.sap.com/stale"
	StaleBindingRotationOfLabel     string         = "services.cloud.sap.com/rotationOf"
	ForceRotateAnnotation           string         = "services.cloud.sap.com/forceRotate"
	PreventDeletion                 string         = "services.cloud.sap.com/preventDeletion"
	UseInstanceMetadataNameInSecret string         = "services.cloud.sap.com/useInstanceMetadataName"
)
View Source
const (
	// ConditionSucceeded represents whether the last operation CREATE/UPDATE/DELETE was successful.
	ConditionSucceeded = "Succeeded"

	// ConditionFailed represents information about a final failure that should not be retried.
	ConditionFailed = "Failed"

	// ConditionReady represents if the resource ready for usage.
	ConditionReady = "Ready"

	// ConditionCredRotationInProgress represents if cred rotation is in progress
	ConditionCredRotationInProgress = "CredRotationInProgress"

	// ConditionPendingTermination resource is waiting for termination pre-conditions
	ConditionPendingTermination = "PendingTermination"

	// ConditionShared represents information about the instance share situation
	ConditionShared = "Shared"
)
View Source
const (
	NamespaceLabel = "_namespace"
	K8sNameLabel   = "_k8sname"
	ClusterIDLabel = "_clusterid"

	Created        = "Created"
	Updated        = "Updated"
	Deleted        = "Deleted"
	Provisioned    = "Provisioned"
	NotProvisioned = "NotProvisioned"

	CreateInProgress = "CreateInProgress"
	UpdateInProgress = "UpdateInProgress"
	DeleteInProgress = "DeleteInProgress"
	InProgress       = "InProgress"
	Finished         = "Finished"

	CreateFailed      = "CreateFailed"
	UpdateFailed      = "UpdateFailed"
	DeleteFailed      = "DeleteFailed"
	Failed            = "Failed"
	ShareFailed       = "ShareFailed"
	ShareSucceeded    = "ShareSucceeded"
	ShareNotSupported = "ShareNotSupported"
	UnShareFailed     = "UnShareFailed"
	UnShareSucceeded  = "UnShareSucceeded"

	Blocked = "Blocked"
	Unknown = "Unknown"

	// Cred Rotation
	CredPreparing = "Preparing"
	CredRotating  = "Rotating"

	// Constance for seceret template
	InstanceKey    = "instance"
	CredentialsKey = "credentials"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerName

type ControllerName string

type HTTPStatusCodeError

type HTTPStatusCodeError struct {
	// StatusCode is the HTTP status code returned by the broker.
	StatusCode int
	// ErrorMessage is a machine-readable error string that may be returned by the broker.
	ErrorMessage *string
	// Description is a human-readable description of the error that may be returned by the broker.
	Description *string
	// ResponseError is set to the error that occurred when unmarshalling a response body from the broker.
	ResponseError error
}

func (HTTPStatusCodeError) Error

func (e HTTPStatusCodeError) Error() string

type SAPBTPResource

type SAPBTPResource interface {
	client.Object
	SetConditions([]metav1.Condition)
	GetConditions() []metav1.Condition
	GetControllerName() ControllerName
	GetParameters() *runtime.RawExtension
	GetStatus() interface{}
	SetStatus(status interface{})
	GetObservedGeneration() int64
	SetObservedGeneration(int64)
	DeepClone() SAPBTPResource
	SetReady(metav1.ConditionStatus)
	GetReady() metav1.ConditionStatus
	GetAnnotations() map[string]string
	SetAnnotations(map[string]string)
}

+kubebuilder:object:generate=false

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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