MCPcopy Index your code
hub / github.com/containerd/containerd / Delete

Method Delete

client/namespaces.go:104–122  ·  view source on GitHub ↗
(ctx context.Context, namespace string, opts ...namespaces.DeleteOpts)

Source from the content-addressed store, hash-verified

102}
103
104func (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

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected