mirror of
https://github.com/harness/drone.git
synced 2025-05-05 00:11:43 +08:00
21 lines
429 B
Go
21 lines
429 B
Go
package enum
|
|
|
|
// ScmType defines the different types of principal types at harness.
|
|
type ScmType string
|
|
|
|
func (ScmType) Enum() []interface{} { return toInterfaceSlice(scmTypes) }
|
|
|
|
var scmTypes = ([]ScmType{
|
|
ScmTypeGitness,
|
|
ScmTypeGithub,
|
|
ScmTypeGitlab,
|
|
ScmTypeUnknown,
|
|
})
|
|
|
|
const (
|
|
ScmTypeUnknown ScmType = "UNKNOWN"
|
|
ScmTypeGitness ScmType = "GITNESS"
|
|
ScmTypeGithub ScmType = "GITHUB"
|
|
ScmTypeGitlab ScmType = "GITLAB"
|
|
)
|