var File_github_com_containerd_containerd_api_services_namespaces_v1_namespace_proto protoreflect.FileDescriptor
Namespaces_ServiceDesc is the grpc.ServiceDesc for Namespaces service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Namespaces_ServiceDesc = grpc.ServiceDesc{ ServiceName: "containerd.services.namespaces.v1.Namespaces", HandlerType: (*NamespacesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Namespaces_Get_Handler, }, { MethodName: "List", Handler: _Namespaces_List_Handler, }, { MethodName: "Create", Handler: _Namespaces_Create_Handler, }, { MethodName: "Update", Handler: _Namespaces_Update_Handler, }, { MethodName: "Delete", Handler: _Namespaces_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/containerd/containerd/api/services/namespaces/v1/namespace.proto", }
func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)
type CreateNamespaceRequest struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.
func (x *CreateNamespaceRequest) GetNamespace() *Namespace
func (*CreateNamespaceRequest) ProtoMessage()
func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
func (x *CreateNamespaceRequest) Reset()
func (x *CreateNamespaceRequest) String() string
type CreateNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead.
func (x *CreateNamespaceResponse) GetNamespace() *Namespace
func (*CreateNamespaceResponse) ProtoMessage()
func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message
func (x *CreateNamespaceResponse) Reset()
func (x *CreateNamespaceResponse) String() string
type DeleteNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead.
func (x *DeleteNamespaceRequest) GetName() string
func (*DeleteNamespaceRequest) ProtoMessage()
func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
func (x *DeleteNamespaceRequest) Reset()
func (x *DeleteNamespaceRequest) String() string
type GetNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead.
func (x *GetNamespaceRequest) GetName() string
func (*GetNamespaceRequest) ProtoMessage()
func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message
func (x *GetNamespaceRequest) Reset()
func (x *GetNamespaceRequest) String() string
type GetNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*GetNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead.
func (x *GetNamespaceResponse) GetNamespace() *Namespace
func (*GetNamespaceResponse) ProtoMessage()
func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message
func (x *GetNamespaceResponse) Reset()
func (x *GetNamespaceResponse) String() string
type ListNamespacesRequest struct { Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListNamespacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead.
func (x *ListNamespacesRequest) GetFilter() string
func (*ListNamespacesRequest) ProtoMessage()
func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message
func (x *ListNamespacesRequest) Reset()
func (x *ListNamespacesRequest) String() string
type ListNamespacesResponse struct { Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*ListNamespacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead.
func (x *ListNamespacesResponse) GetNamespaces() []*Namespace
func (*ListNamespacesResponse) ProtoMessage()
func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message
func (x *ListNamespacesResponse) Reset()
func (x *ListNamespacesResponse) String() string
type Namespace struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Labels provides an area to include arbitrary data on namespaces. // // The combined size of a key/value pair cannot exceed 4096 bytes. // // Note that to add a new value to this field, read the existing set and // include the entire result in the update call. Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*Namespace) Descriptor() ([]byte, []int)
Deprecated: Use Namespace.ProtoReflect.Descriptor instead.
func (x *Namespace) GetLabels() map[string]string
func (x *Namespace) GetName() string
func (*Namespace) ProtoMessage()
func (x *Namespace) ProtoReflect() protoreflect.Message
func (x *Namespace) Reset()
func (x *Namespace) String() string
NamespacesClient is the client API for Namespaces service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type NamespacesClient interface { Get(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error) List(ctx context.Context, in *ListNamespacesRequest, opts ...grpc.CallOption) (*ListNamespacesResponse, error) Create(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error) Update(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, error) Delete(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
func NewNamespacesClient(cc grpc.ClientConnInterface) NamespacesClient
NamespacesServer is the server API for Namespaces service. All implementations must embed UnimplementedNamespacesServer for forward compatibility
type NamespacesServer interface { Get(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error) List(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error) Create(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error) Update(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error) Delete(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
UnimplementedNamespacesServer must be embedded to have forward compatible implementations.
type UnimplementedNamespacesServer struct { }
func (UnimplementedNamespacesServer) Create(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)
func (UnimplementedNamespacesServer) Delete(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)
func (UnimplementedNamespacesServer) Get(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error)
func (UnimplementedNamespacesServer) List(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)
func (UnimplementedNamespacesServer) Update(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error)
UnsafeNamespacesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespacesServer will result in compilation errors.
type UnsafeNamespacesServer interface {
// contains filtered or unexported methods
}
UpdateNamespaceRequest updates the metadata for a namespace.
The operation should follow semantics described in https://developers.google.com/protocol-buffers/docs/reference/csharp/class/google/protobuf/well-known-types/field-mask, unless otherwise qualified.
type UpdateNamespaceRequest struct { // Namespace provides the target value, as declared by the mask, for the update. // // The namespace field must be set. Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // UpdateMask specifies which fields to perform the update on. If empty, // the operation applies to all fields. // // For the most part, this applies only to selectively updating labels on // the namespace. While field masks are typically limited to ascii alphas // and digits, we just take everything after the "labels." as the map key. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.
func (x *UpdateNamespaceRequest) GetNamespace() *Namespace
func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateNamespaceRequest) ProtoMessage()
func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message
func (x *UpdateNamespaceRequest) Reset()
func (x *UpdateNamespaceRequest) String() string
type UpdateNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead.
func (x *UpdateNamespaceResponse) GetNamespace() *Namespace
func (*UpdateNamespaceResponse) ProtoMessage()
func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message
func (x *UpdateNamespaceResponse) Reset()
func (x *UpdateNamespaceResponse) String() string