Documentation ¶
Index ¶
- func ContainsInt(s []int, e int) bool
- func Copy(src, dst string) (int64, error)
- func FileExists(filename string) (bool, error)
- func PersistReportsAndLinks(stepName, workspace string, reports, links []Path)
- type FileUtils
- type Files
- func (f Files) Copy(src, dst string) (int64, error)
- func (f Files) FileExists(filename string) (bool, error)
- func (f Files) FileRead(path string) ([]byte, error)
- func (f Files) FileWrite(path string, content []byte, perm os.FileMode) error
- func (f Files) MkdirAll(path string, perm os.FileMode) error
- type Path
- type ProjectStructure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt ¶ added in v1.11.0
ContainsInt check wether the element is part of the slice
func PersistReportsAndLinks ¶ added in v1.11.0
PersistReportsAndLinks stores the report paths and links in JSON format in the workspace for processing outside
Types ¶
type FileUtils ¶ added in v1.15.0
type FileUtils interface { FileExists(filename string) (bool, error) Copy(src, dest string) (int64, error) FileRead(path string) ([]byte, error) FileWrite(path string, content []byte, perm os.FileMode) error MkdirAll(path string, perm os.FileMode) error }
FileUtils ...
type Files ¶ added in v1.15.0
type Files struct { }
Files ...
func (Files) FileExists ¶ added in v1.15.0
FileExists ...
type Path ¶ added in v1.11.0
type Path struct { Name string `json:"name"` Target string `json:"target"` Mandatory bool `json:"mandatory"` Scope string `json:"scope"` }
Path - struct to serialize paths and some metadata back to the invoker
type ProjectStructure ¶ added in v1.14.0
type ProjectStructure struct {
// contains filtered or unexported fields
}
ProjectStructure describes a directory containing source code
func (*ProjectStructure) UsesMaven ¶ added in v1.14.0
func (projectStructure *ProjectStructure) UsesMaven() bool
UsesMaven returns `true` if the project structure directory contains a pom.xml file, false otherwise
func (*ProjectStructure) UsesMta ¶ added in v1.14.0
func (projectStructure *ProjectStructure) UsesMta() bool
UsesMta returns `true` if the project structure directory contains typical files for mta projects (mta.yaml, mta.yml), `false` otherwise
func (*ProjectStructure) UsesNpm ¶ added in v1.14.0
func (projectStructure *ProjectStructure) UsesNpm() bool
UsesNpm returns `true` if the project structure directory contains a package.json file, false otherwise