package
0.0.0-20241216140236-1a8f036376c1
Repository: https://github.com/migtools/oadp-non-admin.git
Documentation: pkg.go.dev
# Functions
CheckVeleroBackupMetadata return true if Velero Backup object has required Non Admin labels and annotations, false otherwise.
CheckVeleroRestoreMetadata return true if Velero Restore object has required Non Admin labels and annotations, false otherwise.
GenerateNacObjectUUID generates a unique name based on the provided namespace and object origin name.
GetActiveVeleroBackupsByLabel retrieves all VeleroBackup objects based on a specified label within a given namespace.
GetBackupQueueInfo determines the queue position of the specified VeleroBackup.
GetLogger return a logger from input ctx, with additional key/value pairs being input key and input obj name and namespace.
GetNonAdminBackupAnnotations return the required Non Admin annotations.
GetNonAdminLabels return the required Non Admin labels.
GetNonAdminRestoreAnnotations return the required Non Admin restore annotations.
GetNonAdminRestoreLabels return the required Non Admin restore labels.
GetVeleroBackupByLabel retrieves a VeleroBackup object based on a specified label within a given namespace.
GetVeleroDeleteBackupRequestByLabel retrieves a DeleteBackupRequest object based on a specified label within a given namespace.
GetVeleroRestoreByLabel retrieves a VeleroRestore object based on a specified label within a given namespace.
ListObjectsByLabel retrieves a list of Kubernetes objects in a specified namespace that match a given label key-value pair.
ValidateBackupSpec return nil, if NonAdminBackup is valid; error otherwise.
ValidateRestoreSpec return nil, if NonAdminRestore is valid; error otherwise.