Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestsMapKeyedByName ¶
Types ¶
type CaptureSpec ¶
type HookSpec ¶
type HookSpec struct { Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Command []string `json:"command,omitempty"` //+optional Timeout *metav1.Duration `json:"timeout,omitempty"` //+optional Container *string `json:"container,omitempty"` //+optional LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` }
type KubeResourcesSpec ¶
type KubeResourcesSpec struct { //+optional IncludedNamespaces []string `json:"includedNamespaces,omitempty"` //+optional IncludedResources []string `json:"includedResources,omitempty"` //+optional ExcludedResources []string `json:"excludedResources,omitempty"` //+optional Hooks []HookSpec `json:"hooks,omitempty"` }
type ProtectRequest ¶
type ProtectRequest interface{ Request }
type RecoverRequest ¶
type RecoverRequest interface{ Request }
type RecoverSpec ¶
type RecoverSpec struct { //+optional BackupName string `json:"backupName,omitempty"` Spec `json:",inline"` //+optional NamespaceMapping map[string]string `json:"namespaceMapping,omitempty"` //+optional RestoreStatus *velero.RestoreStatusSpec `json:"restoreStatus,omitempty"` //+optional ExistingResourcePolicy velero.PolicyType `json:"existingResourcePolicy,omitempty"` }
type RequestProcessingError ¶
type RequestProcessingError struct {
// contains filtered or unexported fields
}
func RequestProcessingErrorCreate ¶
func RequestProcessingErrorCreate(s string) RequestProcessingError
func (RequestProcessingError) Error ¶
func (e RequestProcessingError) Error() string
func (RequestProcessingError) Is ¶
func (RequestProcessingError) Is(err error) bool
type RequestsManager ¶
type RequestsManager interface { ProtectsPath() string RecoversPath() string ProtectRequestNew() ProtectRequest RecoverRequestNew() RecoverRequest ProtectRequestCreate( c context.Context, w client.Writer, l logr.Logger, s3Url string, s3BucketName string, s3RegionName string, s3KeyPrefix string, secretKeyRef *corev1.SecretKeySelector, caCertificates []byte, objectsSpec Spec, requestNamespaceName string, protectRequestName string, labels map[string]string, annotations map[string]string, ) (ProtectRequest, error) RecoverRequestCreate( c context.Context, w client.Writer, l logr.Logger, s3Url string, s3BucketName string, s3RegionName string, s3KeyPrefix string, secretKeyRef *corev1.SecretKeySelector, caCertificates []byte, recoverSpec RecoverSpec, requestNamespaceName string, protectRequestName string, protectRequest ProtectRequest, recoverRequestName string, labels map[string]string, annotations map[string]string, ) (RecoverRequest, error) ProtectRequestsGet( c context.Context, r client.Reader, requestNamespaceName string, labels map[string]string, ) (Requests, error) RecoverRequestsGet( c context.Context, r client.Reader, requestNamespaceName string, labels map[string]string, ) (Requests, error) ProtectRequestsDelete(c context.Context, w client.Writer, requestNamespaceName string, labels map[string]string) error RecoverRequestsDelete(c context.Context, w client.Writer, requestNamespaceName string, labels map[string]string) error }
type Spec ¶
type Spec struct { KubeResourcesSpec `json:",inline"` //+optional LabelSelector *metav1.LabelSelector `json:"labelSelector,omitempty"` //+optional OrLabelSelectors []*metav1.LabelSelector `json:"orLabelSelectors,omitempty"` //+optional IncludeClusterResources *bool `json:"includeClusterResources,omitempty"` }
Click to show internal directories.
Click to hide internal directories.