Add task.Metrics to windows
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
8510512e7e
commit
c07f7cab37
@ -1309,6 +1309,9 @@ func TestDeleteContainerExecCreated(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestContainerMetrics(t *testing.T) {
|
func TestContainerMetrics(t *testing.T) {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
t.Skip("metrics are currently not supported on windows")
|
||||||
|
}
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
client, err := newClient(t, address)
|
client, err := newClient(t, address)
|
||||||
|
@ -270,6 +270,10 @@ func (t *task) Process(ctx context.Context, id string) (p runtime.Process, err e
|
|||||||
return p, err
|
return p, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (t *task) Metrics(ctx context.Context) (interface{}, error) {
|
||||||
|
return nil, errors.Wrap(errdefs.ErrUnavailable, "not supported")
|
||||||
|
}
|
||||||
|
|
||||||
func (t *task) newProcess(ctx context.Context, id string, conf *hcsshim.ProcessConfig, pset *pipeSet) (*process, error) {
|
func (t *task) newProcess(ctx context.Context, id string, conf *hcsshim.ProcessConfig, pset *pipeSet) (*process, error) {
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
|
Loading…
Reference in New Issue
Block a user