...

Package namespaces

import "github.com/containerd/containerd/api/services/namespaces/v1"
Overview
Index

Overview ▾

Index ▾

Variables
func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)
type CreateNamespaceRequest
    func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)
    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)
    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)
    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)
    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)
    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)
    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)
    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
    func (*Namespace) Descriptor() ([]byte, []int)
    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
type NamespacesClient
    func NewNamespacesClient(cc grpc.ClientConnInterface) 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)
    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)
    func (x *UpdateNamespaceResponse) GetNamespace() *Namespace
    func (*UpdateNamespaceResponse) ProtoMessage()
    func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message
    func (x *UpdateNamespaceResponse) Reset()
    func (x *UpdateNamespaceResponse) String() string

Package files

doc.go namespace.pb.go namespace_grpc.pb.go

Variables

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

func RegisterNamespacesServer(s grpc.ServiceRegistrar, srv NamespacesServer)

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

func (*CreateNamespaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*CreateNamespaceRequest) GetNamespace

func (x *CreateNamespaceRequest) GetNamespace() *Namespace

func (*CreateNamespaceRequest) ProtoMessage

func (*CreateNamespaceRequest) ProtoMessage()

func (*CreateNamespaceRequest) ProtoReflect

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

func (*CreateNamespaceResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead.

func (*CreateNamespaceResponse) GetNamespace

func (x *CreateNamespaceResponse) GetNamespace() *Namespace

func (*CreateNamespaceResponse) ProtoMessage

func (*CreateNamespaceResponse) ProtoMessage()

func (*CreateNamespaceResponse) ProtoReflect

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

func (*DeleteNamespaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteNamespaceRequest.ProtoReflect.Descriptor instead.

func (*DeleteNamespaceRequest) GetName

func (x *DeleteNamespaceRequest) GetName() string

func (*DeleteNamespaceRequest) ProtoMessage

func (*DeleteNamespaceRequest) ProtoMessage()

func (*DeleteNamespaceRequest) ProtoReflect

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

func (*GetNamespaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead.

func (*GetNamespaceRequest) GetName

func (x *GetNamespaceRequest) GetName() string

func (*GetNamespaceRequest) ProtoMessage

func (*GetNamespaceRequest) ProtoMessage()

func (*GetNamespaceRequest) ProtoReflect

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

func (*GetNamespaceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead.

func (*GetNamespaceResponse) GetNamespace

func (x *GetNamespaceResponse) GetNamespace() *Namespace

func (*GetNamespaceResponse) ProtoMessage

func (*GetNamespaceResponse) ProtoMessage()

func (*GetNamespaceResponse) ProtoReflect

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

func (*ListNamespacesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead.

func (*ListNamespacesRequest) GetFilter

func (x *ListNamespacesRequest) GetFilter() string

func (*ListNamespacesRequest) ProtoMessage

func (*ListNamespacesRequest) ProtoMessage()

func (*ListNamespacesRequest) ProtoReflect

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

func (*ListNamespacesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead.

func (*ListNamespacesResponse) GetNamespaces

func (x *ListNamespacesResponse) GetNamespaces() []*Namespace

func (*ListNamespacesResponse) ProtoMessage

func (*ListNamespacesResponse) ProtoMessage()

func (*ListNamespacesResponse) ProtoReflect

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 `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

func (*Namespace) Descriptor() ([]byte, []int)

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetLabels

func (x *Namespace) GetLabels() map[string]string

func (*Namespace) GetName

func (x *Namespace) GetName() string

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) ProtoReflect

func (x *Namespace) ProtoReflect() protoreflect.Message

func (*Namespace) Reset

func (x *Namespace) Reset()

func (*Namespace) String

func (x *Namespace) String() string

type NamespacesClient

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

func NewNamespacesClient(cc grpc.ClientConnInterface) NamespacesClient

type NamespacesServer

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
}

type UnimplementedNamespacesServer

UnimplementedNamespacesServer must be embedded to have forward compatible implementations.

type UnimplementedNamespacesServer struct {
}

func (UnimplementedNamespacesServer) Create

func (UnimplementedNamespacesServer) Create(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)

func (UnimplementedNamespacesServer) Delete

func (UnimplementedNamespacesServer) Delete(context.Context, *DeleteNamespaceRequest) (*emptypb.Empty, error)

func (UnimplementedNamespacesServer) Get

func (UnimplementedNamespacesServer) Get(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error)

func (UnimplementedNamespacesServer) List

func (UnimplementedNamespacesServer) List(context.Context, *ListNamespacesRequest) (*ListNamespacesResponse, error)

func (UnimplementedNamespacesServer) Update

func (UnimplementedNamespacesServer) Update(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error)

type UnsafeNamespacesServer

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
}

type UpdateNamespaceRequest

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

func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UpdateNamespaceRequest) GetNamespace

func (x *UpdateNamespaceRequest) GetNamespace() *Namespace

func (*UpdateNamespaceRequest) GetUpdateMask

func (x *UpdateNamespaceRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateNamespaceRequest) ProtoMessage

func (*UpdateNamespaceRequest) ProtoMessage()

func (*UpdateNamespaceRequest) ProtoReflect

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

func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead.

func (*UpdateNamespaceResponse) GetNamespace

func (x *UpdateNamespaceResponse) GetNamespace() *Namespace

func (*UpdateNamespaceResponse) ProtoMessage

func (*UpdateNamespaceResponse) ProtoMessage()

func (*UpdateNamespaceResponse) ProtoReflect

func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message

func (*UpdateNamespaceResponse) Reset

func (x *UpdateNamespaceResponse) Reset()

func (*UpdateNamespaceResponse) String

func (x *UpdateNamespaceResponse) String() string