mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-01 12:43:08 -04:00
Bumps [github.com/testcontainers/testcontainers-go/modules/opensearch](https://github.com/testcontainers/testcontainers-go) from 0.38.0 to 0.39.0. - [Release notes](https://github.com/testcontainers/testcontainers-go/releases) - [Commits](https://github.com/testcontainers/testcontainers-go/compare/v0.38.0...v0.39.0) --- updated-dependencies: - dependency-name: github.com/testcontainers/testcontainers-go/modules/opensearch dependency-version: 0.39.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
18 lines
399 B
Go
18 lines
399 B
Go
package client
|
|
|
|
import "context"
|
|
|
|
// ConfigRemove removes a config.
|
|
func (cli *Client) ConfigRemove(ctx context.Context, id string) error {
|
|
id, err := trimID("config", id)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if err := cli.NewVersionError(ctx, "1.30", "config remove"); err != nil {
|
|
return err
|
|
}
|
|
resp, err := cli.delete(ctx, "/configs/"+id, nil, nil)
|
|
defer ensureReaderClosed(resp)
|
|
return err
|
|
}
|