Documentation ¶
Index ¶
- func CheckFile(path string) (string, error)
- func DecorateResults(result *parser.Result, cmd *cobra.Command) error
- func FindParser(path string, cmd *cobra.Command) (parser.Parser, error)
- func GzipCompress(data []byte) ([]byte, error)
- func GzipDecompress(data []byte) ([]byte, error)
- func IsGzipCompressed(bytes []byte) bool
- func Load(path string) (*parser.Result, error)
- func LoadFiles(inPaths []string, ext string) ([]string, error)
- func Marshal(testResults parser.Result) ([]byte, error)
- func MergeFiles(path string, cmd *cobra.Command) (*parser.Result, error)
- func Parse(p parser.Parser, path string, cmd *cobra.Command) (parser.Result, error)
- func PullArtifacts(level string, remotePath string, localPath string, cmd *cobra.Command) (string, error)
- func PushArtifacts(level string, file string, destination string, cmd *cobra.Command) (string, error)
- func SetLogLevel(cmd *cobra.Command) error
- func WriteToFile(data []byte, file *os.File, compress bool) (string, error)
- func WriteToFilePath(data []byte, path string, compress bool) (string, error)
- func WriteToTmpFile(data []byte, compress bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecorateResults ¶ added in v0.6.5
func FindParser ¶
FindParser finds parser according to file type or flag specified by user
func GzipCompress ¶ added in v0.7.0
takes a slice of data bytes, compresses it and replaces with compressed bytes
func GzipDecompress ¶ added in v0.7.0
func IsGzipCompressed ¶ added in v0.7.0
func LoadFiles ¶ added in v0.3.0
LoadFiles checks if path exists and can be `stat`ed at given `path`
func MergeFiles ¶ added in v0.3.0
MergeFiles merges all json files found in path into one big blob
func PullArtifacts ¶ added in v0.3.0
func PullArtifacts(level string, remotePath string, localPath string, cmd *cobra.Command) (string, error)
PullArtifacts fetches artifacts from semaphore artifact storage
func PushArtifacts ¶
func PushArtifacts(level string, file string, destination string, cmd *cobra.Command) (string, error)
PushArtifacts publishes artifacts to semaphore artifact storage
func SetLogLevel ¶
SetLogLevel sets log level according to flags
func WriteToFilePath ¶ added in v0.6.8
WriteToFilePath saves data to given file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.