api

package
v1.32.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NOTE: in case changes happens to the RBAC message, add new version before the RBACLatestCommandPolicyVersion
	// RBACCommandPolicyVersionV0 represents the first version of RBAC commands where it wasn't set and equal 0
	// this version was needed because we did migrate paths of SchemaDomain to limit the collection
	// old "schema/collections/{collection_name}/shards/*" all shards in collection
	// new "schema/collections/{collection_name}/shards/#" limited to collection only
	RBACCommandPolicyVersionV0 = iota

	// this version was needed because we did migrate verbs of RolesDomain to control the scope
	// of Role permissions and default to MATCH scope instead of ALL
	// old verb was (C)|(R)|(U)|(D)
	// new verb was MATCH
	RBACCommandPolicyVersionV1

	// this version was needed because we did flatten manage_roles to C+U+D_roles
	RBACCommandPolicyVersionV2
	// this version was needed because assign_and_revoke_users was saved with verb UPDATE. However with dynamic user
	// management we need a special permission to update users
	RBACCommandPolicyVersionV3

	// RBACLatestCommandPolicyVersion represents the latest version of RBAC commands policies
	// It's used to migrate policy changes. if we end up with a cluster having different version
	// that won't be a problem because the version here is not about the message change but more about
	// the content of the body which will dumbed anyway in RBAC storage.
	RBACLatestCommandPolicyVersion
)
View Source
const (
	RBACAssignRevokeCommandPolicyVersionV0 = iota
	RBACAssignRevokeLatestCommandPolicyVersion
)
View Source
const (
	// NOTE: in case changes happens to the dynamic user message, add new version
	DynUserLatestCommandPolicyVersion = iota
)
View Source
const (
	ReplicationCommandVersionV0 = iota
)

Variables

View Source
var (
	ApplyRequest_Type_name = map[int32]string{
		0:   "TYPE_UNSPECIFIED",
		1:   "TYPE_ADD_CLASS",
		2:   "TYPE_UPDATE_CLASS",
		3:   "TYPE_DELETE_CLASS",
		4:   "TYPE_RESTORE_CLASS",
		5:   "TYPE_ADD_PROPERTY",
		10:  "TYPE_UPDATE_SHARD_STATUS",
		11:  "TYPE_ADD_REPLICA_TO_SHARD",
		12:  "TYPE_DELETE_REPLICA_FROM_SHARD",
		16:  "TYPE_ADD_TENANT",
		17:  "TYPE_UPDATE_TENANT",
		18:  "TYPE_DELETE_TENANT",
		19:  "TYPE_TENANT_PROCESS",
		40:  "TYPE_CREATE_ALIAS",
		41:  "TYPE_REPLACE_ALIAS",
		42:  "TYPE_DELETE_ALIAS",
		60:  "TYPE_UPSERT_ROLES_PERMISSIONS",
		61:  "TYPE_DELETE_ROLES",
		62:  "TYPE_REMOVE_PERMISSIONS",
		63:  "TYPE_ADD_ROLES_FOR_USER",
		64:  "TYPE_REVOKE_ROLES_FOR_USER",
		80:  "TYPE_UPSERT_USER",
		81:  "TYPE_DELETE_USER",
		82:  "TYPE_ROTATE_USER_API_KEY",
		83:  "TYPE_SUSPEND_USER",
		84:  "TYPE_ACTIVATE_USER",
		85:  "TYPE_CREATE_USER_WITH_KEY",
		99:  "TYPE_STORE_SCHEMA_V1",
		200: "TYPE_REPLICATION_REPLICATE",
		201: "TYPE_REPLICATION_REPLICATE_UPDATE_STATE",
		202: "TYPE_REPLICATION_REPLICATE_REGISTER_ERROR",
		203: "TYPE_REPLICATION_REPLICATE_CANCEL",
		204: "TYPE_REPLICATION_REPLICATE_DELETE",
		205: "TYPE_REPLICATION_REPLICATE_REMOVE",
		206: "TYPE_REPLICATION_REPLICATE_CANCELLATION_COMPLETE",
		207: "TYPE_REPLICATION_REPLICATE_DELETE_ALL",
		208: "TYPE_REPLICATION_REPLICATE_DELETE_BY_COLLECTION",
		209: "TYPE_REPLICATION_REPLICATE_DELETE_BY_TENANTS",
		210: "TYPE_REPLICATION_REPLICATE_SYNC_SHARD",
		211: "TYPE_REPLICATION_REGISTER_SCHEMA_VERSION",
		212: "TYPE_REPLICATION_REPLICATE_ADD_REPLICA_TO_SHARD",
		220: "TYPE_REPLICATION_REPLICATE_FORCE_DELETE_ALL",
		221: "TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION",
		222: "TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION_AND_SHARD",
		223: "TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_TARGET_NODE",
		224: "TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_UUID",
		300: "TYPE_DISTRIBUTED_TASK_ADD",
		301: "TYPE_DISTRIBUTED_TASK_CANCEL",
		302: "TYPE_DISTRIBUTED_TASK_RECORD_NODE_COMPLETED",
		303: "TYPE_DISTRIBUTED_TASK_CLEAN_UP",
	}
	ApplyRequest_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":                                                0,
		"TYPE_ADD_CLASS":                                                  1,
		"TYPE_UPDATE_CLASS":                                               2,
		"TYPE_DELETE_CLASS":                                               3,
		"TYPE_RESTORE_CLASS":                                              4,
		"TYPE_ADD_PROPERTY":                                               5,
		"TYPE_UPDATE_SHARD_STATUS":                                        10,
		"TYPE_ADD_REPLICA_TO_SHARD":                                       11,
		"TYPE_DELETE_REPLICA_FROM_SHARD":                                  12,
		"TYPE_ADD_TENANT":                                                 16,
		"TYPE_UPDATE_TENANT":                                              17,
		"TYPE_DELETE_TENANT":                                              18,
		"TYPE_TENANT_PROCESS":                                             19,
		"TYPE_CREATE_ALIAS":                                               40,
		"TYPE_REPLACE_ALIAS":                                              41,
		"TYPE_DELETE_ALIAS":                                               42,
		"TYPE_UPSERT_ROLES_PERMISSIONS":                                   60,
		"TYPE_DELETE_ROLES":                                               61,
		"TYPE_REMOVE_PERMISSIONS":                                         62,
		"TYPE_ADD_ROLES_FOR_USER":                                         63,
		"TYPE_REVOKE_ROLES_FOR_USER":                                      64,
		"TYPE_UPSERT_USER":                                                80,
		"TYPE_DELETE_USER":                                                81,
		"TYPE_ROTATE_USER_API_KEY":                                        82,
		"TYPE_SUSPEND_USER":                                               83,
		"TYPE_ACTIVATE_USER":                                              84,
		"TYPE_CREATE_USER_WITH_KEY":                                       85,
		"TYPE_STORE_SCHEMA_V1":                                            99,
		"TYPE_REPLICATION_REPLICATE":                                      200,
		"TYPE_REPLICATION_REPLICATE_UPDATE_STATE":                         201,
		"TYPE_REPLICATION_REPLICATE_REGISTER_ERROR":                       202,
		"TYPE_REPLICATION_REPLICATE_CANCEL":                               203,
		"TYPE_REPLICATION_REPLICATE_DELETE":                               204,
		"TYPE_REPLICATION_REPLICATE_REMOVE":                               205,
		"TYPE_REPLICATION_REPLICATE_CANCELLATION_COMPLETE":                206,
		"TYPE_REPLICATION_REPLICATE_DELETE_ALL":                           207,
		"TYPE_REPLICATION_REPLICATE_DELETE_BY_COLLECTION":                 208,
		"TYPE_REPLICATION_REPLICATE_DELETE_BY_TENANTS":                    209,
		"TYPE_REPLICATION_REPLICATE_SYNC_SHARD":                           210,
		"TYPE_REPLICATION_REGISTER_SCHEMA_VERSION":                        211,
		"TYPE_REPLICATION_REPLICATE_ADD_REPLICA_TO_SHARD":                 212,
		"TYPE_REPLICATION_REPLICATE_FORCE_DELETE_ALL":                     220,
		"TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION":           221,
		"TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION_AND_SHARD": 222,
		"TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_TARGET_NODE":          223,
		"TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_UUID":                 224,
		"TYPE_DISTRIBUTED_TASK_ADD":                                       300,
		"TYPE_DISTRIBUTED_TASK_CANCEL":                                    301,
		"TYPE_DISTRIBUTED_TASK_RECORD_NODE_COMPLETED":                     302,
		"TYPE_DISTRIBUTED_TASK_CLEAN_UP":                                  303,
	}
)

