tasks

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL