1
0
mirror of https://github.com/rancher/os.git synced 2025-09-28 22:15:10 +00:00

move dependencies to vendor

This commit is contained in:
Ivan Mikushin
2015-11-26 17:37:01 +05:00
parent 63d7de67cd
commit 1d691cd8d6
2232 changed files with 154499 additions and 9037 deletions

36
vendor/github.com/docker/libcompose/docker/context.go generated vendored Normal file
View File

@@ -0,0 +1,36 @@
package docker
import (
"github.com/docker/docker/cliconfig"
"github.com/docker/libcompose/project"
)
// Context holds context meta information about a libcompose project and docker
// client information (like configuration file, builder to use, …)
type Context struct {
project.Context
Builder Builder
ClientFactory ClientFactory
ConfigDir string
ConfigFile *cliconfig.ConfigFile
}
func (c *Context) open() error {
return c.LookupConfig()
}
// LookupConfig tries to load the docker configuration files, if any.
func (c *Context) LookupConfig() error {
if c.ConfigFile != nil {
return nil
}
config, err := cliconfig.Load(c.ConfigDir)
if err != nil {
return err
}
c.ConfigFile = config
return nil
}