Documentation ¶
Index ¶
- type DefaultJenkinsStorage
- func (s *DefaultJenkinsStorage) SaveBuild(build models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error)
- func (s *DefaultJenkinsStorage) SaveBuilds(builds []models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error)
- func (s *DefaultJenkinsStorage) SaveJob(job models.JenkinsJobProps) (context interface{}, err error)
- func (s *DefaultJenkinsStorage) SaveJobs(jobs []models.JenkinsJobProps) (context interface{}, err error)
- type JenkinsStorage
- type JenkinsWorker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultJenkinsStorage ¶
type DefaultJenkinsStorage struct {
// contains filtered or unexported fields
}
func NewDeafultJenkinsStorage ¶
func NewDeafultJenkinsStorage(db *gorm.DB) *DefaultJenkinsStorage
func (*DefaultJenkinsStorage) SaveBuild ¶
func (s *DefaultJenkinsStorage) SaveBuild(build models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error)
func (*DefaultJenkinsStorage) SaveBuilds ¶
func (s *DefaultJenkinsStorage) SaveBuilds(builds []models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error)
func (*DefaultJenkinsStorage) SaveJob ¶
func (s *DefaultJenkinsStorage) SaveJob(job models.JenkinsJobProps) (context interface{}, err error)
func (*DefaultJenkinsStorage) SaveJobs ¶
func (s *DefaultJenkinsStorage) SaveJobs(jobs []models.JenkinsJobProps) (context interface{}, err error)
type JenkinsStorage ¶
type JenkinsStorage interface { SaveJob(job models.JenkinsJobProps) (context interface{}, err error) SaveJobs(jobs []models.JenkinsJobProps) (context interface{}, err error) SaveBuild(build models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error) SaveBuilds(build []models.JenkinsBuildProps, ctx interface{}) (context interface{}, err error) }
type JenkinsWorker ¶
type JenkinsWorker struct {
// contains filtered or unexported fields
}
func NewJenkinsWorker ¶
func NewJenkinsWorker(client *http.Client, storage JenkinsStorage, base string, auth ...interface{}) *JenkinsWorker
func (*JenkinsWorker) SyncJobs ¶
func (worker *JenkinsWorker) SyncJobs(progress chan<- float32)
Click to show internal directories.
Click to hide internal directories.