Documentation
¶
Index ¶
- func CreateExtractorPropsFile(configPropertiesPath string, configProperties map[string]string) (string, error)
- func CreateTempBuildFile(buildName, buildNumber, projectKey, buildsDirPath string, logger Log) (*os.File, error)
- func DoubleWinPathSeparator(filePath string) string
- func DownloadDependencies(downloadTo, filename, relativefilePath string, ...) error
- func DownloadFile(downloadTo string, fromUrl string) (err error)
- func GetBuildDir(buildName, buildNumber, projectKey, buildsDirPath string) (string, error)
- func GetPartialsBuildDir(buildName, buildNumber, projectKey, buildsDirPath string) (string, error)
- func IsDirExists(path string) (bool, error)
- func IsFileExists(path string) (bool, error)
- func IsPathExists(path string) bool
- func ListFiles(path string) ([]string, error)
- func NewDefaultLogger(logLevel LevelType) *defaultLogger
- type LevelType
- type Log
- type NullLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExtractorPropsFile ¶
func CreateExtractorPropsFile(configPropertiesPath string, configProperties map[string]string) (string, error)
Save all the extractor's properties into a local file. configPropertiesPath - path to a file where all the properties will be written. configProperties - the actual properties.
func CreateTempBuildFile ¶
func CreateTempBuildFile(buildName, buildNumber, projectKey, buildsDirPath string, logger Log) (*os.File, error)
Create a temp file of build-info.
func DoubleWinPathSeparator ¶
func DownloadDependencies ¶
func DownloadFile ¶
func GetBuildDir ¶
func GetPartialsBuildDir ¶
func IsDirExists ¶
func IsFileExists ¶
func NewDefaultLogger ¶
func NewDefaultLogger(logLevel LevelType) *defaultLogger
NewDefaultLogger creates a new logger with a given LogLevel. All logs are written to Stderr and output is written to Stdout.
Types ¶
type Log ¶
type Log interface { Debug(a ...interface{}) Info(a ...interface{}) Warn(a ...interface{}) Error(a ...interface{}) Output(a ...interface{}) }
Click to show internal directories.
Click to hide internal directories.