(client *client, namespace string)
| 116 | } |
| 117 | |
| 118 | func 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 | |
| 132 | func deleteCluster(client *client, options *DeleteOptions) error { |
| 133 | rsp, err := client.restyCli.R(). |
no test coverage detected