container.go 284 B

1234567891011121314
  1. package project
  2. import (
  3. "golang.org/x/net/context"
  4. )
  5. // Container defines what a libcompose container provides.
  6. type Container interface {
  7. ID() (string, error)
  8. Name() string
  9. Port(ctx context.Context, port string) (string, error)
  10. IsRunning(ctx context.Context) (bool, error)
  11. }