restructure command/api to use stable IDs (#2261)
This commit is contained in:
parent
08bd4b9bc5
commit
64fd1f9483
29 changed files with 1902 additions and 3613 deletions
|
|
@ -1,42 +1,29 @@
|
|||
syntax = "proto3";
|
||||
package headscale.v1;
|
||||
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
||||
option go_package = "github.com/juanfont/headscale/gen/go/v1";
|
||||
|
||||
import "google/protobuf/timestamp.proto";
|
||||
|
||||
message ApiKey {
|
||||
uint64 id = 1;
|
||||
string prefix = 2;
|
||||
google.protobuf.Timestamp expiration = 3;
|
||||
google.protobuf.Timestamp created_at = 4;
|
||||
google.protobuf.Timestamp last_seen = 5;
|
||||
uint64 id = 1;
|
||||
string prefix = 2;
|
||||
google.protobuf.Timestamp expiration = 3;
|
||||
google.protobuf.Timestamp created_at = 4;
|
||||
google.protobuf.Timestamp last_seen = 5;
|
||||
}
|
||||
|
||||
message CreateApiKeyRequest {
|
||||
google.protobuf.Timestamp expiration = 1;
|
||||
}
|
||||
message CreateApiKeyRequest { google.protobuf.Timestamp expiration = 1; }
|
||||
|
||||
message CreateApiKeyResponse {
|
||||
string api_key = 1;
|
||||
}
|
||||
message CreateApiKeyResponse { string api_key = 1; }
|
||||
|
||||
message ExpireApiKeyRequest {
|
||||
string prefix = 1;
|
||||
}
|
||||
message ExpireApiKeyRequest { string prefix = 1; }
|
||||
|
||||
message ExpireApiKeyResponse {
|
||||
}
|
||||
message ExpireApiKeyResponse {}
|
||||
|
||||
message ListApiKeysRequest {
|
||||
}
|
||||
message ListApiKeysRequest {}
|
||||
|
||||
message ListApiKeysResponse {
|
||||
repeated ApiKey api_keys = 1;
|
||||
}
|
||||
message ListApiKeysResponse { repeated ApiKey api_keys = 1; }
|
||||
|
||||
message DeleteApiKeyRequest {
|
||||
string prefix = 1;
|
||||
}
|
||||
message DeleteApiKeyRequest { string prefix = 1; }
|
||||
|
||||
message DeleteApiKeyResponse {
|
||||
}
|
||||
message DeleteApiKeyResponse {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue