Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: logdog/api/endpoints/coordinator/logs/v1/logs.proto

Issue 2538203002: LogDog: Add signed GS URL fetching. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 syntax = "proto3"; 5 syntax = "proto3";
6 6
7 package logdog; 7 package logdog;
8 8
9 import "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1/state.p roto"; 9 import "github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1/state.p roto";
10 import "github.com/luci/luci-go/logdog/api/logpb/log.proto"; 10 import "github.com/luci/luci-go/logdog/api/logpb/log.proto";
11 import "google/protobuf/timestamp.proto"; 11 import "google/protobuf/timestamp.proto";
12 import "google/protobuf/duration.proto";
12 13
13 // GetRequest is the request structure for the user Get endpoint. 14 // GetRequest is the request structure for the user Get endpoint.
14 // 15 //
15 // If the requested log stream exists, a valid GetRequest will succeed 16 // If the requested log stream exists, a valid GetRequest will succeed
16 // regardless of whether the requested log range was available. 17 // regardless of whether the requested log range was available.
17 // 18 //
18 // Note that this endpoint may return fewer logs than requested due to either 19 // Note that this endpoint may return fewer logs than requested due to either
19 // availability or internal constraints. 20 // availability or internal constraints.
20 message GetRequest { 21 message GetRequest {
21 // The request project to request. 22 // The request project to request.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Index and stop if either the end of stream is encountered or there is a 58 // Index and stop if either the end of stream is encountered or there is a
58 // missing stream index. A NonContiguous request will remove the latter 59 // missing stream index. A NonContiguous request will remove the latter
59 // condition. 60 // condition.
60 // 61 //
61 // For example, say the log stream consists of: 62 // For example, say the log stream consists of:
62 // [3, 4, 6, 7] 63 // [3, 4, 6, 7]
63 // 64 //
64 // A contiguous request with Index 3 will return: [3, 4], stopping because 65 // A contiguous request with Index 3 will return: [3, 4], stopping because
65 // 5 is missing. A non-contiguous request will return [3, 4, 6, 7]. 66 // 5 is missing. A non-contiguous request will return [3, 4, 6, 7].
66 bool non_contiguous = 7; 67 bool non_contiguous = 7;
68
69 // If supplied and >0, return a signed version of the log stream's RecordIO
70 // entry protobuf URL. If signing URLs is not supported, the signed URL
71 // field in the response will be empty.
72 //
73 // The signed URL will have an expiration that is <= the requested expiration.
Vadim Sh. 2016/11/30 21:03:52 you mean >=?
dnj 2016/12/01 17:39:30 I mean <=, as in if you request 24 days and the se
Vadim Sh. 2016/12/01 19:32:12 Oh, I thought it would return an URL that lives at
74 google.protobuf.Duration sign_entry_url_lifetime = 8;
67 } 75 }
68 76
69 // TailRequest is the request structure for the user Tail endpoint. It returns 77 // TailRequest is the request structure for the user Tail endpoint. It returns
70 // the last log in a given log stream at the time of the request. 78 // the last log in a given log stream at the time of the request.
71 message TailRequest { 79 message TailRequest {
72 // The request project to request. 80 // The request project to request.
73 string project = 1; 81 string project = 1;
74 // The path of the log stream to get. 82 // The path of the log stream to get.
75 // 83 //
76 // This can either be a LogDog stream path or the SHA256 hash of a LogDog 84 // This can either be a LogDog stream path or the SHA256 hash of a LogDog
(...skipping 22 matching lines...) Expand all
99 // The expanded LogStreamDescriptor protobuf. It is intended for JSON 107 // The expanded LogStreamDescriptor protobuf. It is intended for JSON
100 // consumption. 108 // consumption.
101 // 109 //
102 // If the GetRequest's Proto field is false, this will be populated; 110 // If the GetRequest's Proto field is false, this will be populated;
103 // otherwise, the serialized protobuf will be written to the DescriptorProto 111 // otherwise, the serialized protobuf will be written to the DescriptorProto
104 // field. 112 // field.
105 logpb.LogStreamDescriptor desc = 3; 113 logpb.LogStreamDescriptor desc = 3;
106 114
107 // Log represents the set of retrieved log records. 115 // Log represents the set of retrieved log records.
108 repeated logpb.LogEntry logs = 4; 116 repeated logpb.LogEntry logs = 4;
117
118 // Holds information about the log stream's signed entry URL.
119 message SignedEntryUrl {
120 // The signed URL value.
121 string value = 1;
122 // The time when this signed URL will expire.
123 google.protobuf.Timestamp expiration = 2;
124 }
125 // An optional signed log entry RecordIO protobuf URL, if requested via
126 // "sign_entry_url_lifetime".
127 SignedEntryUrl signed_entry_url = 5;
109 } 128 }
110 129
111 // QueryRequest is the request structure for the user Query endpoint. 130 // QueryRequest is the request structure for the user Query endpoint.
112 message QueryRequest { 131 message QueryRequest {
113 // Trinary represents a trinary value. 132 // Trinary represents a trinary value.
114 enum Trinary { 133 enum Trinary {
115 // Both positive and negative results will be returned. 134 // Both positive and negative results will be returned.
116 BOTH = 0; 135 BOTH = 0;
117 // Only positive results will be returned. 136 // Only positive results will be returned.
118 YES = 1; 137 YES = 1;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 365
347 // Tail returns the last log in the log stream at the time of the request. 366 // Tail returns the last log in the log stream at the time of the request.
348 rpc Tail(TailRequest) returns (GetResponse); 367 rpc Tail(TailRequest) returns (GetResponse);
349 368
350 // Query returns log stream paths that match the requested query. 369 // Query returns log stream paths that match the requested query.
351 rpc Query(QueryRequest) returns (QueryResponse); 370 rpc Query(QueryRequest) returns (QueryResponse);
352 371
353 // List returns log stream paths rooted under the path hierarchy. 372 // List returns log stream paths rooted under the path hierarchy.
354 rpc List(ListRequest) returns (ListResponse); 373 rpc List(ListRequest) returns (ListResponse);
355 } 374 }
OLDNEW
« no previous file with comments | « no previous file | logdog/api/endpoints/coordinator/logs/v1/logs.pb.go » ('j') | logdog/appengine/coordinator/endpoints/logs/get.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698