api.go 312 B

12345678910111213
  1. package compose
  2. import (
  3. "context"
  4. )
  5. // Service manages a compose project
  6. type Service interface {
  7. // Up executes the equivalent to a `compose up`
  8. Up(ctx context.Context, opts ProjectOptions) error
  9. // Down executes the equivalent to a `compose down`
  10. Down(ctx context.Context, opts ProjectOptions) error
  11. }