Enum value maps for ApplyRequest_Type.

View Source
var (
	QueryRequest_Type_name = map[int32]string{
		0:   "TYPE_UNSPECIFIED",
		1:   "TYPE_GET_CLASSES",
		2:   "TYPE_GET_SCHEMA",
		3:   "TYPE_GET_TENANTS",
		4:   "TYPE_GET_SHARD_OWNER",
		5:   "TYPE_GET_TENANTS_SHARDS",
		6:   "TYPE_GET_SHARDING_STATE",
		7:   "TYPE_GET_CLASS_VERSIONS",
		8:   "TYPE_GET_COLLECTIONS_COUNT",
		30:  "TYPE_HAS_PERMISSION",
		31:  "TYPE_GET_ROLES",
		32:  "TYPE_GET_ROLES_FOR_USER",
		33:  "TYPE_GET_USERS_FOR_ROLE",
		34:  "TYPE_GET_USERS_OR_GROUPS_WITH_ROLES",
		61:  "TYPE_GET_USERS",
		62:  "TYPE_USER_IDENTIFIER_EXISTS",
		100: "TYPE_RESOLVE_ALIAS",
		101: "TYPE_GET_ALIASES",
		200: "TYPE_GET_REPLICATION_DETAILS",
		201: "TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION",
		202: "TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION_AND_SHARD",
		203: "TYPE_GET_REPLICATION_DETAILS_BY_TARGET_NODE",
		204: "TYPE_GET_SHARDING_STATE_BY_COLLECTION",
		205: "TYPE_GET_SHARDING_STATE_BY_COLLECTION_AND_SHARD",
		206: "TYPE_GET_ALL_REPLICATION_DETAILS",
		207: "TYPE_GET_REPLICATION_OPERATION_STATE",
		300: "TYPE_DISTRIBUTED_TASK_LIST",
	}
	QueryRequest_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":                                     0,
		"TYPE_GET_CLASSES":                                     1,
		"TYPE_GET_SCHEMA":                                      2,
		"TYPE_GET_TENANTS":                                     3,
		"TYPE_GET_SHARD_OWNER":                                 4,
		"TYPE_GET_TENANTS_SHARDS":                              5,
		"TYPE_GET_SHARDING_STATE":                              6,
		"TYPE_GET_CLASS_VERSIONS":                              7,
		"TYPE_GET_COLLECTIONS_COUNT":                           8,
		"TYPE_HAS_PERMISSION":                                  30,
		"TYPE_GET_ROLES":                                       31,
		"TYPE_GET_ROLES_FOR_USER":                              32,
		"TYPE_GET_USERS_FOR_ROLE":                              33,
		"TYPE_GET_USERS_OR_GROUPS_WITH_ROLES":                  34,
		"TYPE_GET_USERS":                                       61,
		"TYPE_USER_IDENTIFIER_EXISTS":                          62,
		"TYPE_RESOLVE_ALIAS":                                   100,
		"TYPE_GET_ALIASES":                                     101,
		"TYPE_GET_REPLICATION_DETAILS":                         200,
		"TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION":           201,
		"TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION_AND_SHARD": 202,
		"TYPE_GET_REPLICATION_DETAILS_BY_TARGET_NODE":          203,
		"TYPE_GET_SHARDING_STATE_BY_COLLECTION":                204,
		"TYPE_GET_SHARDING_STATE_BY_COLLECTION_AND_SHARD":      205,
		"TYPE_GET_ALL_REPLICATION_DETAILS":                     206,
		"TYPE_GET_REPLICATION_OPERATION_STATE":                 207,
		"TYPE_DISTRIBUTED_TASK_LIST":                           300,
	}
)

Enum value maps for QueryRequest_Type.

View Source
var (
	TenantsProcess_Op_name = map[int32]string{
		0: "OP_UNSPECIFIED",
		1: "OP_START",
		2: "OP_DONE",
		3: "OP_ABORT",
	}
	TenantsProcess_Op_value = map[string]int32{
		"OP_UNSPECIFIED": 0,
		"OP_START":       1,
		"OP_DONE":        2,
		"OP_ABORT":       3,
	}
)

Enum value maps for TenantsProcess_Op.

View Source
var (
	TenantProcessRequest_Action_name = map[int32]string{
		0: "ACTION_UNSPECIFIED",
		1: "ACTION_FREEZING",
		2: "ACTION_UNFREEZING",
	}
	TenantProcessRequest_Action_value = map[string]int32{
		"ACTION_UNSPECIFIED": 0,
		"ACTION_FREEZING":    1,
		"ACTION_UNFREEZING":  2,
	}
)

Enum value maps for TenantProcessRequest_Action.

View Source
var ClusterService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "weaviate.internal.cluster.ClusterService",
	HandlerType: (*ClusterServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RemovePeer",
			Handler:    _ClusterService_RemovePeer_Handler,
		},
		{
			MethodName: "JoinPeer",
			Handler:    _ClusterService_JoinPeer_Handler,
		},
		{
			MethodName: "NotifyPeer",
			Handler:    _ClusterService_NotifyPeer_Handler,
		},
		{
			MethodName: "Apply",
			Handler:    _ClusterService_Apply_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _ClusterService_Query_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/message.proto",
}

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

View Source
var File_api_message_proto protoreflect.FileDescriptor

Functions

func RegisterClusterServiceServer

func RegisterClusterServiceServer(s grpc.ServiceRegistrar, srv ClusterServiceServer)

Types

type ActivateUsersRequest added in v1.30.0

type ActivateUsersRequest struct {
	UserId  string
	Version int
}

type AddClassRequest

type AddClassRequest struct {
	Class *models.Class
	State *sharding.State
}

type AddDistributedTaskRequest added in v1.31.0

