예제 #1
0
파일: extend.go 프로젝트: jcantrill/geard
// Return a job extension that casts requests directly to jobs
// TODO: Move implementation out of request object and into a
//   specific package
func NewRouterExtension() jobs.JobExtension {
	return &jobs.JobInitializer{
		Extension: jobs.JobExtensionFunc(sharesImplementation),
		Func:      initRouter,
	}
}
예제 #2
0
파일: extend.go 프로젝트: kshi0310/geard
// Return a job extension that casts requests directly to jobs
// TODO: Move implementation out of request object and into a
//   specific package
func NewGitExtension() jobs.JobExtension {
	return &jobs.JobInitializer{
		Extension: jobs.JobExtensionFunc(implementsJob),
		Func:      initGit,
	}
}
예제 #3
0
파일: extend.go 프로젝트: jhadvig/geard
// Return a job extension that casts requests directly to jobs
// TODO: Move implementation out of request object and into a
//   specific package
func NewGitExtension() jobs.JobExtension {
	return &jobs.JobInitializer{
		Extension: jobs.JobExtensionFunc(sharesImplementation),
		Func:      initGit,
	}
}
예제 #4
0
파일: extend.go 프로젝트: jhadvig/geard
// Return a job extension that casts requests directly to jobs
// TODO: Move implementation out of request object and into a
//   specific package
func NewContainerExtension() jobs.JobExtension {
	return &jobs.JobInitializer{
		Extension: jobs.JobExtensionFunc(sharesImplementation),
		Func:      initContainers,
	}
}