From 8f885b2691cf0b91bb5f1ac7f9357d5c21b7f4f7 Mon Sep 17 00:00:00 2001 From: Jakob Hahn Date: Wed, 20 Sep 2023 10:07:15 +0200 Subject: [PATCH] opensearchapi: add template client to root client Signed-off-by: Jakob Hahn --- opensearchapi/opensearchapi.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensearchapi/opensearchapi.go b/opensearchapi/opensearchapi.go index 33197e9bc..0c559da3a 100644 --- a/opensearchapi/opensearchapi.go +++ b/opensearchapi/opensearchapi.go @@ -50,6 +50,7 @@ type Client struct { Script scriptClient ComponentTemplate componentTemplateClient IndexTemplate indexTemplateClient + Template templateClient DataStream dataStreamClient } @@ -72,6 +73,7 @@ func clientInit(rootClient *opensearch.Client) *Client { client.Document = documentClient{apiClient: client} client.ComponentTemplate = componentTemplateClient{apiClient: client} client.IndexTemplate = indexTemplateClient{apiClient: client} + client.Template = templateClient{apiClient: client} client.DataStream = dataStreamClient{apiClient: client} return client