Skip to content

Commit

Permalink
opensearchapi: add snapshotClient 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 Oct 26, 2023
1 parent 6e6dbcd commit 7355143
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions opensearchapi/opensearchapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type Client struct {
Ingest ingestClient
Tasks tasksClient
Scroll scrollClient
Snapshot snapshotClient
}

// clientInit inits the Client with all sub clients
Expand Down Expand Up @@ -84,6 +85,10 @@ func clientInit(rootClient *opensearch.Client) *Client {
client.Ingest = ingestClient{apiClient: client}
client.Tasks = tasksClient{apiClient: client}
client.Scroll = scrollClient{apiClient: client}
client.Snapshot = snapshotClient{
apiClient: client,
Repository: repositoryClient{apiClient: client},
}

return client
}
Expand Down

0 comments on commit 7355143

Please sign in to comment.