Update traefik dependencies (docker/docker and related) (#1823)
Update traefik dependencies (docker/docker and related) - Update dependencies - Fix compilation problems - Remove vdemeester/docker-events (in docker api now) - Remove `integration/vendor` - Use `testImport` - update some deps. - regenerate the lock from scratch (after a `glide cc`)
This commit is contained in:
parent
7d178f49b4
commit
b7daa2f3a4
1301 changed files with 21476 additions and 150099 deletions
64
vendor/github.com/docker/libcompose/project/interface.go
generated
vendored
Normal file
64
vendor/github.com/docker/libcompose/project/interface.go
generated
vendored
Normal file
|
@ -0,0 +1,64 @@
|
|||
package project
|
||||
|
||||
import (
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/docker/libcompose/config"
|
||||
"github.com/docker/libcompose/project/events"
|
||||
"github.com/docker/libcompose/project/options"
|
||||
)
|
||||
|
||||
// APIProject defines the methods a libcompose project should implement.
|
||||
type APIProject interface {
|
||||
events.Notifier
|
||||
events.Emitter
|
||||
|
||||
Build(ctx context.Context, options options.Build, sevice ...string) error
|
||||
Config() (string, error)
|
||||
Create(ctx context.Context, options options.Create, services ...string) error
|
||||
Delete(ctx context.Context, options options.Delete, services ...string) error
|
||||
Down(ctx context.Context, options options.Down, services ...string) error
|
||||
Events(ctx context.Context, services ...string) (chan events.ContainerEvent, error)
|
||||
Kill(ctx context.Context, signal string, services ...string) error
|
||||
Log(ctx context.Context, follow bool, services ...string) error
|
||||
Pause(ctx context.Context, services ...string) error
|
||||
Ps(ctx context.Context, services ...string) (InfoSet, error)
|
||||
// FIXME(vdemeester) we could use nat.Port instead ?
|
||||
Port(ctx context.Context, index int, protocol, serviceName, privatePort string) (string, error)
|
||||
Pull(ctx context.Context, services ...string) error
|
||||
Restart(ctx context.Context, timeout int, services ...string) error
|
||||
Run(ctx context.Context, serviceName string, commandParts []string, options options.Run) (int, error)
|
||||
Scale(ctx context.Context, timeout int, servicesScale map[string]int) error
|
||||
Start(ctx context.Context, services ...string) error
|
||||
Stop(ctx context.Context, timeout int, services ...string) error
|
||||
Unpause(ctx context.Context, services ...string) error
|
||||
Up(ctx context.Context, options options.Up, services ...string) error
|
||||
|
||||
Parse() error
|
||||
CreateService(name string) (Service, error)
|
||||
AddConfig(name string, config *config.ServiceConfig) error
|
||||
Load(bytes []byte) error
|
||||
Containers(ctx context.Context, filter Filter, services ...string) ([]string, error)
|
||||
|
||||
GetServiceConfig(service string) (*config.ServiceConfig, bool)
|
||||
}
|
||||
|
||||
// Filter holds filter element to filter containers
|
||||
type Filter struct {
|
||||
State State
|
||||
}
|
||||
|
||||
// State defines the supported state you can filter on
|
||||
type State string
|
||||
|
||||
// Definitions of filter states
|
||||
const (
|
||||
AnyState = State("")
|
||||
Running = State("running")
|
||||
Stopped = State("stopped")
|
||||
)
|
||||
|
||||
// RuntimeProject defines runtime-specific methods for a libcompose implementation.
|
||||
type RuntimeProject interface {
|
||||
RemoveOrphans(ctx context.Context, projectName string, serviceConfigs *config.ServiceConfigs) error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue