tasks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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