Skip to content

Commit

Permalink
Uses a proxy interface instead
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Dec 3, 2018
1 parent a4981f1 commit 957a510
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@ import (
)

type dockerClient struct {
cli *client.Client
cli dockerProxy
}

type dockerProxy interface {
ContainerList(context.Context, types.ContainerListOptions) ([]types.Container, error)
ContainerLogs(context.Context, string, types.ContainerLogsOptions) (io.ReadCloser, error)
Events(context.Context, types.EventsOptions) (<-chan events.Message, <-chan error)
}

// Client is a proxy around the docker client
Expand Down

0 comments on commit 957a510

Please sign in to comment.