Documentation ¶
Index ¶
- Constants
- func CreateDir(path string) error
- func CreateFile(path string) (*os.File, error)
- func FileExists(path string) bool
- func GetDataPath(path string) string
- func GetKeyPath(path string) string
- func GetPubKey(path string) ([]string, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func ParsePath(path string) (string, string, string, bool)
- func SplitPath(path string) (string, string)
Constants ¶
View Source
const ( // DataPath is the root folder for cve storage DataPath = "data" // KeyPath is the directory in which keys are stored KeyPath = "signature" // LicensePath is the name of the license file stored in local LicensePath = "LICENSE" )
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates a file in a given path if it does not exist
func FileExists ¶
FileExists checks if a file exists at the specified path
func GetDataPath ¶
GetDataPath returns the data path joined with the base path
func GetKeyPath ¶
GetKeyPath returns the key path joined with the base path
func GetPubKey ¶
GetPubKey walks the path and finds all gpg public armored keys in that directory (that ends with .asc)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.