Skip to content

Commit

Permalink
opensearchapi: add template client to root client
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <[email protected]>
  • Loading branch information
Jakob3xD committed Sep 20, 2023
1 parent e7e326a commit dbd2c34
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opensearchapi/opensearchapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ type Client struct {
Script scriptClient
ComponentTemplate componentTemplateClient
IndexTemplate indexTemplateClient
Template templateClient
DataStream dataStreamClient
}

Expand All @@ -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
Expand Down

0 comments on commit dbd2c34

Please sign in to comment.