vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood
2017-07-23 08:51:42 +01:00
parent 0b6fba34a3
commit eb87cf6f12
2008 changed files with 352617 additions and 1004734 deletions
+14 -4
View File
@@ -264,6 +264,20 @@ func (h *loggingHandler) ListMonitoredResourceDescriptors(context.Context, *logp
}, nil
}
// Lists logs.
func (h *loggingHandler) ListLogs(_ context.Context, req *logpb.ListLogsRequest) (*logpb.ListLogsResponse, error) {
// Return fixed, fake response.
logNames := []string{"a", "b", "c"}
from, to, npt, err := getPage(int(req.PageSize), req.PageToken, len(logNames))
if err != nil {
return nil, err
}
return &logpb.ListLogsResponse{
LogNames: logNames[from:to],
NextPageToken: npt,
}, nil
}
// Gets a sink.
func (h *configHandler) GetSink(_ context.Context, req *logpb.GetSinkRequest) (*logpb.LogSink, error) {
h.mu.Lock()
@@ -323,8 +337,6 @@ func (h *configHandler) ListSinks(_ context.Context, req *logpb.ListSinksRequest
Sinks: sinks[from:to],
NextPageToken: nextPageToken,
}, nil
return nil, nil
}
type sinksByName []*logpb.LogSink
@@ -392,8 +404,6 @@ func (h *metricHandler) ListLogMetrics(_ context.Context, req *logpb.ListLogMetr
Metrics: metrics[from:to],
NextPageToken: nextPageToken,
}, nil
return nil, nil
}
type metricsByName []*logpb.LogMetric