Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDBControllerServer(s grpc.ServiceRegistrar, srv DBControllerServer)
- type Cache
- type CacheMetadata
- func (*CacheMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *CacheMetadata) GetAction() string
- func (x *CacheMetadata) GetDuration() int64
- func (x *CacheMetadata) GetHeight() int64
- func (x *CacheMetadata) GetMimeType() string
- func (x *CacheMetadata) GetParams() string
- func (x *CacheMetadata) GetPath() string
- func (x *CacheMetadata) GetSize() int64
- func (x *CacheMetadata) GetStorage() *Storage
- func (x *CacheMetadata) GetWidth() int64
- func (*CacheMetadata) ProtoMessage()
- func (x *CacheMetadata) ProtoReflect() protoreflect.Message
- func (x *CacheMetadata) Reset()
- func (x *CacheMetadata) String() string
- type CacheRequest
- func (*CacheRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CacheRequest) GetAction() string
- func (x *CacheRequest) GetIdentifier() *ItemIdentifier
- func (x *CacheRequest) GetParams() string
- func (*CacheRequest) ProtoMessage()
- func (x *CacheRequest) ProtoReflect() protoreflect.Message
- func (x *CacheRequest) Reset()
- func (x *CacheRequest) String() string
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)deprecated
- func (x *Collection) GetDescription() string
- func (x *Collection) GetJwtkey() string
- func (x *Collection) GetName() string
- func (x *Collection) GetPublic() string
- func (x *Collection) GetSecret() string
- func (x *Collection) GetSignaturePrefix() string
- func (x *Collection) GetStorage() *Storage
- func (*Collection) ProtoMessage()
- func (x *Collection) ProtoReflect() protoreflect.Message
- func (x *Collection) Reset()
- func (x *Collection) String() string
- type CollectionIdentifier
- func (*CollectionIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *CollectionIdentifier) GetCollection() string
- func (*CollectionIdentifier) ProtoMessage()
- func (x *CollectionIdentifier) ProtoReflect() protoreflect.Message
- func (x *CollectionIdentifier) Reset()
- func (x *CollectionIdentifier) String() string
- type CollectionsResponse
- func (*CollectionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CollectionsResponse) GetCollections() []*Collection
- func (x *CollectionsResponse) GetPage() *proto.PageResponse
- func (*CollectionsResponse) ProtoMessage()
- func (x *CollectionsResponse) ProtoReflect() protoreflect.Message
- func (x *CollectionsResponse) Reset()
- func (x *CollectionsResponse) String() string
- type DBControllerClient
- type DBControllerServer
- type DBController_GetCollectionsClient
- type DBController_GetCollectionsServer
- type IngestItem
- func (*IngestItem) Descriptor() ([]byte, []int)deprecated
- func (x *IngestItem) GetCollection() *Collection
- func (x *IngestItem) GetIdentifier() *ItemIdentifier
- func (x *IngestItem) GetIngestType() IngestType
- func (x *IngestItem) GetUrn() string
- func (*IngestItem) ProtoMessage()
- func (x *IngestItem) ProtoReflect() protoreflect.Message
- func (x *IngestItem) Reset()
- func (x *IngestItem) String() string
- type IngestMetadata
- func (*IngestMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *IngestMetadata) GetCacheMetadata() *CacheMetadata
- func (x *IngestMetadata) GetFullMetadata() string
- func (x *IngestMetadata) GetItem() *ItemIdentifier
- func (x *IngestMetadata) GetItemMetadata() *ItemMetadata
- func (x *IngestMetadata) GetStatus() string
- func (*IngestMetadata) ProtoMessage()
- func (x *IngestMetadata) ProtoReflect() protoreflect.Message
- func (x *IngestMetadata) Reset()
- func (x *IngestMetadata) String() string
- type IngestType
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetCreated() *timestamppb.Timestamp
- func (x *Item) GetDisabled() bool
- func (x *Item) GetError() string
- func (x *Item) GetIdentifier() *ItemIdentifier
- func (x *Item) GetMetadata() *ItemMetadata
- func (x *Item) GetParent() *ItemIdentifier
- func (x *Item) GetPublic() bool
- func (x *Item) GetPublicActions() []byte
- func (x *Item) GetStatus() string
- func (x *Item) GetUpdated() *timestamppb.Timestamp
- func (x *Item) GetUrn() string
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ItemIdentifier
- func (*ItemIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *ItemIdentifier) GetCollection() string
- func (x *ItemIdentifier) GetSignature() string
- func (*ItemIdentifier) ProtoMessage()
- func (x *ItemIdentifier) ProtoReflect() protoreflect.Message
- func (x *ItemIdentifier) Reset()
- func (x *ItemIdentifier) String() string
- type ItemMetadata
- func (*ItemMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ItemMetadata) GetMimetype() string
- func (x *ItemMetadata) GetObjecttype() string
- func (x *ItemMetadata) GetSha512() string
- func (x *ItemMetadata) GetSubtype() string
- func (x *ItemMetadata) GetType() string
- func (*ItemMetadata) ProtoMessage()
- func (x *ItemMetadata) ProtoReflect() protoreflect.Message
- func (x *ItemMetadata) Reset()
- func (x *ItemMetadata) String() string
- type NewItem
- func (*NewItem) Descriptor() ([]byte, []int)deprecated
- func (x *NewItem) GetIdentifier() *ItemIdentifier
- func (x *NewItem) GetIngestType() IngestType
- func (x *NewItem) GetParent() *ItemIdentifier
- func (x *NewItem) GetPublic() bool
- func (x *NewItem) GetPublicActions() []byte
- func (x *NewItem) GetUrn() string
- func (*NewItem) ProtoMessage()
- func (x *NewItem) ProtoReflect() protoreflect.Message
- func (x *NewItem) Reset()
- func (x *NewItem) String() string
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)deprecated
- func (x *Storage) GetDatadir() string
- func (x *Storage) GetFilebase() string
- func (x *Storage) GetName() string
- func (x *Storage) GetSubitemdir() string
- func (x *Storage) GetTempdir() string
- func (*Storage) ProtoMessage()
- func (x *Storage) ProtoReflect() protoreflect.Message
- func (x *Storage) Reset()
- func (x *Storage) String() string
- type StorageIdentifier
- type UnimplementedDBControllerServer
- func (UnimplementedDBControllerServer) CreateItem(context.Context, *NewItem) (*proto.DefaultResponse, error)
- func (UnimplementedDBControllerServer) DeleteItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error)
- func (UnimplementedDBControllerServer) ExistsItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error)
- func (UnimplementedDBControllerServer) GetCache(context.Context, *CacheRequest) (*Cache, error)
- func (UnimplementedDBControllerServer) GetCollection(context.Context, *CollectionIdentifier) (*Collection, error)
- func (UnimplementedDBControllerServer) GetCollections(*emptypb.Empty, DBController_GetCollectionsServer) error
- func (UnimplementedDBControllerServer) GetIngestItem(context.Context, *emptypb.Empty) (*IngestItem, error)
- func (UnimplementedDBControllerServer) GetItem(context.Context, *ItemIdentifier) (*Item, error)
- func (UnimplementedDBControllerServer) GetItemMetadata(context.Context, *ItemIdentifier) (*wrapperspb.StringValue, error)
- func (UnimplementedDBControllerServer) GetStorage(context.Context, *StorageIdentifier) (*Storage, error)
- func (UnimplementedDBControllerServer) InsertCache(context.Context, *Cache) (*proto.DefaultResponse, error)
- func (UnimplementedDBControllerServer) Ping(context.Context, *emptypb.Empty) (*proto.DefaultResponse, error)
- func (UnimplementedDBControllerServer) SetIngestItem(context.Context, *IngestMetadata) (*proto.DefaultResponse, error)
- type UnsafeDBControllerServer
Constants ¶
const ( DBController_Ping_FullMethodName = "/mediaserverdbproto.DBController/Ping" DBController_GetItem_FullMethodName = "/mediaserverdbproto.DBController/GetItem" DBController_GetItemMetadata_FullMethodName = "/mediaserverdbproto.DBController/GetItemMetadata" DBController_GetStorage_FullMethodName = "/mediaserverdbproto.DBController/GetStorage" DBController_GetCache_FullMethodName = "/mediaserverdbproto.DBController/GetCache" DBController_GetCollection_FullMethodName = "/mediaserverdbproto.DBController/GetCollection" DBController_GetCollections_FullMethodName = "/mediaserverdbproto.DBController/GetCollections" DBController_CreateItem_FullMethodName = "/mediaserverdbproto.DBController/CreateItem" DBController_DeleteItem_FullMethodName = "/mediaserverdbproto.DBController/DeleteItem" DBController_GetIngestItem_FullMethodName = "/mediaserverdbproto.DBController/GetIngestItem" DBController_SetIngestItem_FullMethodName = "/mediaserverdbproto.DBController/SetIngestItem" DBController_ExistsItem_FullMethodName = "/mediaserverdbproto.DBController/ExistsItem" DBController_InsertCache_FullMethodName = "/mediaserverdbproto.DBController/InsertCache" )
Variables ¶
var ( IngestType_name = map[int32]string{ 0: "KEEP", 1: "COPY", 2: "MOVE", } IngestType_value = map[string]int32{ "KEEP": 0, "COPY": 1, "MOVE": 2, } )
Enum value maps for IngestType.
var DBController_ServiceDesc = grpc.ServiceDesc{ ServiceName: "mediaserverdbproto.DBController", HandlerType: (*DBControllerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _DBController_Ping_Handler, }, { MethodName: "GetItem", Handler: _DBController_GetItem_Handler, }, { MethodName: "GetItemMetadata", Handler: _DBController_GetItemMetadata_Handler, }, { MethodName: "GetStorage", Handler: _DBController_GetStorage_Handler, }, { MethodName: "GetCache", Handler: _DBController_GetCache_Handler, }, { MethodName: "GetCollection", Handler: _DBController_GetCollection_Handler, }, { MethodName: "CreateItem", Handler: _DBController_CreateItem_Handler, }, { MethodName: "DeleteItem", Handler: _DBController_DeleteItem_Handler, }, { MethodName: "GetIngestItem", Handler: _DBController_GetIngestItem_Handler, }, { MethodName: "SetIngestItem", Handler: _DBController_SetIngestItem_Handler, }, { MethodName: "ExistsItem", Handler: _DBController_ExistsItem_Handler, }, { MethodName: "InsertCache", Handler: _DBController_InsertCache_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetCollections", Handler: _DBController_GetCollections_Handler, ServerStreams: true, }, }, Metadata: "dbcontroller.proto", }
DBController_ServiceDesc is the grpc.ServiceDesc for DBController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cache_proto protoreflect.FileDescriptor
var File_collection_proto protoreflect.FileDescriptor
var File_dbcontroller_proto protoreflect.FileDescriptor
var File_item_proto protoreflect.FileDescriptor
var File_storage_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDBControllerServer ¶
func RegisterDBControllerServer(s grpc.ServiceRegistrar, srv DBControllerServer)
Types ¶
type Cache ¶
type Cache struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Metadata *CacheMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*Cache) Descriptor
deprecated
func (*Cache) GetIdentifier ¶
func (x *Cache) GetIdentifier() *ItemIdentifier
func (*Cache) GetMetadata ¶
func (x *Cache) GetMetadata() *CacheMetadata
func (*Cache) ProtoMessage ¶
func (*Cache) ProtoMessage()
func (*Cache) ProtoReflect ¶
func (x *Cache) ProtoReflect() protoreflect.Message
type CacheMetadata ¶
type CacheMetadata struct { Action string `protobuf:"bytes,2,opt,name=Action,proto3" json:"Action,omitempty"` Params string `protobuf:"bytes,3,opt,name=Params,proto3" json:"Params,omitempty"` Width int64 `protobuf:"varint,4,opt,name=Width,proto3" json:"Width,omitempty"` Height int64 `protobuf:"varint,5,opt,name=Height,proto3" json:"Height,omitempty"` Duration int64 `protobuf:"varint,6,opt,name=Duration,proto3" json:"Duration,omitempty"` Size int64 `protobuf:"varint,7,opt,name=Size,proto3" json:"Size,omitempty"` MimeType string `protobuf:"bytes,8,opt,name=MimeType,proto3" json:"MimeType,omitempty"` Path string `protobuf:"bytes,9,opt,name=Path,proto3" json:"Path,omitempty"` Storage *Storage `protobuf:"bytes,10,opt,name=Storage,proto3,oneof" json:"Storage,omitempty"` // contains filtered or unexported fields }
func (*CacheMetadata) Descriptor
deprecated
func (*CacheMetadata) Descriptor() ([]byte, []int)
Deprecated: Use CacheMetadata.ProtoReflect.Descriptor instead.
func (*CacheMetadata) GetAction ¶
func (x *CacheMetadata) GetAction() string
func (*CacheMetadata) GetDuration ¶
func (x *CacheMetadata) GetDuration() int64
func (*CacheMetadata) GetHeight ¶
func (x *CacheMetadata) GetHeight() int64
func (*CacheMetadata) GetMimeType ¶
func (x *CacheMetadata) GetMimeType() string
func (*CacheMetadata) GetParams ¶
func (x *CacheMetadata) GetParams() string
func (*CacheMetadata) GetPath ¶
func (x *CacheMetadata) GetPath() string
func (*CacheMetadata) GetSize ¶
func (x *CacheMetadata) GetSize() int64
func (*CacheMetadata) GetStorage ¶ added in v2.0.11
func (x *CacheMetadata) GetStorage() *Storage
func (*CacheMetadata) GetWidth ¶
func (x *CacheMetadata) GetWidth() int64
func (*CacheMetadata) ProtoMessage ¶
func (*CacheMetadata) ProtoMessage()
func (*CacheMetadata) ProtoReflect ¶
func (x *CacheMetadata) ProtoReflect() protoreflect.Message
func (*CacheMetadata) Reset ¶
func (x *CacheMetadata) Reset()
func (*CacheMetadata) String ¶
func (x *CacheMetadata) String() string
type CacheRequest ¶ added in v2.0.8
type CacheRequest struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Action string `protobuf:"bytes,2,opt,name=Action,proto3" json:"Action,omitempty"` Params string `protobuf:"bytes,3,opt,name=Params,proto3" json:"Params,omitempty"` // contains filtered or unexported fields }
func (*CacheRequest) Descriptor
deprecated
added in
v2.0.8
func (*CacheRequest) Descriptor() ([]byte, []int)
Deprecated: Use CacheRequest.ProtoReflect.Descriptor instead.
func (*CacheRequest) GetAction ¶ added in v2.0.8
func (x *CacheRequest) GetAction() string
func (*CacheRequest) GetIdentifier ¶ added in v2.0.8
func (x *CacheRequest) GetIdentifier() *ItemIdentifier
func (*CacheRequest) GetParams ¶ added in v2.0.8
func (x *CacheRequest) GetParams() string
func (*CacheRequest) ProtoMessage ¶ added in v2.0.8
func (*CacheRequest) ProtoMessage()
func (*CacheRequest) ProtoReflect ¶ added in v2.0.8
func (x *CacheRequest) ProtoReflect() protoreflect.Message
func (*CacheRequest) Reset ¶ added in v2.0.8
func (x *CacheRequest) Reset()
func (*CacheRequest) String ¶ added in v2.0.8
func (x *CacheRequest) String() string
type Collection ¶
type Collection struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` SignaturePrefix string `protobuf:"bytes,3,opt,name=signature_prefix,json=signaturePrefix,proto3" json:"signature_prefix,omitempty"` Secret string `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty"` Public string `protobuf:"bytes,5,opt,name=public,proto3" json:"public,omitempty"` Jwtkey string `protobuf:"bytes,6,opt,name=jwtkey,proto3" json:"jwtkey,omitempty"` Storage *Storage `protobuf:"bytes,7,opt,name=storage,proto3" json:"storage,omitempty"` // contains filtered or unexported fields }
func (*Collection) Descriptor
deprecated
func (*Collection) Descriptor() ([]byte, []int)
Deprecated: Use Collection.ProtoReflect.Descriptor instead.
func (*Collection) GetDescription ¶
func (x *Collection) GetDescription() string
func (*Collection) GetJwtkey ¶
func (x *Collection) GetJwtkey() string
func (*Collection) GetName ¶
func (x *Collection) GetName() string
func (*Collection) GetPublic ¶
func (x *Collection) GetPublic() string
func (*Collection) GetSecret ¶
func (x *Collection) GetSecret() string
func (*Collection) GetSignaturePrefix ¶
func (x *Collection) GetSignaturePrefix() string
func (*Collection) GetStorage ¶
func (x *Collection) GetStorage() *Storage
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) ProtoReflect ¶
func (x *Collection) ProtoReflect() protoreflect.Message
func (*Collection) Reset ¶
func (x *Collection) Reset()
func (*Collection) String ¶
func (x *Collection) String() string
type CollectionIdentifier ¶
type CollectionIdentifier struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*CollectionIdentifier) Descriptor
deprecated
func (*CollectionIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use CollectionIdentifier.ProtoReflect.Descriptor instead.
func (*CollectionIdentifier) GetCollection ¶
func (x *CollectionIdentifier) GetCollection() string
func (*CollectionIdentifier) ProtoMessage ¶
func (*CollectionIdentifier) ProtoMessage()
func (*CollectionIdentifier) ProtoReflect ¶
func (x *CollectionIdentifier) ProtoReflect() protoreflect.Message
func (*CollectionIdentifier) Reset ¶
func (x *CollectionIdentifier) Reset()
func (*CollectionIdentifier) String ¶
func (x *CollectionIdentifier) String() string
type CollectionsResponse ¶ added in v2.0.3
type CollectionsResponse struct { Collections []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"` Page *proto.PageResponse `protobuf:"bytes,2,opt,name=Page,proto3" json:"Page,omitempty"` // contains filtered or unexported fields }
func (*CollectionsResponse) Descriptor
deprecated
added in
v2.0.3
func (*CollectionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use CollectionsResponse.ProtoReflect.Descriptor instead.
func (*CollectionsResponse) GetCollections ¶ added in v2.0.3
func (x *CollectionsResponse) GetCollections() []*Collection
func (*CollectionsResponse) GetPage ¶ added in v2.0.3
func (x *CollectionsResponse) GetPage() *proto.PageResponse
func (*CollectionsResponse) ProtoMessage ¶ added in v2.0.3
func (*CollectionsResponse) ProtoMessage()
func (*CollectionsResponse) ProtoReflect ¶ added in v2.0.3
func (x *CollectionsResponse) ProtoReflect() protoreflect.Message
func (*CollectionsResponse) Reset ¶ added in v2.0.3
func (x *CollectionsResponse) Reset()
func (*CollectionsResponse) String ¶ added in v2.0.3
func (x *CollectionsResponse) String() string
type DBControllerClient ¶
type DBControllerClient interface { Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*proto.DefaultResponse, error) GetItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*Item, error) GetItemMetadata(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*wrapperspb.StringValue, error) GetStorage(ctx context.Context, in *StorageIdentifier, opts ...grpc.CallOption) (*Storage, error) GetCache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*Cache, error) GetCollection(ctx context.Context, in *CollectionIdentifier, opts ...grpc.CallOption) (*Collection, error) GetCollections(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (DBController_GetCollectionsClient, error) CreateItem(ctx context.Context, in *NewItem, opts ...grpc.CallOption) (*proto.DefaultResponse, error) DeleteItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*proto.DefaultResponse, error) GetIngestItem(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IngestItem, error) SetIngestItem(ctx context.Context, in *IngestMetadata, opts ...grpc.CallOption) (*proto.DefaultResponse, error) ExistsItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*proto.DefaultResponse, error) InsertCache(ctx context.Context, in *Cache, opts ...grpc.CallOption) (*proto.DefaultResponse, error) }
DBControllerClient is the client API for DBController service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDBControllerClient ¶
func NewDBControllerClient(cc grpc.ClientConnInterface) DBControllerClient
type DBControllerServer ¶
type DBControllerServer interface { Ping(context.Context, *emptypb.Empty) (*proto.DefaultResponse, error) GetItem(context.Context, *ItemIdentifier) (*Item, error) GetItemMetadata(context.Context, *ItemIdentifier) (*wrapperspb.StringValue, error) GetStorage(context.Context, *StorageIdentifier) (*Storage, error) GetCache(context.Context, *CacheRequest) (*Cache, error) GetCollection(context.Context, *CollectionIdentifier) (*Collection, error) GetCollections(*emptypb.Empty, DBController_GetCollectionsServer) error CreateItem(context.Context, *NewItem) (*proto.DefaultResponse, error) DeleteItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error) GetIngestItem(context.Context, *emptypb.Empty) (*IngestItem, error) SetIngestItem(context.Context, *IngestMetadata) (*proto.DefaultResponse, error) ExistsItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error) InsertCache(context.Context, *Cache) (*proto.DefaultResponse, error) // contains filtered or unexported methods }
DBControllerServer is the server API for DBController service. All implementations must embed UnimplementedDBControllerServer for forward compatibility
type DBController_GetCollectionsClient ¶ added in v2.0.3
type DBController_GetCollectionsClient interface { Recv() (*Collection, error) grpc.ClientStream }
type DBController_GetCollectionsServer ¶ added in v2.0.3
type DBController_GetCollectionsServer interface { Send(*Collection) error grpc.ServerStream }
type IngestItem ¶
type IngestItem struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` IngestType IngestType `protobuf:"varint,3,opt,name=ingestType,proto3,enum=mediaserverdbproto.IngestType" json:"ingestType,omitempty"` Collection *Collection `protobuf:"bytes,4,opt,name=collection,proto3" json:"collection,omitempty"` // contains filtered or unexported fields }
func (*IngestItem) Descriptor
deprecated
func (*IngestItem) Descriptor() ([]byte, []int)
Deprecated: Use IngestItem.ProtoReflect.Descriptor instead.
func (*IngestItem) GetCollection ¶
func (x *IngestItem) GetCollection() *Collection
func (*IngestItem) GetIdentifier ¶
func (x *IngestItem) GetIdentifier() *ItemIdentifier
func (*IngestItem) GetIngestType ¶
func (x *IngestItem) GetIngestType() IngestType
func (*IngestItem) GetUrn ¶
func (x *IngestItem) GetUrn() string
func (*IngestItem) ProtoMessage ¶
func (*IngestItem) ProtoMessage()
func (*IngestItem) ProtoReflect ¶
func (x *IngestItem) ProtoReflect() protoreflect.Message
func (*IngestItem) Reset ¶
func (x *IngestItem) Reset()
func (*IngestItem) String ¶
func (x *IngestItem) String() string
type IngestMetadata ¶
type IngestMetadata struct { Item *ItemIdentifier `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` ItemMetadata *ItemMetadata `protobuf:"bytes,3,opt,name=itemMetadata,proto3" json:"itemMetadata,omitempty"` CacheMetadata *CacheMetadata `protobuf:"bytes,4,opt,name=cacheMetadata,proto3" json:"cacheMetadata,omitempty"` FullMetadata string `protobuf:"bytes,5,opt,name=fullMetadata,proto3" json:"fullMetadata,omitempty"` // contains filtered or unexported fields }
func (*IngestMetadata) Descriptor
deprecated
func (*IngestMetadata) Descriptor() ([]byte, []int)
Deprecated: Use IngestMetadata.ProtoReflect.Descriptor instead.
func (*IngestMetadata) GetCacheMetadata ¶
func (x *IngestMetadata) GetCacheMetadata() *CacheMetadata
func (*IngestMetadata) GetFullMetadata ¶ added in v2.0.15
func (x *IngestMetadata) GetFullMetadata() string
func (*IngestMetadata) GetItem ¶
func (x *IngestMetadata) GetItem() *ItemIdentifier
func (*IngestMetadata) GetItemMetadata ¶
func (x *IngestMetadata) GetItemMetadata() *ItemMetadata
func (*IngestMetadata) GetStatus ¶
func (x *IngestMetadata) GetStatus() string
func (*IngestMetadata) ProtoMessage ¶
func (*IngestMetadata) ProtoMessage()
func (*IngestMetadata) ProtoReflect ¶
func (x *IngestMetadata) ProtoReflect() protoreflect.Message
func (*IngestMetadata) Reset ¶
func (x *IngestMetadata) Reset()
func (*IngestMetadata) String ¶
func (x *IngestMetadata) String() string
type IngestType ¶
type IngestType int32
const ( IngestType_KEEP IngestType = 0 IngestType_COPY IngestType = 1 IngestType_MOVE IngestType = 2 )
func (IngestType) Descriptor ¶
func (IngestType) Descriptor() protoreflect.EnumDescriptor
func (IngestType) Enum ¶
func (x IngestType) Enum() *IngestType
func (IngestType) EnumDescriptor
deprecated
func (IngestType) EnumDescriptor() ([]byte, []int)
Deprecated: Use IngestType.Descriptor instead.
func (IngestType) Number ¶
func (x IngestType) Number() protoreflect.EnumNumber
func (IngestType) String ¶
func (x IngestType) String() string
func (IngestType) Type ¶
func (IngestType) Type() protoreflect.EnumType
type Item ¶
type Item struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` Error *string `protobuf:"bytes,3,opt,name=error,proto3,oneof" json:"error,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated,proto3" json:"updated,omitempty"` Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` Public bool `protobuf:"varint,7,opt,name=public,proto3" json:"public,omitempty"` PublicActions []byte `protobuf:"bytes,8,opt,name=publicActions,proto3,oneof" json:"publicActions,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` Metadata *ItemMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"` Parent *ItemIdentifier `protobuf:"bytes,11,opt,name=parent,proto3,oneof" json:"parent,omitempty"` // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) GetCreated ¶
func (x *Item) GetCreated() *timestamppb.Timestamp
func (*Item) GetDisabled ¶
func (*Item) GetIdentifier ¶
func (x *Item) GetIdentifier() *ItemIdentifier
func (*Item) GetMetadata ¶
func (x *Item) GetMetadata() *ItemMetadata
func (*Item) GetParent ¶
func (x *Item) GetParent() *ItemIdentifier
func (*Item) GetPublicActions ¶
func (*Item) GetUpdated ¶
func (x *Item) GetUpdated() *timestamppb.Timestamp
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ItemIdentifier ¶
type ItemIdentifier struct { Collection string `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*ItemIdentifier) Descriptor
deprecated
func (*ItemIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use ItemIdentifier.ProtoReflect.Descriptor instead.
func (*ItemIdentifier) GetCollection ¶
func (x *ItemIdentifier) GetCollection() string
func (*ItemIdentifier) GetSignature ¶
func (x *ItemIdentifier) GetSignature() string
func (*ItemIdentifier) ProtoMessage ¶
func (*ItemIdentifier) ProtoMessage()
func (*ItemIdentifier) ProtoReflect ¶
func (x *ItemIdentifier) ProtoReflect() protoreflect.Message
func (*ItemIdentifier) Reset ¶
func (x *ItemIdentifier) Reset()
func (*ItemIdentifier) String ¶
func (x *ItemIdentifier) String() string
type ItemMetadata ¶
type ItemMetadata struct { Type *string `protobuf:"bytes,3,opt,name=type,proto3,oneof" json:"type,omitempty"` Subtype *string `protobuf:"bytes,4,opt,name=subtype,proto3,oneof" json:"subtype,omitempty"` Objecttype *string `protobuf:"bytes,5,opt,name=objecttype,proto3,oneof" json:"objecttype,omitempty"` Mimetype *string `protobuf:"bytes,6,opt,name=mimetype,proto3,oneof" json:"mimetype,omitempty"` Sha512 *string `protobuf:"bytes,8,opt,name=sha512,proto3,oneof" json:"sha512,omitempty"` //optional string metadata = 9; // contains filtered or unexported fields }
func (*ItemMetadata) Descriptor
deprecated
func (*ItemMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ItemMetadata.ProtoReflect.Descriptor instead.
func (*ItemMetadata) GetMimetype ¶
func (x *ItemMetadata) GetMimetype() string
func (*ItemMetadata) GetObjecttype ¶
func (x *ItemMetadata) GetObjecttype() string
func (*ItemMetadata) GetSha512 ¶
func (x *ItemMetadata) GetSha512() string
func (*ItemMetadata) GetSubtype ¶
func (x *ItemMetadata) GetSubtype() string
func (*ItemMetadata) GetType ¶
func (x *ItemMetadata) GetType() string
func (*ItemMetadata) ProtoMessage ¶
func (*ItemMetadata) ProtoMessage()
func (*ItemMetadata) ProtoReflect ¶
func (x *ItemMetadata) ProtoReflect() protoreflect.Message
func (*ItemMetadata) Reset ¶
func (x *ItemMetadata) Reset()
func (*ItemMetadata) String ¶
func (x *ItemMetadata) String() string
type NewItem ¶
type NewItem struct { Identifier *ItemIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` Public *bool `protobuf:"varint,3,opt,name=public,proto3,oneof" json:"public,omitempty"` Parent *ItemIdentifier `protobuf:"bytes,4,opt,name=parent,proto3,oneof" json:"parent,omitempty"` PublicActions []byte `protobuf:"bytes,5,opt,name=publicActions,proto3,oneof" json:"publicActions,omitempty"` IngestType *IngestType `protobuf:"varint,6,opt,name=ingestType,proto3,enum=mediaserverdbproto.IngestType,oneof" json:"ingestType,omitempty"` // contains filtered or unexported fields }
func (*NewItem) Descriptor
deprecated
func (*NewItem) GetIdentifier ¶
func (x *NewItem) GetIdentifier() *ItemIdentifier
func (*NewItem) GetIngestType ¶
func (x *NewItem) GetIngestType() IngestType
func (*NewItem) GetParent ¶
func (x *NewItem) GetParent() *ItemIdentifier
func (*NewItem) GetPublicActions ¶
func (*NewItem) ProtoMessage ¶
func (*NewItem) ProtoMessage()
func (*NewItem) ProtoReflect ¶
func (x *NewItem) ProtoReflect() protoreflect.Message
type Storage ¶
type Storage struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Filebase string `protobuf:"bytes,2,opt,name=filebase,proto3" json:"filebase,omitempty"` Datadir string `protobuf:"bytes,3,opt,name=datadir,proto3" json:"datadir,omitempty"` Subitemdir string `protobuf:"bytes,4,opt,name=subitemdir,proto3" json:"subitemdir,omitempty"` Tempdir string `protobuf:"bytes,5,opt,name=tempdir,proto3" json:"tempdir,omitempty"` // contains filtered or unexported fields }
func (*Storage) Descriptor
deprecated
func (*Storage) GetDatadir ¶
func (*Storage) GetFilebase ¶
func (*Storage) GetSubitemdir ¶
func (*Storage) GetTempdir ¶
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) ProtoReflect ¶
func (x *Storage) ProtoReflect() protoreflect.Message
type StorageIdentifier ¶
type StorageIdentifier struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*StorageIdentifier) Descriptor
deprecated
func (*StorageIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use StorageIdentifier.ProtoReflect.Descriptor instead.
func (*StorageIdentifier) GetName ¶
func (x *StorageIdentifier) GetName() string
func (*StorageIdentifier) ProtoMessage ¶
func (*StorageIdentifier) ProtoMessage()
func (*StorageIdentifier) ProtoReflect ¶
func (x *StorageIdentifier) ProtoReflect() protoreflect.Message
func (*StorageIdentifier) Reset ¶
func (x *StorageIdentifier) Reset()
func (*StorageIdentifier) String ¶
func (x *StorageIdentifier) String() string
type UnimplementedDBControllerServer ¶
type UnimplementedDBControllerServer struct { }
UnimplementedDBControllerServer must be embedded to have forward compatible implementations.
func (UnimplementedDBControllerServer) CreateItem ¶
func (UnimplementedDBControllerServer) CreateItem(context.Context, *NewItem) (*proto.DefaultResponse, error)
func (UnimplementedDBControllerServer) DeleteItem ¶
func (UnimplementedDBControllerServer) DeleteItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error)
func (UnimplementedDBControllerServer) ExistsItem ¶
func (UnimplementedDBControllerServer) ExistsItem(context.Context, *ItemIdentifier) (*proto.DefaultResponse, error)
func (UnimplementedDBControllerServer) GetCache ¶ added in v2.0.8
func (UnimplementedDBControllerServer) GetCache(context.Context, *CacheRequest) (*Cache, error)
func (UnimplementedDBControllerServer) GetCollection ¶
func (UnimplementedDBControllerServer) GetCollection(context.Context, *CollectionIdentifier) (*Collection, error)
func (UnimplementedDBControllerServer) GetCollections ¶
func (UnimplementedDBControllerServer) GetCollections(*emptypb.Empty, DBController_GetCollectionsServer) error
func (UnimplementedDBControllerServer) GetIngestItem ¶
func (UnimplementedDBControllerServer) GetIngestItem(context.Context, *emptypb.Empty) (*IngestItem, error)
func (UnimplementedDBControllerServer) GetItem ¶
func (UnimplementedDBControllerServer) GetItem(context.Context, *ItemIdentifier) (*Item, error)
func (UnimplementedDBControllerServer) GetItemMetadata ¶ added in v2.0.14
func (UnimplementedDBControllerServer) GetItemMetadata(context.Context, *ItemIdentifier) (*wrapperspb.StringValue, error)
func (UnimplementedDBControllerServer) GetStorage ¶
func (UnimplementedDBControllerServer) GetStorage(context.Context, *StorageIdentifier) (*Storage, error)
func (UnimplementedDBControllerServer) InsertCache ¶ added in v2.0.13
func (UnimplementedDBControllerServer) InsertCache(context.Context, *Cache) (*proto.DefaultResponse, error)
func (UnimplementedDBControllerServer) Ping ¶
func (UnimplementedDBControllerServer) Ping(context.Context, *emptypb.Empty) (*proto.DefaultResponse, error)
func (UnimplementedDBControllerServer) SetIngestItem ¶
func (UnimplementedDBControllerServer) SetIngestItem(context.Context, *IngestMetadata) (*proto.DefaultResponse, error)
type UnsafeDBControllerServer ¶
type UnsafeDBControllerServer interface {
// contains filtered or unexported methods
}
UnsafeDBControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DBControllerServer will result in compilation errors.