2017-02-07 22:33:23 +01:00
|
|
|
package project
|
|
|
|
|
|
|
|
import (
|
|
|
|
"golang.org/x/net/context"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Container defines what a libcompose container provides.
|
|
|
|
type Container interface {
|
2017-07-06 16:28:13 +02:00
|
|
|
ID() string
|
2017-02-07 22:33:23 +01:00
|
|
|
Name() string
|
|
|
|
Port(ctx context.Context, port string) (string, error)
|
2017-07-06 16:28:13 +02:00
|
|
|
IsRunning(ctx context.Context) bool
|
2017-02-07 22:33:23 +01:00
|
|
|
}
|