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];