util

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerInterface

type HandlerInterface interface {
	Healthz(w http.ResponseWriter, r *http.Request)
	ApiV1GetScans(w http.ResponseWriter, r *http.Request)
	ApiV1GetScan(w http.ResponseWriter, r *http.Request, imageId generated.ImageID)
	ApiV1GetTests(w http.ResponseWriter, r *http.Request)
	ApiV1GetTest(w http.ResponseWriter, r *http.Request, imageId generated.ImageID)
}

type S3Interface

type S3Interface interface {
	List() ([]string, error)
	Fetch(string) ([]byte, error)
	Put(string, string, io.ReadSeeker) error
}

type SSHInterface

type SSHInterface interface {
	CopyFromRemoteServer(srcPath, dstPath, filename string) (*os.File, error)
	SSHClose() error
	SFTPClose() error
}

type VaultInterface

type VaultInterface interface {
	Fetch(mountPath, secretPath, data string) ([]byte, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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