NewRemoteContainerStore returns the container Store connected with the provided client
(client containersapi.ContainersClient)
| 40 | |
| 41 | // NewRemoteContainerStore returns the container Store connected with the provided client |
| 42 | func NewRemoteContainerStore(client containersapi.ContainersClient) containers.Store { |
| 43 | return &remoteContainers{ |
| 44 | client: client, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func (r *remoteContainers) Get(ctx context.Context, id string) (containers.Container, error) { |
| 49 | resp, err := r.client.Get(ctx, &containersapi.GetContainerRequest{ |
no outgoing calls
no test coverage detected
searching dependent graphs…