forked from vmware-archive/atc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.go
37 lines (33 loc) · 989 Bytes
/
server.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package containerserver
import (
"code.cloudfoundry.org/lager"
"github.com/concourse/atc/creds"
"github.com/concourse/atc/db"
"github.com/concourse/atc/gc"
"github.com/concourse/atc/worker"
)
type Server struct {
logger lager.Logger
workerClient worker.Client
variablesFactory creds.VariablesFactory
interceptTimeoutFactory InterceptTimeoutFactory
containerRepository db.ContainerRepository
destroyer gc.Destroyer
}
func NewServer(
logger lager.Logger,
workerClient worker.Client,
variablesFactory creds.VariablesFactory,
interceptTimeoutFactory InterceptTimeoutFactory,
containerRepository db.ContainerRepository,
destroyer gc.Destroyer,
) *Server {
return &Server{
logger: logger,
workerClient: workerClient,
variablesFactory: variablesFactory,
interceptTimeoutFactory: interceptTimeoutFactory,
containerRepository: containerRepository,
destroyer: destroyer,
}
}