drone/types/enum/scm.go
2023-08-04 10:50:39 +01:00

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"
)