Documentation ¶
Index ¶
- func ConvertBuilds() error
- func ConvertJobs() error
- 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 ¶
func ConvertBuilds ¶ added in v0.6.0
func ConvertBuilds() error
func ConvertJobs ¶ added in v0.6.0
func ConvertJobs() error
Types ¶
type DefaultJenkinsStorage ¶
type DefaultJenkinsStorage struct {
// contains filtered or unexported fields
}
func NewDefaultJenkinsStorage ¶ added in v0.6.0
func NewDefaultJenkinsStorage(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(scheduler *utils.WorkerScheduler) error
Click to show internal directories.
Click to hide internal directories.