mirror of
https://github.com/rancher/os.git
synced 2025-09-23 03:20:07 +00:00
move dependencies to vendor
This commit is contained in:
13
vendor/github.com/docker/libcompose/docker/service_factory.go
generated
vendored
Normal file
13
vendor/github.com/docker/libcompose/docker/service_factory.go
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
package docker
|
||||
|
||||
import "github.com/docker/libcompose/project"
|
||||
|
||||
// ServiceFactory is an implementation of project.ServiceFactory.
|
||||
type ServiceFactory struct {
|
||||
context *Context
|
||||
}
|
||||
|
||||
// Create creates a Service based on the specified project, name and service configuration.
|
||||
func (s *ServiceFactory) Create(project *project.Project, name string, serviceConfig *project.ServiceConfig) (project.Service, error) {
|
||||
return NewService(name, serviceConfig, s.context), nil
|
||||
}
|
Reference in New Issue
Block a user