mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-27 03:09:33 +02:00
v0.26.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package idlewatcher
|
||||
|
||||
import gperr "github.com/yusing/goutils/errs"
|
||||
import "errors"
|
||||
|
||||
type ContainerStatus string
|
||||
|
||||
@@ -11,4 +11,4 @@ const (
|
||||
ContainerStatusStopped ContainerStatus = "stopped"
|
||||
)
|
||||
|
||||
var ErrUnexpectedContainerStatus = gperr.New("unexpected container status")
|
||||
var ErrUnexpectedContainerStatus = errors.New("unexpected container status")
|
||||
|
||||
@@ -4,8 +4,7 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/yusing/godoxy/internal/types"
|
||||
"github.com/yusing/godoxy/internal/watcher/events"
|
||||
gperr "github.com/yusing/goutils/errs"
|
||||
watcherEvents "github.com/yusing/godoxy/internal/watcher/events"
|
||||
)
|
||||
|
||||
type Provider interface {
|
||||
@@ -15,6 +14,6 @@ type Provider interface {
|
||||
ContainerStop(ctx context.Context, signal types.ContainerSignal, timeout int) error
|
||||
ContainerKill(ctx context.Context, signal types.ContainerSignal) error
|
||||
ContainerStatus(ctx context.Context) (ContainerStatus, error)
|
||||
Watch(ctx context.Context) (eventCh <-chan events.Event, errCh <-chan gperr.Error)
|
||||
Watch(ctx context.Context) (eventCh <-chan watcherEvents.Event, errCh <-chan error)
|
||||
Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user