Documentation
¶
Index ¶
- Constants
- func FullPathInVulnmapCacheDir(cacheDir string, filename string) (string, error)
- func VulnmapCacheDir() (string, error)
- func VulnmapCacheDirImpl(osUtil VulnmapOSUtil) (string, error)
- func VulnmapTempDirectory(debugLogger *log.Logger) (string, error)
- type OutputDestination
- type OutputDestinationImpl
- type ToLog
- type ToZeroLogDebug
- type VulnmapOSUtil
Constants ¶
View Source
const ( FILEPERM_755 fs.FileMode = 0755 // Owner=rwx, Group=r-x, Other=r-x FILEPERM_666 fs.FileMode = 0666 // Owner=rw-, Group=rw-, Other=rw- )
Variables ¶
This section is empty.
Functions ¶
func VulnmapCacheDir ¶
func VulnmapCacheDirImpl ¶
func VulnmapCacheDirImpl(osUtil VulnmapOSUtil) (string, error)
Types ¶
type OutputDestination ¶
type OutputDestination interface { Println(a ...any) (n int, err error) Remove(name string) error WriteFile(filename string, data []byte, perm fs.FileMode) error }
func NewOutputDestination ¶
func NewOutputDestination() OutputDestination
type OutputDestinationImpl ¶
type OutputDestinationImpl struct{}
func (*OutputDestinationImpl) Println ¶
func (odi *OutputDestinationImpl) Println(a ...any) (n int, err error)
func (*OutputDestinationImpl) Remove ¶
func (odi *OutputDestinationImpl) Remove(name string) error
type ToLog ¶
ToLog is an io.Writer that can be used to write into a log.Logger, for example into an existing zerolog.Logger
type ToZeroLogDebug ¶
ToZeroLogDebug is an io.Writer that can be used for example with log.Logger to write to an existing zerolog writer
Click to show internal directories.
Click to hide internal directories.