Documentation
¶
Index ¶
- Constants
- func CreateFilePath(path string) error
- func FullPathInSnykCacheDir(cacheDir string, filename string) (string, error)
- func IsCiEnvironment() bool
- func MergeMaps[K comparable, V any](mapA map[K]V, mapB map[K]V) map[K]V
- func SnykCacheDir() (string, error)
- func SnykCacheDirImpl(osUtil SnykOSUtil) (string, error)
- func SnykTempDirectory(debugLogger *log.Logger) (string, error)
- type OutputDestination
- type OutputDestinationImpl
- type SnykOSUtil
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 CreateFilePath ¶
func FullPathInSnykCacheDir ¶
func IsCiEnvironment ¶
func IsCiEnvironment() bool
func MergeMaps ¶
func MergeMaps[K comparable, V any](mapA map[K]V, mapB map[K]V) map[K]V
func SnykCacheDir ¶
func SnykCacheDirImpl ¶
func SnykCacheDirImpl(osUtil SnykOSUtil) (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
GetWriter() io.Writer
}
func NewOutputDestination ¶
func NewOutputDestination() OutputDestination
type OutputDestinationImpl ¶
type OutputDestinationImpl struct{}
func (*OutputDestinationImpl) GetWriter ¶
func (odi *OutputDestinationImpl) GetWriter() io.Writer
func (*OutputDestinationImpl) Println ¶
func (odi *OutputDestinationImpl) Println(a ...any) (n int, err error)
func (*OutputDestinationImpl) Remove ¶
func (odi *OutputDestinationImpl) Remove(name string) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.