Method
Delete
(ctx context.Context, namespace string, opts ...namespaces.DeleteOpts)
Source from the content-addressed store, hash-verified
| 102 | } |
| 103 | |
| 104 | func (r *remoteNamespaces) Delete(ctx context.Context, namespace string, opts ...namespaces.DeleteOpts) error { |
| 105 | i := namespaces.DeleteInfo{ |
| 106 | Name: namespace, |
| 107 | } |
| 108 | for _, o := range opts { |
| 109 | if err := o(ctx, &i); err != nil { |
| 110 | return err |
| 111 | } |
| 112 | } |
| 113 | req := api.DeleteNamespaceRequest{ |
| 114 | Name: namespace, |
| 115 | } |
| 116 | _, err := r.client.Delete(ctx, &req) |
| 117 | if err != nil { |
| 118 | return errgrpc.ToNative(err) |
| 119 | } |
| 120 | |
| 121 | return nil |
| 122 | } |
Callers
nothing calls this directly
Tested by
no test coverage detected