コード例 #1
0
ファイル: stop.go プロジェクト: nimbus-cloud/bosh-agent
func NewStop(jobSupervisor boshjobsuper.JobSupervisor, dualDCSupport *nimbus.DualDCSupport, platform boshplatform.Platform) (stop StopAction) {
	stop = StopAction{
		jobSupervisor: jobSupervisor,
		actionHook:    nimbus.NewActionHook(platform, dualDCSupport),
	}
	return
}
コード例 #2
0
ファイル: apply.go プロジェクト: nimbus-cloud/bosh-agent
func NewApply(
	applier boshappl.Applier,
	specService boshas.V1Service,
	settingsService boshsettings.Service,
	dualDCSupport *nimbus.DualDCSupport,
	platform boshplatform.Platform,
) (action ApplyAction) {
	action.applier = applier
	action.specService = specService
	action.settingsService = settingsService
	action.actionHook = nimbus.NewActionHook(platform, dualDCSupport)
	return
}