From 859012cb4cc66f277b5f6f9b0619ad446e4cad5d Mon Sep 17 00:00:00 2001 From: "A.Unger" Date: Fri, 23 Oct 2020 11:40:19 +0200 Subject: [PATCH] extend accounts.proto file with rebuild index definition --- accounts/pkg/command/rebuild_index.go | 15 +++++++++++++++ accounts/pkg/proto/v0/accounts.proto | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 accounts/pkg/command/rebuild_index.go diff --git a/accounts/pkg/command/rebuild_index.go b/accounts/pkg/command/rebuild_index.go new file mode 100644 index 000000000..230a96903 --- /dev/null +++ b/accounts/pkg/command/rebuild_index.go @@ -0,0 +1,15 @@ +package command + +import ( + "github.com/micro/cli/v2" + "github.com/owncloud/ocis/accounts/pkg/config" +) + +func DeleteIndex(cdf *config.Config) *cli.Command { + return &cli.Command{ + Name: "add", + Usage: "Create a new account", + Aliases: []string{"create", "a"}, + //Flags: flagset.AddAccountWithConfig(cfg, a), + } +} diff --git a/accounts/pkg/proto/v0/accounts.proto b/accounts/pkg/proto/v0/accounts.proto index cb26c1afd..5fd908d7b 100644 --- a/accounts/pkg/proto/v0/accounts.proto +++ b/accounts/pkg/proto/v0/accounts.proto @@ -136,6 +136,18 @@ service GroupsService { } +service IndexService { + rpc RebuildIndex(RebuildIndexRequest) returns (RebuildIndexResponse); +} + +message RebuildIndexRequest { + +} + +message RebuildIndexResponse { + repeated string Indices = 1; +} + message ListAccountsRequest { // Optional. The maximum number of accounts to return in the response int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL];