namespace

package
v0.0.0-...-3b69245 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_namespace_proto protoreflect.FileDescriptor
View Source
var NamespaceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "native_namespace.NamespaceService",
	HandlerType: (*NamespaceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ensure",
			Handler:    _NamespaceService_Ensure_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _NamespaceService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _NamespaceService_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _NamespaceService_Delete_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _NamespaceService_Get_Handler,
		},
		{
			MethodName: "Exists",
			Handler:    _NamespaceService_Exists_Handler,
		},
		{
			MethodName: "Stat",
			Handler:    _NamespaceService_Stat_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetAll",
			Handler:       _NamespaceService_GetAll_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "namespace.proto",
}

NamespaceService_ServiceDesc is the grpc.ServiceDesc for NamespaceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNamespaceServiceServer

func RegisterNamespaceServiceServer(s grpc.ServiceRegistrar, srv NamespaceServiceServer)

Types

type CreateNamespaceRequest

type CreateNamespaceRequest struct {

	// Unique name of the namespace. Name must match the regex "[A-Za-z0-9]+$". Max length is 32 symbols.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User-friendly public name of the namespace. Can be changed in the future. Max length is 128 symbols.
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
	// Arbitrary description. Can be changed in the future. Max length is 512 symbols.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNamespaceRequest) Descriptor deprecated

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

Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*CreateNamespaceRequest) GetDescription

func (x *CreateNamespaceRequest) GetDescription() string

func (*CreateNamespaceRequest) GetFullName

func (x *CreateNamespaceRequest) GetFullName() string

func (*CreateNamespaceRequest) GetName