type AddDistributedTaskRequest struct {
	Namespace             string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Id                    string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Payload               []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
	SubmittedAtUnixMillis int64  `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AddDistributedTaskRequest) Descriptor deprecated added in v1.31.0

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

Deprecated: Use AddDistributedTaskRequest.ProtoReflect.Descriptor instead.

func (*AddDistributedTaskRequest) GetId added in v1.31.0

func (x *AddDistributedTaskRequest) GetId() string

func (*AddDistributedTaskRequest) GetNamespace added in v1.31.0

func (x *AddDistributedTaskRequest) GetNamespace() string

func (*AddDistributedTaskRequest) GetPayload added in v1.31.0

func (x *AddDistributedTaskRequest) GetPayload() []byte

func (*AddDistributedTaskRequest) GetSubmittedAtUnixMillis added in v1.31.0

func (x *AddDistributedTaskRequest) GetSubmittedAtUnixMillis() int64

func (*AddDistributedTaskRequest) ProtoMessage added in v1.31.0

func (*AddDistributedTaskRequest) ProtoMessage()

func (*AddDistributedTaskRequest) ProtoReflect added in v1.31.0

func (*AddDistributedTaskRequest) Reset added in v1.31.0

func (x *AddDistributedTaskRequest) Reset()

func (*AddDistributedTaskRequest) String added in v1.31.0

func (x *AddDistributedTaskRequest) String() string

type AddPropertyRequest

type AddPropertyRequest struct {
	Properties []*models.Property
}

type AddReplicaToShard added in v1.31.0

type AddReplicaToShard struct {
	Class, Shard, TargetNode string
	SchemaVersion            uint64
}

type AddRolesForUsersRequest added in v1.28.0

type AddRolesForUsersRequest struct {
	User    string
	Roles   []string
	Version int
}

type AddTenantsRequest

type AddTenantsRequest struct {
	ClusterNodes []string  `protobuf:"bytes,1,rep,name=cluster_nodes,json=clusterNodes,proto3" json:"cluster_nodes,omitempty"`
	Tenants      []*Tenant `protobuf:"bytes,2,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTenantsRequest) Descriptor deprecated

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

Deprecated: Use AddTenantsRequest.ProtoReflect.Descriptor instead.

func (*AddTenantsRequest) GetClusterNodes

func (x *AddTenantsRequest) GetClusterNodes() []string

func (*AddTenantsRequest) GetTenants

func (x *AddTenantsRequest) GetTenants() []*Tenant

func (*AddTenantsRequest) ProtoMessage

func (*AddTenantsRequest) ProtoMessage()

func (*AddTenantsRequest) ProtoReflect

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

func (*AddTenantsRequest) Reset

func (x *AddTenantsRequest) Reset()

func (*AddTenantsRequest) String

func (x *AddTenantsRequest) String() string

type ApplyRequest

type ApplyRequest struct {
	Type       ApplyRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=weaviate.internal.cluster.ApplyRequest_Type" json:"type,omitempty"`
	Class      string            `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	Version    uint64            `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	SubCommand []byte            `protobuf:"bytes,4,opt,name=sub_command,json=subCommand,proto3" json:"sub_command,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyRequest) Descriptor deprecated

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

Deprecated: Use ApplyRequest.ProtoReflect.Descriptor instead.

func (*ApplyRequest) GetClass

func (x *ApplyRequest) GetClass() string

func (*ApplyRequest) GetSubCommand

func (x *ApplyRequest) GetSubCommand() []byte

func (*ApplyRequest) GetType

func (x *ApplyRequest) GetType() ApplyRequest_Type

func (*ApplyRequest) GetVersion

func (x *ApplyRequest) GetVersion() uint64

func (*ApplyRequest) ProtoMessage

func (*ApplyRequest) ProtoMessage()

func (*ApplyRequest) ProtoReflect

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

func (*ApplyRequest) Reset

func (x *ApplyRequest) Reset()

func (*ApplyRequest) String

func (x *ApplyRequest) String() string

type ApplyRequest_Type

type ApplyRequest_Type int32
const (
	ApplyRequest_TYPE_UNSPECIFIED                                                ApplyRequest_Type = 0
	ApplyRequest_TYPE_ADD_CLASS                                                  ApplyRequest_Type = 1
	ApplyRequest_TYPE_UPDATE_CLASS                                               ApplyRequest_Type = 2
	ApplyRequest_TYPE_DELETE_CLASS                                               ApplyRequest_Type = 3
	ApplyRequest_TYPE_RESTORE_CLASS                                              ApplyRequest_Type = 4
	ApplyRequest_TYPE_ADD_PROPERTY                                               ApplyRequest_Type = 5
	ApplyRequest_TYPE_UPDATE_SHARD_STATUS                                        ApplyRequest_Type = 10
	ApplyRequest_TYPE_ADD_REPLICA_TO_SHARD                                       ApplyRequest_Type = 11
	ApplyRequest_TYPE_DELETE_REPLICA_FROM_SHARD                                  ApplyRequest_Type = 12
	ApplyRequest_TYPE_ADD_TENANT                                                 ApplyRequest_Type = 16
	ApplyRequest_TYPE_UPDATE_TENANT                                              ApplyRequest_Type = 17
	ApplyRequest_TYPE_DELETE_TENANT                                              ApplyRequest_Type = 18
	ApplyRequest_TYPE_TENANT_PROCESS                                             ApplyRequest_Type = 19
	ApplyRequest_TYPE_CREATE_ALIAS                                               ApplyRequest_Type = 40
	ApplyRequest_TYPE_REPLACE_ALIAS                                              ApplyRequest_Type = 41
	ApplyRequest_TYPE_DELETE_ALIAS                                               ApplyRequest_Type = 42
	ApplyRequest_TYPE_UPSERT_ROLES_PERMISSIONS                                   ApplyRequest_Type = 60
	ApplyRequest_TYPE_DELETE_ROLES                                               ApplyRequest_Type = 61
	ApplyRequest_TYPE_REMOVE_PERMISSIONS                                         ApplyRequest_Type = 62
	ApplyRequest_TYPE_ADD_ROLES_FOR_USER                                         ApplyRequest_Type = 63
	ApplyRequest_TYPE_REVOKE_ROLES_FOR_USER                                      ApplyRequest_Type = 64
	ApplyRequest_TYPE_UPSERT_USER                                                ApplyRequest_Type = 80
	ApplyRequest_TYPE_DELETE_USER                                                ApplyRequest_Type = 81
	ApplyRequest_TYPE_ROTATE_USER_API_KEY                                        ApplyRequest_Type = 82
	ApplyRequest_TYPE_SUSPEND_USER                                               ApplyRequest_Type = 83
	ApplyRequest_TYPE_ACTIVATE_USER                                              ApplyRequest_Type = 84
	ApplyRequest_TYPE_CREATE_USER_WITH_KEY                                       ApplyRequest_Type = 85
	ApplyRequest_TYPE_STORE_SCHEMA_V1                                            ApplyRequest_Type = 99
	ApplyRequest_TYPE_REPLICATION_REPLICATE                                      ApplyRequest_Type = 200
	ApplyRequest_TYPE_REPLICATION_REPLICATE_UPDATE_STATE                         ApplyRequest_Type = 201
	ApplyRequest_TYPE_REPLICATION_REPLICATE_REGISTER_ERROR                       ApplyRequest_Type = 202
	ApplyRequest_TYPE_REPLICATION_REPLICATE_CANCEL                               ApplyRequest_Type = 203
	ApplyRequest_TYPE_REPLICATION_REPLICATE_DELETE                               ApplyRequest_Type = 204
	ApplyRequest_TYPE_REPLICATION_REPLICATE_REMOVE                               ApplyRequest_Type = 205
	ApplyRequest_TYPE_REPLICATION_REPLICATE_CANCELLATION_COMPLETE                ApplyRequest_Type = 206
	ApplyRequest_TYPE_REPLICATION_REPLICATE_DELETE_ALL                           ApplyRequest_Type = 207
	ApplyRequest_TYPE_REPLICATION_REPLICATE_DELETE_BY_COLLECTION                 ApplyRequest_Type = 208
	ApplyRequest_TYPE_REPLICATION_REPLICATE_DELETE_BY_TENANTS                    ApplyRequest_Type = 209
	ApplyRequest_TYPE_REPLICATION_REPLICATE_SYNC_SHARD                           ApplyRequest_Type = 210
	ApplyRequest_TYPE_REPLICATION_REGISTER_SCHEMA_VERSION                        ApplyRequest_Type = 211
	ApplyRequest_TYPE_REPLICATION_REPLICATE_ADD_REPLICA_TO_SHARD                 ApplyRequest_Type = 212
	ApplyRequest_TYPE_REPLICATION_REPLICATE_FORCE_DELETE_ALL                     ApplyRequest_Type = 220
	ApplyRequest_TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION           ApplyRequest_Type = 221
	ApplyRequest_TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_COLLECTION_AND_SHARD ApplyRequest_Type = 222
	ApplyRequest_TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_TARGET_NODE          ApplyRequest_Type = 223
	ApplyRequest_TYPE_REPLICATION_REPLICATE_FORCE_DELETE_BY_UUID                 ApplyRequest_Type = 224
	ApplyRequest_TYPE_DISTRIBUTED_TASK_ADD                                       ApplyRequest_Type = 300
	ApplyRequest_TYPE_DISTRIBUTED_TASK_CANCEL                                    ApplyRequest_Type = 301
	ApplyRequest_TYPE_DISTRIBUTED_TASK_RECORD_NODE_COMPLETED                     ApplyRequest_Type = 302
	ApplyRequest_TYPE_DISTRIBUTED_TASK_CLEAN_UP                                  ApplyRequest_Type = 303
)

func (ApplyRequest_Type) Descriptor

func (ApplyRequest_Type) Enum

func (ApplyRequest_Type) EnumDescriptor deprecated

func (ApplyRequest_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ApplyRequest_Type.Descriptor instead.

func (ApplyRequest_Type) Number

func (ApplyRequest_Type) String

func (x ApplyRequest_Type) String() string

func (ApplyRequest_Type) Type

type ApplyResponse

type ApplyResponse struct {
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Leader  string `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"`
	// contains filtered or unexported fields
}

func (*ApplyResponse) Descriptor deprecated

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

Deprecated: Use ApplyResponse.ProtoReflect.Descriptor instead.

func (*ApplyResponse) GetLeader

func (x *ApplyResponse) GetLeader() string

func (*ApplyResponse) GetVersion

func (x *ApplyResponse) GetVersion() uint64

func (*ApplyResponse) ProtoMessage

func (*ApplyResponse) ProtoMessage()

func (*ApplyResponse) ProtoReflect

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

func (*ApplyResponse) Reset

func (x *ApplyResponse) Reset()

func (*ApplyResponse) String

func (x *ApplyResponse) String() string

type CancelDistributedTaskRequest added in v1.31.0

type CancelDistributedTaskRequest struct {
	Namespace             string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Id                    string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Version               uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	CancelledAtUnixMillis int64  `` /* 129-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CancelDistributedTaskRequest) Descriptor deprecated added in v1.31.0

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

Deprecated: Use CancelDistributedTaskRequest.ProtoReflect.Descriptor instead.

func (*CancelDistributedTaskRequest) GetCancelledAtUnixMillis added in v1.31.0

func (x *CancelDistributedTaskRequest) GetCancelledAtUnixMillis() int64

func (*CancelDistributedTaskRequest) GetId added in v1.31.0

func (*CancelDistributedTaskRequest) GetNamespace added in v1.31.0

func (x *CancelDistributedTaskRequest) GetNamespace() string

func (*CancelDistributedTaskRequest) GetVersion added in v1.31.0

func (x *CancelDistributedTaskRequest) GetVersion() uint64

func (*CancelDistributedTaskRequest) ProtoMessage added in v1.31.0

func (*CancelDistributedTaskRequest) ProtoMessage()

func (*CancelDistributedTaskRequest) ProtoReflect added in v1.31.0

func (*CancelDistributedTaskRequest) Reset added in v1.31.0

func (x *CancelDistributedTaskRequest) Reset()

func (*CancelDistributedTaskRequest) String added in v1.31.0

type CleanUpDistributedTaskRequest added in v1.31.0

type CleanUpDistributedTaskRequest struct {
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Id        string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Version   uint64 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*CleanUpDistributedTaskRequest) Descriptor deprecated added in v1.31.0

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

Deprecated: Use CleanUpDistributedTaskRequest.ProtoReflect.Descriptor instead.

func (*CleanUpDistributedTaskRequest) GetId added in v1.31.0

func (*CleanUpDistributedTaskRequest) GetNamespace added in v1.31.0

func (x *CleanUpDistributedTaskRequest) GetNamespace() string

func (*CleanUpDistributedTaskRequest) GetVersion added in v1.31.0

func (x *CleanUpDistributedTaskRequest) GetVersion() uint64

func (*CleanUpDistributedTaskRequest) ProtoMessage added in v1.31.0

func (*CleanUpDistributedTaskRequest) ProtoMessage()

func (*CleanUpDistributedTaskRequest) ProtoReflect added in v1.31.0

func (*CleanUpDistributedTaskRequest) Reset added in v1.31.0

func (x *CleanUpDistributedTaskRequest) Reset()

func (*CleanUpDistributedTaskRequest) String added in v1.31.0

type ClusterServiceClient

type ClusterServiceClient interface {
	RemovePeer(ctx context.Context, in *RemovePeerRequest, opts ...grpc.CallOption) (*RemovePeerResponse, error)
	JoinPeer(ctx context.Context, in *JoinPeerRequest, opts ...grpc.CallOption) (*JoinPeerResponse, error)
	NotifyPeer(ctx context.Context, in *NotifyPeerRequest, opts ...grpc.CallOption) (*NotifyPeerResponse, error)
	Apply(ctx context.Context, in *ApplyRequest, opts ...grpc.CallOption) (*ApplyResponse, error)
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
}

ClusterServiceClient is the client API for ClusterService 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 ClusterServiceServer

ClusterServiceServer is the server API for ClusterService service. All implementations should embed UnimplementedClusterServiceServer for forward compatibility

type CreateAliasRequest added in v1.32.0

type CreateAliasRequest struct {
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Alias      string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAliasRequest) Descriptor deprecated added in v1.32.0

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

Deprecated: Use CreateAliasRequest.ProtoReflect.Descriptor instead.

func (*CreateAliasRequest) GetAlias added in v1.32.0

func (x *CreateAliasRequest) GetAlias() string

func (*CreateAliasRequest) GetCollection added in v1.32.0

func (x *CreateAliasRequest) GetCollection() string

func (*CreateAliasRequest) ProtoMessage added in v1.32.0

func (*CreateAliasRequest) ProtoMessage()

func (*CreateAliasRequest) ProtoReflect added in v1.32.0

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

func (*CreateAliasRequest) Reset added in v1.32.0

func (x *CreateAliasRequest) Reset()

func (*CreateAliasRequest) String added in v1.32.0

func (x *CreateAliasRequest) String() string

type CreateRolesRequest added in v1.28.0

type CreateRolesRequest struct {
	Roles        map[string][]authorization.Policy
	RoleCreation bool
	Version      int
}

type CreateUserWithKeyRequest added in v1.30.10

type CreateUserWithKeyRequest struct {
	UserId             string
	ApiKeyFirstLetters string
	WeakHash           [sha256.Size]byte
	CreatedAt          time.Time
	Version            int
}

type CreateUsersRequest added in v1.30.0

type CreateUsersRequest struct {
	UserId             string
	SecureHash         string
	UserIdentifier     string
	ApiKeyFirstLetters string
	CreatedAt          time.Time
	Version            int
}

type DeleteAliasRequest added in v1.32.0

type DeleteAliasRequest struct {
	Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAliasRequest) Descriptor deprecated added in v1.32.0

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

Deprecated: Use DeleteAliasRequest.ProtoReflect.Descriptor instead.

func (*DeleteAliasRequest) GetAlias added in v1.32.0

func (x *DeleteAliasRequest) GetAlias() string

func (*DeleteAliasRequest) ProtoMessage added in v1.32.0

func (*DeleteAliasRequest) ProtoMessage()

func (*DeleteAliasRequest) ProtoReflect added in v1.32.0

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

func (*DeleteAliasRequest) Reset added in v1.32.0

func (x *DeleteAliasRequest) Reset()

func (*DeleteAliasRequest) String added in v1.32.0

func (x *DeleteAliasRequest) String() string

type DeleteClassRequest

type DeleteClassRequest struct {
	Name string
}

type DeleteReplicaFromShard added in v1.31.0

type DeleteReplicaFromShard struct {
	Class, Shard, TargetNode string
	SchemaVersion            uint64
}

type DeleteRolesRequest added in v1.28.0

type DeleteRolesRequest struct {
	Roles []string
}

type DeleteTenantsRequest

type DeleteTenantsRequest struct {
	Tenants []string `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTenantsRequest) Descriptor deprecated

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

Deprecated: Use DeleteTenantsRequest.ProtoReflect.Descriptor instead.

func (*DeleteTenantsRequest) GetTenants

func (x *DeleteTenantsRequest) GetTenants() []string

func (*DeleteTenantsRequest) ProtoMessage

func (*DeleteTenantsRequest) ProtoMessage()

func (*DeleteTenantsRequest) ProtoReflect

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

func (*DeleteTenantsRequest) Reset

func (x *DeleteTenantsRequest) Reset()

func (*DeleteTenantsRequest) String

func (x *DeleteTenantsRequest) String() string

type DeleteUsersRequest added in v1.30.0

type DeleteUsersRequest struct {
	UserId  string
	Version int
}

type JoinPeerRequest

type JoinPeerRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Voter   bool   `protobuf:"varint,3,opt,name=voter,proto3" json:"voter,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinPeerRequest) Descriptor deprecated

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

Deprecated: Use JoinPeerRequest.ProtoReflect.Descriptor instead.

func (*JoinPeerRequest) GetAddress

func (x *JoinPeerRequest) GetAddress() string

func (*JoinPeerRequest) GetId

func (x *JoinPeerRequest) GetId() string

func (*JoinPeerRequest) GetVoter

func (x *JoinPeerRequest) GetVoter() bool

func (*JoinPeerRequest) ProtoMessage

func (*JoinPeerRequest) ProtoMessage()

func (*JoinPeerRequest) ProtoReflect

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

func (*JoinPeerRequest) Reset

func (x *JoinPeerRequest) Reset()

func (*JoinPeerRequest) String

func (x *JoinPeerRequest) String() string

type JoinPeerResponse

type JoinPeerResponse struct {
	Leader string `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"`
	// contains filtered or unexported fields
}

func (*JoinPeerResponse) Descriptor deprecated

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

Deprecated: Use JoinPeerResponse.ProtoReflect.Descriptor instead.

func (*JoinPeerResponse) GetLeader

func (x *JoinPeerResponse) GetLeader() string

func (*JoinPeerResponse) ProtoMessage

func (*JoinPeerResponse) ProtoMessage()

func (*JoinPeerResponse) ProtoReflect

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

func (*JoinPeerResponse) Reset

func (x *JoinPeerResponse) Reset()

func (*JoinPeerResponse) String

func (x *JoinPeerResponse) String() string

type NotifyPeerRequest

type NotifyPeerRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyPeerRequest) Descriptor deprecated

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

Deprecated: Use NotifyPeerRequest.ProtoReflect.Descriptor instead.

func (*NotifyPeerRequest) GetAddress

func (x *NotifyPeerRequest) GetAddress() string

func (*NotifyPeerRequest) GetId

func (x *NotifyPeerRequest) GetId() string

func (*NotifyPeerRequest) ProtoMessage

func (*NotifyPeerRequest) ProtoMessage()

func (*NotifyPeerRequest) ProtoReflect

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

func (*NotifyPeerRequest) Reset

func (x *NotifyPeerRequest) Reset()

func (*NotifyPeerRequest) String

func (x *NotifyPeerRequest) String() string

type NotifyPeerResponse

type NotifyPeerResponse struct {
	// contains filtered or unexported fields
}

func (*NotifyPeerResponse) Descriptor deprecated

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

Deprecated: Use NotifyPeerResponse.ProtoReflect.Descriptor instead.

func (*NotifyPeerResponse) ProtoMessage

func (*NotifyPeerResponse) ProtoMessage()

func (*NotifyPeerResponse) ProtoReflect

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

func (*NotifyPeerResponse) Reset

func (x *NotifyPeerResponse) Reset()

func (*NotifyPeerResponse) String

func (x *NotifyPeerResponse) String() string

type QueryClassVersionsRequest added in v1.27.11

type QueryClassVersionsRequest struct {
	Classes []string
}

type QueryClassVersionsResponse added in v1.27.11

type QueryClassVersionsResponse struct {
	// Classes is a map of class name to the class version
	Classes map[string]uint64
}

type QueryCollectionsCountResponse added in v1.30.0

type QueryCollectionsCountResponse struct {
	Count int
}

type QueryGetAliasesRequest added in v1.32.0

type QueryGetAliasesRequest struct {
	Alias, Class string
}

type QueryGetAliasesResponse added in v1.32.0

type QueryGetAliasesResponse struct {
	Aliases map[string]string
}

type QueryGetAllUsersOrGroupsWithRolesRequest added in v1.32.5

type QueryGetAllUsersOrGroupsWithRolesRequest struct {
	IsGroup  bool
	AuthType authentication.AuthType
}

type QueryGetAllUsersOrGroupsWithRolesResponse added in v1.32.5

type QueryGetAllUsersOrGroupsWithRolesResponse struct {
	UsersOrGroups []string
}

type QueryGetRolesForUserOrGroupRequest added in v1.32.5

type QueryGetRolesForUserOrGroupRequest struct {
	User     string
	UserType authentication.AuthType
	IsGroup  bool
}

type QueryGetRolesForUserOrGroupResponse added in v1.32.5

type QueryGetRolesForUserOrGroupResponse struct {
	Roles map[string][]authorization.Policy
}

type QueryGetRolesRequest added in v1.28.0

type QueryGetRolesRequest struct {
	Roles []string
}

type QueryGetRolesResponse added in v1.28.0

type QueryGetRolesResponse struct {
	Roles map[string][]authorization.Policy
}

type QueryGetUsersForRoleRequest added in v1.28.0

type QueryGetUsersForRoleRequest struct {
	Role     string
	UserType authentication.AuthType
	IsGroup  bool
}

type QueryGetUsersForRoleResponse added in v1.28.0

type QueryGetUsersForRoleResponse struct {
	Users []string
}

type QueryGetUsersRequest added in v1.30.0

type QueryGetUsersRequest struct {
	UserIds []string
}

type QueryGetUsersResponse added in v1.30.0

type QueryGetUsersResponse struct {
	Users map[string]*apikey.User
}

type QueryHasPermissionRequest added in v1.28.0

type QueryHasPermissionRequest struct {
	Role       string
	Permission *authorization.Policy
}

type QueryHasPermissionResponse added in v1.28.0

type QueryHasPermissionResponse struct {
	HasPermission bool
}

type QueryReadOnlyClassResponse

type QueryReadOnlyClassResponse struct {
	Classes map[string]versioned.Class
}

type QueryReadOnlyClassesRequest

type QueryReadOnlyClassesRequest struct {
	Classes []string
}

type QueryRequest

type QueryRequest struct {
	Type       QueryRequest_Type `protobuf:"varint,1,opt,name=type,proto3,enum=weaviate.internal.cluster.QueryRequest_Type" json:"type,omitempty"`
	SubCommand []byte            `protobuf:"bytes,2,opt,name=sub_command,json=subCommand,proto3" json:"sub_command,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetSubCommand

func (x *QueryRequest) GetSubCommand() []byte

func (*QueryRequest) GetType

func (x *QueryRequest) GetType() QueryRequest_Type

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryRequest_Type

type QueryRequest_Type int32
const (
	QueryRequest_TYPE_UNSPECIFIED                                     QueryRequest_Type = 0
	QueryRequest_TYPE_GET_CLASSES                                     QueryRequest_Type = 1
	QueryRequest_TYPE_GET_SCHEMA                                      QueryRequest_Type = 2
	QueryRequest_TYPE_GET_TENANTS                                     QueryRequest_Type = 3
	QueryRequest_TYPE_GET_SHARD_OWNER                                 QueryRequest_Type = 4
	QueryRequest_TYPE_GET_TENANTS_SHARDS                              QueryRequest_Type = 5
	QueryRequest_TYPE_GET_SHARDING_STATE                              QueryRequest_Type = 6
	QueryRequest_TYPE_GET_CLASS_VERSIONS                              QueryRequest_Type = 7
	QueryRequest_TYPE_GET_COLLECTIONS_COUNT                           QueryRequest_Type = 8
	QueryRequest_TYPE_HAS_PERMISSION                                  QueryRequest_Type = 30
	QueryRequest_TYPE_GET_ROLES                                       QueryRequest_Type = 31
	QueryRequest_TYPE_GET_ROLES_FOR_USER                              QueryRequest_Type = 32
	QueryRequest_TYPE_GET_USERS_FOR_ROLE                              QueryRequest_Type = 33
	QueryRequest_TYPE_GET_USERS_OR_GROUPS_WITH_ROLES                  QueryRequest_Type = 34
	QueryRequest_TYPE_GET_USERS                                       QueryRequest_Type = 61
	QueryRequest_TYPE_USER_IDENTIFIER_EXISTS                          QueryRequest_Type = 62
	QueryRequest_TYPE_RESOLVE_ALIAS                                   QueryRequest_Type = 100
	QueryRequest_TYPE_GET_ALIASES                                     QueryRequest_Type = 101
	QueryRequest_TYPE_GET_REPLICATION_DETAILS                         QueryRequest_Type = 200
	QueryRequest_TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION           QueryRequest_Type = 201
	QueryRequest_TYPE_GET_REPLICATION_DETAILS_BY_COLLECTION_AND_SHARD QueryRequest_Type = 202
	QueryRequest_TYPE_GET_REPLICATION_DETAILS_BY_TARGET_NODE          QueryRequest_Type = 203
	QueryRequest_TYPE_GET_SHARDING_STATE_BY_COLLECTION                QueryRequest_Type = 204
	QueryRequest_TYPE_GET_SHARDING_STATE_BY_COLLECTION_AND_SHARD      QueryRequest_Type = 205
	QueryRequest_TYPE_GET_ALL_REPLICATION_DETAILS                     QueryRequest_Type = 206
	QueryRequest_TYPE_GET_REPLICATION_OPERATION_STATE                 QueryRequest_Type = 207
	QueryRequest_TYPE_DISTRIBUTED_TASK_LIST                           QueryRequest_Type = 300
)

func (QueryRequest_Type) Descriptor

func (QueryRequest_Type) Enum

func (QueryRequest_Type) EnumDescriptor deprecated

func (QueryRequest_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use QueryRequest_Type.Descriptor instead.

func (QueryRequest_Type) Number

func (QueryRequest_Type) String

func (x QueryRequest_Type) String() string

func (QueryRequest_Type) Type

type QueryResolveAliasRequest added in v1.32.0

type QueryResolveAliasRequest struct {
	Alias string
}

type QueryResolveAliasResponse added in v1.32.0

type QueryResolveAliasResponse struct {
	Class string
}

type QueryResponse

type QueryResponse struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetPayload

func (x *QueryResponse) GetPayload() []byte

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type QuerySchemaResponse

type QuerySchemaResponse struct {
	Schema models.Schema
}

type QueryShardOwnerRequest

type QueryShardOwnerRequest struct {
	Class, Shard string
}

type QueryShardOwnerResponse

type QueryShardOwnerResponse struct {
	ShardVersion uint64
	Owner        string
}

type QueryShardingStateRequest

type QueryShardingStateRequest struct {
	Class string
}

type QueryShardingStateResponse

type QueryShardingStateResponse struct {
	State   *sharding.State
	Version uint64
}

type QueryTenantsRequest

type QueryTenantsRequest struct {
	Class   string
	Tenants []string // If empty, all tenants are returned
}

type QueryTenantsResponse

type QueryTenantsResponse struct {
	ShardVersion uint64
	Tenants      []*models.Tenant
}

type QueryTenantsShardsRequest

type QueryTenantsShardsRequest struct {
	Class   string
	Tenants []string
}

type QueryTenantsShardsResponse

type QueryTenantsShardsResponse struct {
	TenantsActivityStatus map[string]string // map[tenant]status
	SchemaVersion         uint64
}

type QueryUserIdentifierExistsRequest added in v1.30.0

type QueryUserIdentifierExistsRequest struct {
	UserIdentifier string
}

type QueryUserIdentifierExistsResponse added in v1.30.0

type QueryUserIdentifierExistsResponse struct {
	Exists bool
}

type RecordDistributedTaskNodeCompletionRequest added in v1.31.0

type RecordDistributedTaskNodeCompletionRequest struct {
	Namespace            string  `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Id                   string  `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Version              uint64  `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
	NodeId               string  `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Error                *string `protobuf:"bytes,5,opt,name=error,proto3,oneof" json:"error,omitempty"`
	FinishedAtUnixMillis int64   `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RecordDistributedTaskNodeCompletionRequest) Descriptor deprecated added in v1.31.0

Deprecated: Use RecordDistributedTaskNodeCompletionRequest.ProtoReflect.Descriptor instead.

func (*RecordDistributedTaskNodeCompletionRequest) GetError added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) GetFinishedAtUnixMillis added in v1.31.0

func (x *RecordDistributedTaskNodeCompletionRequest) GetFinishedAtUnixMillis() int64

func (*RecordDistributedTaskNodeCompletionRequest) GetId added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) GetNamespace added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) GetNodeId added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) GetVersion added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) ProtoMessage added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) ProtoReflect added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) Reset added in v1.31.0

func (*RecordDistributedTaskNodeCompletionRequest) String added in v1.31.0

type RemovePeerRequest

type RemovePeerRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePeerRequest) Descriptor deprecated

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

Deprecated: Use RemovePeerRequest.ProtoReflect.Descriptor instead.

func (*RemovePeerRequest) GetId

func (x *RemovePeerRequest) GetId() string

func (*RemovePeerRequest) ProtoMessage

func (*RemovePeerRequest) ProtoMessage()

func (*RemovePeerRequest) ProtoReflect

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

func (*RemovePeerRequest) Reset

func (x *RemovePeerRequest) Reset()

func (*RemovePeerRequest) String

func (x *RemovePeerRequest) String() string

type RemovePeerResponse

type RemovePeerResponse struct {
	Leader string `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"`
	// contains filtered or unexported fields
}

func (*RemovePeerResponse) Descriptor deprecated

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

Deprecated: Use RemovePeerResponse.ProtoReflect.Descriptor instead.

func (*RemovePeerResponse) GetLeader

func (x *RemovePeerResponse) GetLeader() string

func (*RemovePeerResponse) ProtoMessage

func (*RemovePeerResponse) ProtoMessage()

func (*RemovePeerResponse) ProtoReflect

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

func (*RemovePeerResponse) Reset

func (x *RemovePeerResponse) Reset()

func (*RemovePeerResponse) String

func (x *RemovePeerResponse) String() string

type RemovePermissionsRequest added in v1.28.0

type RemovePermissionsRequest struct {
	Role        string
	Permissions []*authorization.Policy
	Version     int
}

type ReplaceAliasRequest added in v1.32.0

type ReplaceAliasRequest struct {
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Alias      string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplaceAliasRequest) Descriptor deprecated added in v1.32.0

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

Deprecated: Use ReplaceAliasRequest.ProtoReflect.Descriptor instead.

func (*ReplaceAliasRequest) GetAlias added in v1.32.0

func (x *ReplaceAliasRequest) GetAlias() string

func (*ReplaceAliasRequest) GetCollection added in v1.32.0

func (x *ReplaceAliasRequest) GetCollection() string

func (*ReplaceAliasRequest) ProtoMessage added in v1.32.0

func (*ReplaceAliasRequest) ProtoMessage()

func (*ReplaceAliasRequest) ProtoReflect added in v1.32.0

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

func (*ReplaceAliasRequest) Reset added in v1.32.0

func (x *ReplaceAliasRequest) Reset()

func (*ReplaceAliasRequest) String added in v1.32.0

func (x *ReplaceAliasRequest) String() string

type ReplicationAddReplicaToShard added in v1.31.0

type ReplicationAddReplicaToShard struct {
	OpId                     uint64
	Class, Shard, TargetNode string
	SchemaVersion            uint64
}

type ReplicationCancelRequest added in v1.31.0

type ReplicationCancelRequest struct {
	Version int
	Uuid    strfmt.UUID
}

type ReplicationCancellationCompleteRequest added in v1.31.0

type ReplicationCancellationCompleteRequest struct {
	Version int
	Id      uint64
}

type ReplicationDeleteAllRequest added in v1.31.0

type ReplicationDeleteAllRequest struct {
	Version int
}

type ReplicationDeleteOpResponse added in v1.31.0

type ReplicationDeleteOpResponse struct{}

type ReplicationDeleteRequest added in v1.31.0

type ReplicationDeleteRequest struct {
	Version int
	Uuid    strfmt.UUID
}

type ReplicationDetailsError added in v1.32.0

type ReplicationDetailsError struct {
	Message           string
	ErroredTimeUnixMs int64 // Unix timestamp in milliseconds when the error occurred
}

type ReplicationDetailsRequest added in v1.31.0

type ReplicationDetailsRequest struct {
	Uuid strfmt.UUID
}

type ReplicationDetailsRequestByCollection added in v1.31.0

type ReplicationDetailsRequestByCollection struct {
	Collection string
}

type ReplicationDetailsRequestByCollectionAndShard added in v1.31.0

type ReplicationDetailsRequestByCollectionAndShard struct {
	Collection string
	Shard      string
}

type ReplicationDetailsRequestByTargetNode added in v1.31.0

type ReplicationDetailsRequestByTargetNode struct {
	Node string
}

type ReplicationDetailsResponse added in v1.31.0

type ReplicationDetailsResponse struct {
	Uuid         strfmt.UUID
	Id           uint64
	ShardId      string
	Collection   string
	SourceNodeId string
	TargetNodeId string

	Uncancelable       bool
	ScheduledForCancel bool
	ScheduledForDelete bool

	Status          ReplicationDetailsState
	StatusHistory   []ReplicationDetailsState
	TransferType    string
	StartTimeUnixMs int64
}

type ReplicationDetailsState added in v1.31.0

type ReplicationDetailsState struct {
	State           string
	Errors          []ReplicationDetailsError
	StartTimeUnixMs int64 // Unix timestamp in milliseconds when the state was first entered
}

type ReplicationForceDeleteAllRequest added in v1.31.0

type ReplicationForceDeleteAllRequest struct{}

type ReplicationForceDeleteByCollectionAndShardRequest added in v1.31.0

type ReplicationForceDeleteByCollectionAndShardRequest struct {
	Collection string
	Shard      string
}

type ReplicationForceDeleteByCollectionRequest added in v1.31.0

type ReplicationForceDeleteByCollectionRequest struct {
	Collection string
}

type ReplicationForceDeleteByTargetNodeRequest added in v1.31.0

type ReplicationForceDeleteByTargetNodeRequest struct {
	Node string
}

type ReplicationForceDeleteByUuidRequest added in v1.31.0

type ReplicationForceDeleteByUuidRequest struct {
	Uuid strfmt.UUID
}

type ReplicationOperationStateRequest added in v1.31.0

type ReplicationOperationStateRequest struct {
	Id uint64
}

type ReplicationOperationStateResponse added in v1.31.0

type ReplicationOperationStateResponse struct {
	State ShardReplicationState
}

type ReplicationPurgeRequest added in v1.31.0

type ReplicationPurgeRequest struct {
	Version int
}

type ReplicationQueryShardingStateByCollectionAndShardRequest added in v1.31.0

type ReplicationQueryShardingStateByCollectionAndShardRequest struct {
	Collection string
	Shard      string
}

type ReplicationQueryShardingStateByCollectionRequest added in v1.31.0

type ReplicationQueryShardingStateByCollectionRequest struct {
	Collection string
}

type ReplicationRegisterErrorRequest added in v1.31.0

type ReplicationRegisterErrorRequest struct {
	Version int

	Id         uint64
	Error      string
	TimeUnixMs int64
}

type ReplicationRegisterErrorResponse added in v1.31.0

type ReplicationRegisterErrorResponse struct{}

type ReplicationRemoveOpRequest added in v1.31.0

type ReplicationRemoveOpRequest struct {
	Version int

	Id uint64
}

type ReplicationReplicateShardReponse added in v1.31.0

type ReplicationReplicateShardReponse struct{}

type ReplicationReplicateShardRequest added in v1.31.0

type ReplicationReplicateShardRequest struct {
	// Version is the version with which this command was generated
	Version int

	Uuid strfmt.UUID

	SourceNode       string
	SourceCollection string
	SourceShard      string
	TargetNode       string

	TransferType string
}

type ReplicationStoreSchemaVersionRequest added in v1.31.0

type ReplicationStoreSchemaVersionRequest struct {
	Version       int
	SchemaVersion uint64
	Id            uint64
}

type ReplicationUpdateOpStateRequest added in v1.31.0

type ReplicationUpdateOpStateRequest struct {
	Version int

	Id    uint64
	State ShardReplicationState
}

type ReplicationUpdateOpStateResponse added in v1.31.0

type ReplicationUpdateOpStateResponse struct{}

type ReplicationsDeleteByCollectionRequest added in v1.31.0

type ReplicationsDeleteByCollectionRequest struct {
	Version    int
	Collection string
}

type ReplicationsDeleteByTenantsRequest added in v1.31.0

type ReplicationsDeleteByTenantsRequest struct {
	Version    int
	Collection string
	Tenants    []string
}

type RevokeRolesForUserRequest added in v1.28.0

type RevokeRolesForUserRequest struct {
	User    string
	Roles   []string
	Version int
}

type RotateUserApiKeyRequest added in v1.30.0

type RotateUserApiKeyRequest struct {
	UserId             string
	ApiKeyFirstLetters string
	SecureHash         string
	OldIdentifier      string
	NewIdentifier      string
	Version            int
}

type ShardReplicationState added in v1.31.0

type ShardReplicationState string
const (
	REGISTERED  ShardReplicationState = "REGISTERED"
	HYDRATING   ShardReplicationState = "HYDRATING"
	FINALIZING  ShardReplicationState = "FINALIZING"
	READY       ShardReplicationState = "READY"
	DEHYDRATING ShardReplicationState = "DEHYDRATING"
	CANCELLED   ShardReplicationState = "CANCELLED" // The operation has been cancelled. It cannot be resumed.
)

func (ShardReplicationState) String added in v1.31.0

func (s ShardReplicationState) String() string

type ShardReplicationTransferType added in v1.31.0

type ShardReplicationTransferType string
const (
	COPY ShardReplicationTransferType = "COPY"
	MOVE ShardReplicationTransferType = "MOVE"
)

func (ShardReplicationTransferType) String added in v1.31.0

type ShardingState added in v1.31.0

type ShardingState struct {
	Collection string
	Shards     map[string][]string
}

type SuspendUserRequest added in v1.30.0

type SuspendUserRequest struct {
	UserId    string
	RevokeKey bool
	Version   int
}

type SyncShardRequest added in v1.31.0

type SyncShardRequest struct {
	Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"`
	Shard      string `protobuf:"bytes,2,opt,name=shard,proto3" json:"shard,omitempty"`
	NodeId     string `protobuf:"bytes,3,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncShardRequest) Descriptor deprecated added in v1.31.0

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

Deprecated: Use SyncShardRequest.ProtoReflect.Descriptor instead.

func (*SyncShardRequest) GetCollection added in v1.31.0

func (x *SyncShardRequest) GetCollection() string

func (*SyncShardRequest) GetNodeId added in v1.31.0

func (x *SyncShardRequest) GetNodeId() string

func (*SyncShardRequest) GetShard added in v1.31.0

func (x *SyncShardRequest) GetShard() string

func (*SyncShardRequest) ProtoMessage added in v1.31.0

func (*SyncShardRequest) ProtoMessage()

func (*SyncShardRequest) ProtoReflect added in v1.31.0

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

func (*SyncShardRequest) Reset added in v1.31.0

func (x *SyncShardRequest) Reset()

func (*SyncShardRequest) String added in v1.31.0

func (x *SyncShardRequest) String() string

type Tenant

type Tenant struct {
	Name   string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Tenant) Descriptor deprecated

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

Deprecated: Use Tenant.ProtoReflect.Descriptor instead.

func (*Tenant) GetName

func (x *Tenant) GetName() string

func (*Tenant) GetStatus

func (x *Tenant) GetStatus() string

func (*Tenant) ProtoMessage

func (*Tenant) ProtoMessage()

func (*Tenant) ProtoReflect

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

func (*Tenant) Reset

func (x *Tenant) Reset()

func (*Tenant) String

func (x *Tenant) String() string

type TenantProcessRequest added in v1.26.0

type TenantProcessRequest struct {
	Node             string                      `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	Action           TenantProcessRequest_Action `protobuf:"varint,2,opt,name=action,proto3,enum=weaviate.internal.cluster.TenantProcessRequest_Action" json:"action,omitempty"`
	TenantsProcesses []*TenantsProcess           `protobuf:"bytes,3,rep,name=tenants_processes,json=tenantsProcesses,proto3" json:"tenants_processes,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantProcessRequest) Descriptor deprecated added in v1.26.0

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

Deprecated: Use TenantProcessRequest.ProtoReflect.Descriptor instead.

func (*TenantProcessRequest) GetAction added in v1.26.0

func (*TenantProcessRequest) GetNode added in v1.26.0

func (x *TenantProcessRequest) GetNode() string

func (*TenantProcessRequest) GetTenantsProcesses added in v1.26.0

func (x *TenantProcessRequest) GetTenantsProcesses() []*TenantsProcess

func (*TenantProcessRequest) ProtoMessage added in v1.26.0

func (*TenantProcessRequest) ProtoMessage()

func (*TenantProcessRequest) ProtoReflect added in v1.26.0

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

func (*TenantProcessRequest) Reset added in v1.26.0

func (x *TenantProcessRequest) Reset()

func (*TenantProcessRequest) String added in v1.26.0

func (x *TenantProcessRequest) String() string

type TenantProcessRequest_Action added in v1.26.0

type TenantProcessRequest_Action int32
const (
	TenantProcessRequest_ACTION_UNSPECIFIED TenantProcessRequest_Action = 0
	TenantProcessRequest_ACTION_FREEZING    TenantProcessRequest_Action = 1
	TenantProcessRequest_ACTION_UNFREEZING  TenantProcessRequest_Action = 2
)

func (TenantProcessRequest_Action) Descriptor added in v1.26.0

func (TenantProcessRequest_Action) Enum added in v1.26.0

func (TenantProcessRequest_Action) EnumDescriptor deprecated added in v1.26.0

func (TenantProcessRequest_Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use TenantProcessRequest_Action.Descriptor instead.

func (TenantProcessRequest_Action) Number added in v1.26.0

func (TenantProcessRequest_Action) String added in v1.26.0

func (TenantProcessRequest_Action) Type added in v1.26.0

type TenantWithVersion

type TenantWithVersion struct {
	ShardVersion uint64
	Tenant       *models.Tenant
}

type TenantsProcess added in v1.26.0

type TenantsProcess struct {
	Op     TenantsProcess_Op `protobuf:"varint,1,opt,name=op,proto3,enum=weaviate.internal.cluster.TenantsProcess_Op" json:"op,omitempty"`
	Tenant *Tenant           `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*TenantsProcess) Descriptor deprecated added in v1.26.0

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

Deprecated: Use TenantsProcess.ProtoReflect.Descriptor instead.

func (*TenantsProcess) GetOp added in v1.26.0

func (x *TenantsProcess) GetOp() TenantsProcess_Op

func (*TenantsProcess) GetTenant added in v1.26.0

func (x *TenantsProcess) GetTenant() *Tenant

func (*TenantsProcess) ProtoMessage added in v1.26.0

func (*TenantsProcess) ProtoMessage()

func (*TenantsProcess) ProtoReflect added in v1.26.0

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

func (*TenantsProcess) Reset added in v1.26.0

func (x *TenantsProcess) Reset()

func (*TenantsProcess) String added in v1.26.0

func (x *TenantsProcess) String() string

type TenantsProcess_Op added in v1.26.0

type TenantsProcess_Op int32
const (
	TenantsProcess_OP_UNSPECIFIED TenantsProcess_Op = 0
	TenantsProcess_OP_START       TenantsProcess_Op = 1
	TenantsProcess_OP_DONE        TenantsProcess_Op = 2
	TenantsProcess_OP_ABORT       TenantsProcess_Op = 3
)

func (TenantsProcess_Op) Descriptor added in v1.26.0

func (TenantsProcess_Op) Enum added in v1.26.0

func (TenantsProcess_Op) EnumDescriptor deprecated added in v1.26.0

func (TenantsProcess_Op) EnumDescriptor() ([]byte, []int)

Deprecated: Use TenantsProcess_Op.Descriptor instead.

func (TenantsProcess_Op) Number added in v1.26.0

func (TenantsProcess_Op) String added in v1.26.0

func (x TenantsProcess_Op) String() string

func (TenantsProcess_Op) Type added in v1.26.0

type UnimplementedClusterServiceServer

type UnimplementedClusterServiceServer struct {
}

UnimplementedClusterServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedClusterServiceServer) Apply

func (UnimplementedClusterServiceServer) JoinPeer

func (UnimplementedClusterServiceServer) NotifyPeer

func (UnimplementedClusterServiceServer) Query

func (UnimplementedClusterServiceServer) RemovePeer

type UnsafeClusterServiceServer

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

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

type UpdateClassRequest

type UpdateClassRequest struct {
	Class *models.Class
	State *sharding.State
}

type UpdateShardStatusRequest

type UpdateShardStatusRequest struct {
	Class, Shard, Status string
	SchemaVersion        uint64
}

type UpdateTenantsRequest

type UpdateTenantsRequest struct {
	Tenants               []*Tenant `protobuf:"bytes,1,rep,name=tenants,proto3" json:"tenants,omitempty"`
	ClusterNodes          []string  `protobuf:"bytes,2,rep,name=cluster_nodes,json=clusterNodes,proto3" json:"cluster_nodes,omitempty"`
	ImplicitUpdateRequest bool      `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdateTenantsRequest) Descriptor deprecated

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

Deprecated: Use UpdateTenantsRequest.ProtoReflect.Descriptor instead.

func (*UpdateTenantsRequest) GetClusterNodes added in v1.26.0

func (x *UpdateTenantsRequest) GetClusterNodes() []string

func (*UpdateTenantsRequest) GetImplicitUpdateRequest added in v1.31.4

func (x *UpdateTenantsRequest) GetImplicitUpdateRequest() bool

func (*UpdateTenantsRequest) GetTenants

func (x *UpdateTenantsRequest) GetTenants() []*Tenant

func (*UpdateTenantsRequest) ProtoMessage

func (*UpdateTenantsRequest) ProtoMessage()

func (*UpdateTenantsRequest) ProtoReflect

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

func (*UpdateTenantsRequest) Reset

func (x *UpdateTenantsRequest) Reset()

func (*UpdateTenantsRequest) String

func (x *UpdateTenantsRequest) String() string

Jump to

Keyboard shortcuts

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