fileserver

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

fileserver

kubectl-curl

Examples

# browse
kubectl curl -k https://scanner-0:8443/files/ -n kubeops

# download
kubectl curl -k https://scanner-0:8443/files/a/b/kubectl -n kubeops > kubectl

# upload
kubectl curl -k -X POST -F file=@/opt/homebrew/bin/kubectl  https://scanner-0:8443/files/a/b -n kubeops

Documentation

Index

Constants

View Source
const MaxUploadSize = 100 << 30 // 1 GB

Variables

This section is empty.

Functions

func FileSave

func FileSave(prefix, dir string, r *http.Request) error

FileSave fetches the file and saves to disk

func MetadataFileExists added in v0.0.15

func MetadataFileExists(fsDir string) bool

func Router

func Router(prefix, dir string) http.Handler

func VulnerabilityDBLastUpdatedAt added in v0.0.8

func VulnerabilityDBLastUpdatedAt(fsDir string) (*trivy.Time, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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