Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWrongConfig is returned when a scm has missing attributes which are mandatory ErrWrongConfig = errors.New("wrong scm configuration") )
Functions ¶
This section is empty.
Types ¶
type MockScm ¶
type MockScm struct { ScmHandler WorkingDir string ChangedFiles []string Err error }
MockScm is a stub implementation of the `Scm` interface to be used in our unit test suites. It stores the expected WorkingDir
func (*MockScm) GetChangedFiles ¶
func (*MockScm) GetDirectory ¶
type ScmHandler ¶
type ScmHandler interface { Add(files []string) error Clone() (string, error) Checkout() error GetDirectory() (directory string) Init(source string, pipelineID string) error Push() error Commit(message string) error Clean() error PushTag(tag string) error GetChangedFiles(workingDir string) ([]string, error) }
Scm is an interface that offers common functions for a source control manager like git or github
Click to show internal directories.
Click to hide internal directories.