urldownload

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsURLSupported

func IsURLSupported(rawURL string) (*url.URL, error)

Types

type StorageProvider

type StorageProvider struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(cm *system.CleanupManager) (*StorageProvider, error)

func (*StorageProvider) CleanupStorage

func (sp *StorageProvider) CleanupStorage(
	ctx context.Context,
	_ model.StorageSpec,
	volume storage.StorageVolume,
) error

func (*StorageProvider) Explode

func (*StorageProvider) GetVolumeSize

func (sp *StorageProvider) GetVolumeSize(context.Context, model.StorageSpec) (uint64, error)

func (*StorageProvider) HasStorageLocally

func (sp *StorageProvider) HasStorageLocally(context.Context, model.StorageSpec) (bool, error)

func (*StorageProvider) IsInstalled

func (sp *StorageProvider) IsInstalled(context.Context) (bool, error)

func (*StorageProvider) PrepareStorage

func (sp *StorageProvider) PrepareStorage(ctx context.Context, storageSpec model.StorageSpec) (storage.StorageVolume, error)

PrepareStorage will download the file from the URL

func (*StorageProvider) Upload

Jump to

Keyboard shortcuts

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