MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / deleteNamespace

Function deleteNamespace

cmd/client/command/delete.go:118–130  ·  view source on GitHub ↗
(client *client, namespace string)

Source from the content-addressed store, hash-verified

116}
117
118func deleteNamespace(client *client, namespace string) error {
119 rsp, err := client.restyCli.R().
120 SetPathParam("namespace", namespace).
121 Delete("/namespaces/{namespace}")
122 if err != nil {
123 return err
124 }
125 if rsp.IsError() {
126 return unmarshalError(rsp.Body())
127 }
128 printLine("delete namespace: %s successfully.", namespace)
129 return nil
130}
131
132func deleteCluster(client *client, options *DeleteOptions) error {
133 rsp, err := client.restyCli.R().

Callers 1

delete.goFile · 0.70

Calls 3

unmarshalErrorFunction · 0.85
printLineFunction · 0.85
DeleteMethod · 0.65

Tested by

no test coverage detected