Documentation
¶
Index ¶
- Constants
- Variables
- func AskYesNoWithTimeout(prompt string, timeout time.Duration) bool
- func CreateDataExport(ctx context.Context, deName, namespace, ttl, volumeKind, volumeName string, ...) error
- func CreateDataExporterIfNeeded(ctx context.Context, log *slog.Logger, deName, namespace string, publish bool, ...) (string, error)
- func DeleteDataExport(ctx context.Context, deName, namespace string, rtClient ctrlrtclient.Client) error
- func GetDataExport(ctx context.Context, deName, namespace string, rtClient ctrlrtclient.Client) (*v1alpha1.DataExport, error)
- func GetDataExportWithRestart(ctx context.Context, deName, namespace string, rtClient ctrlrtclient.Client) (*v1alpha1.DataExport, error)
- func PrepareDownload(ctx context.Context, log *slog.Logger, deName, namespace string, publish bool, ...) (url, volumeMode string, subClient *safeClient.SafeClient, finErr error)
- func SetupLogger() *slog.Logger
Constants ¶
View Source
const ( PersistentVolumeClaimKind = "PersistentVolumeClaim" VolumeSnapshotKind = "VolumeSnapshot" VirtualDiskKind = "VirtualDisk" VirtualDiskSnapshotKind = "VirtualDiskSnapshot" )
Variables ¶
View Source
var ( PrepareDownloadFunc = PrepareDownload CreateDataExporterIfNeededFunc = CreateDataExporterIfNeeded )
Function pointers for test stubbing
View Source
var (
ErrUnsupportedVolumeMode = errors.New("invalid volume mode")
)
Functions ¶
func CreateDataExport ¶
func DeleteDataExport ¶
func GetDataExport ¶
func GetDataExport(ctx context.Context, deName, namespace string, rtClient ctrlrtclient.Client) (*v1alpha1.DataExport, error)
func GetDataExportWithRestart ¶
func GetDataExportWithRestart(ctx context.Context, deName, namespace string, rtClient ctrlrtclient.Client) (*v1alpha1.DataExport, error)
func PrepareDownload ¶
func PrepareDownload(ctx context.Context, log *slog.Logger, deName, namespace string, publish bool, sClient *safeClient.SafeClient) (url, volumeMode string, subClient *safeClient.SafeClient, finErr error)
func SetupLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.