Skip to content

Commit

Permalink
opensearchapi: add ingestClient to rootClient
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <[email protected]>
  • Loading branch information
Jakob3xD committed Sep 22, 2023
1 parent 9a4235a commit 5a99009
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 @@ -53,6 +53,7 @@ type Client struct {
Template templateClient
DataStream dataStreamClient
PointInTime pointInTimeClient
Ingest ingestClient
}

// clientInit inits the Client with all sub clients
Expand All @@ -77,6 +78,7 @@ func clientInit(rootClient *opensearch.Client) *Client {
client.Template = templateClient{apiClient: client}
client.DataStream = dataStreamClient{apiClient: client}
client.PointInTime = pointInTimeClient{apiClient: client}
client.Ingest = ingestClient{apiClient: client}

return client
}
Expand Down

0 comments on commit 5a99009

Please sign in to comment.