func (x *CreateNamespaceRequest) GetName() string

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 {

	// Created namespace
	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

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 of the namespace to delete
	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

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 DeleteNamespaceResponse

type DeleteNamespaceResponse struct {

	// Indicates if namespace existed before this operation
	Existed bool `protobuf:"varint,1,opt,name=existed,proto3" json:"existed,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNamespaceResponse) Descriptor deprecated

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

Deprecated: Use DeleteNamespaceResponse.ProtoReflect.Descriptor instead.

func (*DeleteNamespaceResponse) GetExisted

func (x *DeleteNamespaceResponse) GetExisted() bool

func (*DeleteNamespaceResponse) ProtoMessage

func (*DeleteNamespaceResponse) ProtoMessage()

func (*DeleteNamespaceResponse) ProtoReflect

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

func (*DeleteNamespaceResponse) Reset

func (x *DeleteNamespaceResponse) Reset()

func (*DeleteNamespaceResponse) String

func (x *DeleteNamespaceResponse) String() string

type EnsureNamespaceRequest

type EnsureNamespaceRequest struct {

	// Unique name of the namespace. Name must match the regex "[A-Za-z0-9]+$". Max length is 32 symbols.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User-friendly public name of the namespace. Can be changed in the future. Max length is 128 symbols.
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
	// Arbitrary description. Can be changed in the future. Max length is 512 symbols.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureNamespaceRequest) Descriptor deprecated

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

Deprecated: Use EnsureNamespaceRequest.ProtoReflect.Descriptor instead.

func (*EnsureNamespaceRequest) GetDescription

func (x *EnsureNamespaceRequest) GetDescription() string

func (*EnsureNamespaceRequest) GetFullName

func (x *EnsureNamespaceRequest) GetFullName() string

func (*EnsureNamespaceRequest) GetName

func (x *EnsureNamespaceRequest) GetName() string

func (*EnsureNamespaceRequest) ProtoMessage

func (*EnsureNamespaceRequest) ProtoMessage()

func (*EnsureNamespaceRequest) ProtoReflect

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

func (*EnsureNamespaceRequest) Reset

func (x *EnsureNamespaceRequest) Reset()

func (*EnsureNamespaceRequest) String

func (x *EnsureNamespaceRequest) String() string

type EnsureNamespaceResponse

type EnsureNamespaceResponse struct {

	// Created namespace
	Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// If true - new namespace was created
	Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

func (*EnsureNamespaceResponse) Descriptor deprecated

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

Deprecated: Use EnsureNamespaceResponse.ProtoReflect.Descriptor instead.

func (*EnsureNamespaceResponse) GetCreated

func (x *EnsureNamespaceResponse) GetCreated() bool

func (*EnsureNamespaceResponse) GetNamespace

func (x *EnsureNamespaceResponse) GetNamespace() *Namespace

func (*EnsureNamespaceResponse) ProtoMessage

func (*EnsureNamespaceResponse) ProtoMessage()

func (*EnsureNamespaceResponse) ProtoReflect

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

func (*EnsureNamespaceResponse) Reset

func (x *EnsureNamespaceResponse) Reset()

func (*EnsureNamespaceResponse) String

func (x *EnsureNamespaceResponse) String() string

type GetAllNamespacesRequest

type GetAllNamespacesRequest struct {

	// Use cache or not. Cache have very small chance to be inconsisten on frequent read/writes operations to any namespace. Concurrent reads are safe. Inconsistent cache will be deleted after some period of time.
	UseCache bool `protobuf:"varint,1,opt,name=useCache,proto3" json:"useCache,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllNamespacesRequest) Descriptor deprecated

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

Deprecated: Use GetAllNamespacesRequest.ProtoReflect.Descriptor instead.

func (*GetAllNamespacesRequest) GetUseCache

func (x *GetAllNamespacesRequest) GetUseCache() bool

func (*GetAllNamespacesRequest) ProtoMessage

func (*GetAllNamespacesRequest) ProtoMessage()

func (*GetAllNamespacesRequest) ProtoReflect

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

func (*GetAllNamespacesRequest) Reset

func (x *GetAllNamespacesRequest) Reset()

func (*GetAllNamespacesRequest) String

func (x *GetAllNamespacesRequest) String() string

type GetAllNamespacesResponse

type GetAllNamespacesResponse struct {
	Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllNamespacesResponse) Descriptor deprecated

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

Deprecated: Use GetAllNamespacesResponse.ProtoReflect.Descriptor instead.

func (*GetAllNamespacesResponse) GetNamespace

func (x *GetAllNamespacesResponse) GetNamespace() *Namespace

func (*GetAllNamespacesResponse) ProtoMessage

func (*GetAllNamespacesResponse) ProtoMessage()

func (*GetAllNamespacesResponse) ProtoReflect

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

func (*GetAllNamespacesResponse) Reset

func (x *GetAllNamespacesResponse) Reset()

func (*GetAllNamespacesResponse) String

func (x *GetAllNamespacesResponse) String() string

type GetNamespaceRequest

type GetNamespaceRequest struct {

	// Name of the namespace to get
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Use cache or not. Cache have very small chance to be inconsisten on frequent read/writes operations to same namespace. Concurrent reads are safe. Inconsistent cache will be deleted after some period of time.
	UseCache bool `protobuf:"varint,2,opt,name=useCache,proto3" json:"useCache,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespaceRequest) Descriptor deprecated

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

Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead.

func (*GetNamespaceRequest) GetName

func (x *GetNamespaceRequest) GetName() string

func (*GetNamespaceRequest) GetUseCache

func (x *GetNamespaceRequest) GetUseCache() bool

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 deprecated

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 GetNamespaceStatisticsRequest

type GetNamespaceStatisticsRequest struct {

	// Name of the namespace to get statistics. Required.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//
	//Cached data will be returned faster but may not be realtime.
	UseCache bool `protobuf:"varint,2,opt,name=useCache,proto3" json:"useCache,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespaceStatisticsRequest) Descriptor deprecated

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

Deprecated: Use GetNamespaceStatisticsRequest.ProtoReflect.Descriptor instead.

func (*GetNamespaceStatisticsRequest) GetName

func (*GetNamespaceStatisticsRequest) GetUseCache

func (x *GetNamespaceStatisticsRequest) GetUseCache() bool

func (*GetNamespaceStatisticsRequest) ProtoMessage

func (*GetNamespaceStatisticsRequest) ProtoMessage()

func (*GetNamespaceStatisticsRequest) ProtoReflect

func (*GetNamespaceStatisticsRequest) Reset

func (x *GetNamespaceStatisticsRequest) Reset()

func (*GetNamespaceStatisticsRequest) String

type GetNamespaceStatisticsResponse

type GetNamespaceStatisticsResponse struct {

	// Statistics from the database related to the namespace
	Db *GetNamespaceStatisticsResponse_Db `protobuf:"bytes,1,opt,name=db,proto3" json:"db,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespaceStatisticsResponse) Descriptor deprecated

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

Deprecated: Use GetNamespaceStatisticsResponse.ProtoReflect.Descriptor instead.

func (*GetNamespaceStatisticsResponse) GetDb

func (*GetNamespaceStatisticsResponse) ProtoMessage

func (*GetNamespaceStatisticsResponse) ProtoMessage()

func (*GetNamespaceStatisticsResponse) ProtoReflect

func (*GetNamespaceStatisticsResponse) Reset

func (x *GetNamespaceStatisticsResponse) Reset()

func (*GetNamespaceStatisticsResponse) String

type GetNamespaceStatisticsResponse_Db

type GetNamespaceStatisticsResponse_Db struct {

	// Number ob objects stored in the database
	Objects uint64 `protobuf:"varint,1,opt,name=objects,proto3" json:"objects,omitempty"`
	// Total size of the raw data stored (without pre-alocated allocated space and indexes)
	DataSize uint64 `protobuf:"varint,2,opt,name=dataSize,proto3" json:"dataSize,omitempty"`
	// Total memory usage of the namespace
	TotalSize uint64 `protobuf:"varint,3,opt,name=totalSize,proto3" json:"totalSize,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNamespaceStatisticsResponse_Db) Descriptor deprecated

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

Deprecated: Use GetNamespaceStatisticsResponse_Db.ProtoReflect.Descriptor instead.

func (*GetNamespaceStatisticsResponse_Db) GetDataSize

func (x *GetNamespaceStatisticsResponse_Db) GetDataSize() uint64

func (*GetNamespaceStatisticsResponse_Db) GetObjects

func (x *GetNamespaceStatisticsResponse_Db) GetObjects() uint64

func (*GetNamespaceStatisticsResponse_Db) GetTotalSize

func (x *GetNamespaceStatisticsResponse_Db) GetTotalSize() uint64

func (*GetNamespaceStatisticsResponse_Db) ProtoMessage

func (*GetNamespaceStatisticsResponse_Db) ProtoMessage()

func (*GetNamespaceStatisticsResponse_Db) ProtoReflect

func (*GetNamespaceStatisticsResponse_Db) Reset

func (*GetNamespaceStatisticsResponse_Db) String

type IsNamespaceExistRequest

type IsNamespaceExistRequest struct {

	// Name of the namespace to get
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Use cache or not. Cache have very small chance to be inconsisten on frequent read/writes operations to same namespace. Inconsistent cache will be deleted after some period of time.
	UseCache bool `protobuf:"varint,2,opt,name=useCache,proto3" json:"useCache,omitempty"`
	// contains filtered or unexported fields
}

func (*IsNamespaceExistRequest) Descriptor deprecated

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

Deprecated: Use IsNamespaceExistRequest.ProtoReflect.Descriptor instead.

func (*IsNamespaceExistRequest) GetName

func (x *IsNamespaceExistRequest) GetName() string

func (*IsNamespaceExistRequest) GetUseCache

func (x *IsNamespaceExistRequest) GetUseCache() bool

func (*IsNamespaceExistRequest) ProtoMessage

func (*IsNamespaceExistRequest) ProtoMessage()

func (*IsNamespaceExistRequest) ProtoReflect

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

func (*IsNamespaceExistRequest) Reset

func (x *IsNamespaceExistRequest) Reset()

func (*IsNamespaceExistRequest) String

func (x *IsNamespaceExistRequest) String() string

type IsNamespaceExistResponse

type IsNamespaceExistResponse struct {

	// True if namespace exist, else - False
	Exist bool `protobuf:"varint,1,opt,name=exist,proto3" json:"exist,omitempty"`
	// contains filtered or unexported fields
}

func (*IsNamespaceExistResponse) Descriptor deprecated

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

Deprecated: Use IsNamespaceExistResponse.ProtoReflect.Descriptor instead.

func (*IsNamespaceExistResponse) GetExist

func (x *IsNamespaceExistResponse) GetExist() bool

func (*IsNamespaceExistResponse) ProtoMessage

func (*IsNamespaceExistResponse) ProtoMessage()

func (*IsNamespaceExistResponse) ProtoReflect

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

func (*IsNamespaceExistResponse) Reset

func (x *IsNamespaceExistResponse) Reset()

func (*IsNamespaceExistResponse) String

func (x *IsNamespaceExistResponse) String() string

type Namespace

type Namespace struct {

	// Unique name of the namespace
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User-friendly public name of the namespace.
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
	// Arbitrary description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// When the namespace was created
	Created *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// Last time when the namespace information was updated.
	Updated *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"`
	// Counter that increases after every update of the namespace
	Version uint64 `protobuf:"varint,6,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Namespace) Descriptor deprecated

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

Deprecated: Use Namespace.ProtoReflect.Descriptor instead.

func (*Namespace) GetCreated

func (x *Namespace) GetCreated() *timestamp.Timestamp

func (*Namespace) GetDescription

func (x *Namespace) GetDescription() string

func (*Namespace) GetFullName

func (x *Namespace) GetFullName() string

func (*Namespace) GetName

func (x *Namespace) GetName() string

func (*Namespace) GetUpdated

func (x *Namespace) GetUpdated() *timestamp.Timestamp

func (*Namespace) GetVersion

func (x *Namespace) GetVersion() uint64

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 NamespaceServiceClient

type NamespaceServiceClient interface {
	// Create new namespace if it doesnt exist. If namespace exist, its data will not be updated.
	Ensure(ctx context.Context, in *EnsureNamespaceRequest, opts ...grpc.CallOption) (*EnsureNamespaceResponse, error)
	// Creates new namespace. If namespace already exist, will return error.
	Create(ctx context.Context, in *CreateNamespaceRequest, opts ...grpc.CallOption) (*CreateNamespaceResponse, error)
	// Updates namespace information. If namespace doesnt exist, will return error.
	Update(ctx context.Context, in *UpdateNamespaceRequest, opts ...grpc.CallOption) (*UpdateNamespaceResponse, error)
	// Deletes namespace and all its data
	Delete(ctx context.Context, in *DeleteNamespaceRequest, opts ...grpc.CallOption) (*DeleteNamespaceResponse, error)
	// Returns namespace information by its name
	Get(ctx context.Context, in *GetNamespaceRequest, opts ...grpc.CallOption) (*GetNamespaceResponse, error)
	// Streams list of all namespaces
	GetAll(ctx context.Context, in *GetAllNamespacesRequest, opts ...grpc.CallOption) (NamespaceService_GetAllClient, error)
	// Checks if namespace exists
	Exists(ctx context.Context, in *IsNamespaceExistRequest, opts ...grpc.CallOption) (*IsNamespaceExistResponse, error)
	// Gets namespace statistics. If namespace doesnt exist, will return error.
	Stat(ctx context.Context, in *GetNamespaceStatisticsRequest, opts ...grpc.CallOption) (*GetNamespaceStatisticsResponse, error)
}

NamespaceServiceClient is the client API for NamespaceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type NamespaceServiceServer

type NamespaceServiceServer interface {
	// Create new namespace if it doesnt exist. If namespace exist, its data will not be updated.
	Ensure(context.Context, *EnsureNamespaceRequest) (*EnsureNamespaceResponse, error)
	// Creates new namespace. If namespace already exist, will return error.
	Create(context.Context, *CreateNamespaceRequest) (*CreateNamespaceResponse, error)
	// Updates namespace information. If namespace doesnt exist, will return error.
	Update(context.Context, *UpdateNamespaceRequest) (*UpdateNamespaceResponse, error)
	// Deletes namespace and all its data
	Delete(context.Context, *DeleteNamespaceRequest) (*DeleteNamespaceResponse, error)
	// Returns namespace information by its name
	Get(context.Context, *GetNamespaceRequest) (*GetNamespaceResponse, error)
	// Streams list of all namespaces
	GetAll(*GetAllNamespacesRequest, NamespaceService_GetAllServer) error
	// Checks if namespace exists
	Exists(context.Context, *IsNamespaceExistRequest) (*IsNamespaceExistResponse, error)
	// Gets namespace statistics. If namespace doesnt exist, will return error.
	Stat(context.Context, *GetNamespaceStatisticsRequest) (*GetNamespaceStatisticsResponse, error)
	// contains filtered or unexported methods
}

NamespaceServiceServer is the server API for NamespaceService service. All implementations must embed UnimplementedNamespaceServiceServer for forward compatibility

type NamespaceService_GetAllClient

type NamespaceService_GetAllClient interface {
	Recv() (*GetAllNamespacesResponse, error)
	grpc.ClientStream
}

type NamespaceService_GetAllServer

type NamespaceService_GetAllServer interface {
	Send(*GetAllNamespacesResponse) error
	grpc.ServerStream
}

type UnimplementedNamespaceServiceServer

type UnimplementedNamespaceServiceServer struct {
}

UnimplementedNamespaceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNamespaceServiceServer) Create

func (UnimplementedNamespaceServiceServer) Delete

func (UnimplementedNamespaceServiceServer) Ensure

func (UnimplementedNamespaceServiceServer) Exists

func (UnimplementedNamespaceServiceServer) Get

func (UnimplementedNamespaceServiceServer) GetAll

func (UnimplementedNamespaceServiceServer) Update

type UnsafeNamespaceServiceServer

type UnsafeNamespaceServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNamespaceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NamespaceServiceServer will result in compilation errors.

type UpdateNamespaceRequest

type UpdateNamespaceRequest struct {

	// Unique name of the namespace.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// User-friendly public name of the namespace. May be changed in the future.
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"`
	// Arbitrary description. May be changed in the future.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNamespaceRequest) Descriptor deprecated

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

Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead.

func (*UpdateNamespaceRequest) GetDescription

func (x *UpdateNamespaceRequest) GetDescription() string

func (*UpdateNamespaceRequest) GetFullName

func (x *UpdateNamespaceRequest) GetFullName() string

func (*UpdateNamespaceRequest) GetName

func (x *UpdateNamespaceRequest) GetName() string

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 {

	// Created namespace
	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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL