api.go 468 B

123456789101112131415
  1. package amazon
  2. import "context"
  3. //go:generate mockgen -destination=./api_mock.go -self_package "github.com/docker/ecs-plugin/pkg/amazon" -package=amazon . API
  4. type API interface {
  5. downAPI
  6. upAPI
  7. logsAPI
  8. secretsAPI
  9. GetTasks(ctx context.Context, cluster string, name string) ([]string, error)
  10. GetNetworkInterfaces(ctx context.Context, cluster string, arns ...string) ([]string, error)
  11. GetPublicIPs(ctx context.Context, interfaces ...string) ([]string, error)
  12. }