Documentation ¶
Index ¶
- Variables
- func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)
- type CreateNamespaceRequest
- func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- 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
- func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*GetNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*GetNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- 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
- func (*ListNamespacesRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*ListNamespacesResponse) Descriptor() ([]byte, []int)deprecated
- 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
- type NamespacesClient
- type NamespacesServer
- type UnimplementedNamespacesServer
- 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)
- type UnsafeNamespacesServer
- type UpdateNamespaceRequest
- func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)deprecated
- 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
- func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNamespaceResponse) GetNamespace() *Namespace
- func (*UpdateNamespaceResponse) ProtoMessage()
- func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNamespaceResponse) Reset()
- func (x *UpdateNamespaceResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_github_com_containerd_containerd_api_services_namespaces_v1_namespace_proto protoreflect.FileDescriptor
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", }
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)
Functions ¶
func RegisterNamespacesServer ¶
func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)
Types ¶
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceRequest) Descriptor
deprecated
func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.
func (*CreateNamespaceRequest) GetNamespace ¶ added in v1.7.0
func (x *CreateNamespaceRequest) GetNamespace() *Namespace
func (*CreateNamespaceRequest) ProtoMessage ¶
func (*CreateNamespaceRequest) ProtoMessage()
func (*CreateNamespaceRequest) ProtoReflect ¶ added in v1.7.0
func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message
func (*CreateNamespaceRequest) Reset ¶
func (x *CreateNamespaceRequest) Reset()
func (*CreateNamespaceRequest) String ¶
func (x *CreateNamespaceRequest) String() string
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*CreateNamespaceResponse) Descriptor
deprecated
func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead.
func (*CreateNamespaceResponse) GetNamespace ¶ added in v1.7.0
func (x *CreateNamespaceResponse) GetNamespace() *Namespace
func (*CreateNamespaceResponse) ProtoMessage ¶
func (*CreateNamespaceResponse) ProtoMessage()
func (*CreateNamespaceResponse) ProtoReflect ¶ added in v1.7.0
func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message
func (*CreateNamespaceResponse) Reset ¶
func (x *CreateNamespaceResponse) Reset()
func (*CreateNamespaceResponse) String ¶
func (x *CreateNamespaceResponse) String() string
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteNamespaceRequest) Descriptor
deprecated
func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead.
func (*DeleteNamespaceRequest) GetName ¶ added in v1.7.0
func (x *DeleteNamespaceRequest) GetName() string
func (*DeleteNamespaceRequest) ProtoMessage ¶
func (*DeleteNamespaceRequest) ProtoMessage()
func (*DeleteNamespaceRequest) ProtoReflect ¶ added in v1.7.0
func (x *DeleteNamespaceRequest) ProtoReflect() protoreflect.Message
func (*DeleteNamespaceRequest) Reset ¶
func (x *DeleteNamespaceRequest) Reset()
func (*DeleteNamespaceRequest) String ¶
func (x *DeleteNamespaceRequest) String() string
type GetNamespaceRequest ¶
type GetNamespaceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetNamespaceRequest) Descriptor
deprecated
func (*GetNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead.
func (*GetNamespaceRequest) GetName ¶ added in v1.7.0
func (x *GetNamespaceRequest) GetName() string
func (*GetNamespaceRequest) ProtoMessage ¶
func (*GetNamespaceRequest) ProtoMessage()
func (*GetNamespaceRequest) ProtoReflect ¶ added in v1.7.0
func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message
func (*GetNamespaceRequest) Reset ¶
func (x *GetNamespaceRequest) Reset()
func (*GetNamespaceRequest) String ¶
func (x *GetNamespaceRequest) String() string
type GetNamespaceResponse ¶
type GetNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*GetNamespaceResponse) Descriptor
deprecated
func (*GetNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead.
func (*GetNamespaceResponse) GetNamespace ¶ added in v1.7.0
func (x *GetNamespaceResponse) GetNamespace() *Namespace
func (*GetNamespaceResponse) ProtoMessage ¶
func (*GetNamespaceResponse) ProtoMessage()
func (*GetNamespaceResponse) ProtoReflect ¶ added in v1.7.0
func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message
func (*GetNamespaceResponse) Reset ¶
func (x *GetNamespaceResponse) Reset()
func (*GetNamespaceResponse) String ¶
func (x *GetNamespaceResponse) String() string
type ListNamespacesRequest ¶
type ListNamespacesRequest struct { Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListNamespacesRequest) Descriptor
deprecated
func (*ListNamespacesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead.
func (*ListNamespacesRequest) GetFilter ¶ added in v1.7.0
func (x *ListNamespacesRequest) GetFilter() string
func (*ListNamespacesRequest) ProtoMessage ¶
func (*ListNamespacesRequest) ProtoMessage()
func (*ListNamespacesRequest) ProtoReflect ¶ added in v1.7.0
func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message
func (*ListNamespacesRequest) Reset ¶
func (x *ListNamespacesRequest) Reset()
func (*ListNamespacesRequest) String ¶
func (x *ListNamespacesRequest) String() string
type ListNamespacesResponse ¶
type ListNamespacesResponse struct { Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` // contains filtered or unexported fields }
func (*ListNamespacesResponse) Descriptor
deprecated
func (*ListNamespacesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead.
func (*ListNamespacesResponse) GetNamespaces ¶ added in v1.7.0
func (x *ListNamespacesResponse) GetNamespaces() []*Namespace
func (*ListNamespacesResponse) ProtoMessage ¶
func (*ListNamespacesResponse) ProtoMessage()
func (*ListNamespacesResponse) ProtoReflect ¶ added in v1.7.0
func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message
func (*ListNamespacesResponse) Reset ¶
func (x *ListNamespacesResponse) Reset()
func (*ListNamespacesResponse) String ¶
func (x *ListNamespacesResponse) String() string
type Namespace ¶
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 `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Namespace) Descriptor
deprecated
func (*Namespace) ProtoMessage ¶
func (*Namespace) ProtoMessage()
func (*Namespace) ProtoReflect ¶ added in v1.7.0
func (x *Namespace) ProtoReflect() protoreflect.Message
type NamespacesClient ¶
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) }
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.
func NewNamespacesClient ¶
func NewNamespacesClient(cc grpc.ClientConnInterface) NamespacesClient
type NamespacesServer ¶
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 }
NamespacesServer is the server API for Namespaces service. All implementations must embed UnimplementedNamespacesServer for forward compatibility
type UnimplementedNamespacesServer ¶ added in v1.4.0
type UnimplementedNamespacesServer struct { }
UnimplementedNamespacesServer must be embedded to have forward compatible implementations.
func (UnimplementedNamespacesServer) Create ¶ added in v1.4.0
func (UnimplementedNamespacesServer) Create(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)
func (UnimplementedNamespacesServer) Delete ¶ added in v1.4.0
func (UnimplementedNamespacesServer) Delete(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)
func (UnimplementedNamespacesServer) Get ¶ added in v1.4.0
func (UnimplementedNamespacesServer) Get(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error)
func (UnimplementedNamespacesServer) List ¶ added in v1.4.0
func (UnimplementedNamespacesServer) List(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)
func (UnimplementedNamespacesServer) Update ¶ added in v1.4.0
func (UnimplementedNamespacesServer) Update(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error)
type UnsafeNamespacesServer ¶ added in v1.7.0
type UnsafeNamespacesServer interface {
// contains filtered or unexported methods
}
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 UpdateNamespaceRequest ¶
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 }
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.
func (*UpdateNamespaceRequest) Descriptor
deprecated
func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.
func (*UpdateNamespaceRequest) GetNamespace ¶ added in v1.7.0
func (x *UpdateNamespaceRequest) GetNamespace() *Namespace
func (*UpdateNamespaceRequest) GetUpdateMask ¶ added in v1.7.0
func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateNamespaceRequest) ProtoMessage ¶
func (*UpdateNamespaceRequest) ProtoMessage()
func (*UpdateNamespaceRequest) ProtoReflect ¶ added in v1.7.0
func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message
func (*UpdateNamespaceRequest) Reset ¶
func (x *UpdateNamespaceRequest) Reset()
func (*UpdateNamespaceRequest) String ¶
func (x *UpdateNamespaceRequest) String() string
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct { Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // contains filtered or unexported fields }
func (*UpdateNamespaceResponse) Descriptor
deprecated
func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead.
func (*UpdateNamespaceResponse) GetNamespace ¶ added in v1.7.0
func (x *UpdateNamespaceResponse) GetNamespace() *Namespace
func (*UpdateNamespaceResponse) ProtoMessage ¶
func (*UpdateNamespaceResponse) ProtoMessage()
func (*UpdateNamespaceResponse) ProtoReflect ¶ added in v1.7.0
func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message
func (*UpdateNamespaceResponse) Reset ¶
func (x *UpdateNamespaceResponse) Reset()
func (*UpdateNamespaceResponse) String ¶
func (x *UpdateNamespaceResponse) String() string