uploadmgr

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBundleCacheDir = "/var/cache/uploads"

Variables

This section is empty.

Functions

func NewBundleGC

func NewBundleGC(cache cache.Cache, storageDir string, storageSyncInterval time.Duration) manager.Runnable

NewBundleGC returns a Runnable for controller-runtime that automatically garbage-collects bundle uploads as those bundles are deleted. In case deletion events are missed, the garbage collector also periodically deletes files in the storageDir that are not associated with an active uploaded bundle.

func NewUploadHandler

func NewUploadHandler(cl client.Client, storageDir string) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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