vendor: update all dependencies
This commit is contained in:
+14
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user