mediaserverdbproto

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DBController_Ping_FullMethodName           = "/mediaserverdbproto.DBController/Ping"
	DBController_GetItem_FullMethodName        = "/mediaserverdbproto.DBController/GetItem"
	DBController_GetStorage_FullMethodName     = "/mediaserverdbproto.DBController/GetStorage"
	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_ExistsItem_FullMethodName     = "/mediaserverdbproto.DBController/ExistsItem"
)

Variables

View Source
var (
	ResultStatus_name = map[int32]string{
		0: "Error",
		1: "OK",
		2: "Warning",
		3: "NotFound",
	}
	ResultStatus_value = map[string]int32{
		"Error":    0,
		"OK":       1,
		"Warning":  2,
		"NotFound": 3,
	}
)

Enum value maps for ResultStatus.

View Source
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: "GetStorage",
			Handler:    _DBController_GetStorage_Handler,
		},
		{
			MethodName: "GetCollection",
			Handler:    _DBController_GetCollection_Handler,
		},
		{
			MethodName: "GetCollections",
			Handler:    _DBController_GetCollections_Handler,
		},
		{
			MethodName: "CreateItem",
			Handler:    _DBController_CreateItem_Handler,
		},
		{
			MethodName: "DeleteItem",
			Handler:    _DBController_DeleteItem_Handler,
		},
		{
			MethodName: "GetIngestItem",
			Handler:    _DBController_GetIngestItem_Handler,
		},
		{
			MethodName: "ExistsItem",
			Handler:    _DBController_ExistsItem_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	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)

View Source
var File_collection_proto protoreflect.FileDescriptor
View Source
var File_dbcontroller_proto protoreflect.FileDescriptor
View Source
var File_defaultResponse_proto protoreflect.FileDescriptor
View Source
var File_storage_proto protoreflect.FileDescriptor

Functions

func RegisterDBControllerServer

func RegisterDBControllerServer(s grpc.ServiceRegistrar, srv DBControllerServer)

Types

type Collection added in v2.0.2

type Collection struct {
	Id              string                `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Identifier      *CollectionIdentifier `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Description     string                `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	SignaturePrefix string                `protobuf:"bytes,4,opt,name=signature_prefix,json=signaturePrefix,proto3" json:"signature_prefix,omitempty"`
	Secret          string                `protobuf:"bytes,5,opt,name=secret,proto3" json:"secret,omitempty"`
	Public          string                `protobuf:"bytes,6,opt,name=public,proto3" json:"public,omitempty"`
	Jwtkey          string                `protobuf:"bytes,7,opt,name=jwtkey,proto3" json:"jwtkey,omitempty"`
	Storageid       string                `protobuf:"bytes,8,opt,name=storageid,proto3" json:"storageid,omitempty"`
	// contains filtered or unexported fields
}

func (*Collection) Descriptor deprecated added in v2.0.2

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

Deprecated: Use Collection.ProtoReflect.Descriptor instead.

func (*Collection) GetDescription added in v2.0.2

func (x *Collection) GetDescription() string

func (*Collection) GetId added in v2.0.2

func (x *Collection) GetId() string

func (*Collection) GetIdentifier added in v2.0.2

func (x *Collection) GetIdentifier() *CollectionIdentifier

func (*Collection) GetJwtkey added in v2.0.2

func (x *Collection) GetJwtkey() string

func (*Collection) GetPublic added in v2.0.2

func (x *Collection) GetPublic() string

func (*Collection) GetSecret added in v2.0.2

func (x *Collection) GetSecret() string

func (*Collection) GetSignaturePrefix added in v2.0.2

func (x *Collection) GetSignaturePrefix() string

func (*Collection) GetStorageid added in v2.0.2

func (x *Collection) GetStorageid() string

func (*Collection) ProtoMessage added in v2.0.2

func (*Collection) ProtoMessage()

func (*Collection) ProtoReflect added in v2.0.2

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

func (*Collection) Reset added in v2.0.2

func (x *Collection) Reset()

func (*Collection) String added in v2.0.2

func (x *Collection) String() string

type CollectionIdentifier added in v2.0.2

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

func (*CollectionIdentifier) Descriptor deprecated added in v2.0.2

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

Deprecated: Use CollectionIdentifier.ProtoReflect.Descriptor instead.

func (*CollectionIdentifier) GetCollection added in v2.0.2

func (x *CollectionIdentifier) GetCollection() string

func (*CollectionIdentifier) ProtoMessage added in v2.0.2

func (*CollectionIdentifier) ProtoMessage()

func (*CollectionIdentifier) ProtoReflect added in v2.0.2

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

func (*CollectionIdentifier) Reset added in v2.0.2

func (x *CollectionIdentifier) Reset()

func (*CollectionIdentifier) String added in v2.0.2

func (x *CollectionIdentifier) String() string

type Collections added in v2.0.2

type Collections struct {
	Collections   []*Collection `protobuf:"bytes,1,rep,name=collections,proto3" json:"collections,omitempty"`
	NextPageToken *PageToken    `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*Collections) Descriptor deprecated added in v2.0.2

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

Deprecated: Use Collections.ProtoReflect.Descriptor instead.

func (*Collections) GetCollections added in v2.0.2

func (x *Collections) GetCollections() []*Collection

func (*Collections) GetNextPageToken added in v2.0.2

func (x *Collections) GetNextPageToken() *PageToken

func (*Collections) ProtoMessage added in v2.0.2

func (*Collections) ProtoMessage()

func (*Collections) ProtoReflect added in v2.0.2

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

func (*Collections) Reset added in v2.0.2

func (x *Collections) Reset()

func (*Collections) String added in v2.0.2

func (x *Collections) String() string

type DBControllerClient

type DBControllerClient interface {
	Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DefaultResponse, error)
	GetItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*Item, error)
	GetStorage(ctx context.Context, in *StorageIdentifier, opts ...grpc.CallOption) (*Storage, error)
	GetCollection(ctx context.Context, in *CollectionIdentifier, opts ...grpc.CallOption) (*Collection, error)
	GetCollections(ctx context.Context, in *PageToken, opts ...grpc.CallOption) (*Collection, error)
	CreateItem(ctx context.Context, in *NewItem, opts ...grpc.CallOption) (*DefaultResponse, error)
	DeleteItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*DefaultResponse, error)
	GetIngestItem(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*IngestItem, error)
	ExistsItem(ctx context.Context, in *ItemIdentifier, opts ...grpc.CallOption) (*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.

type DBControllerServer

type DBControllerServer interface {
	Ping(context.Context, *emptypb.Empty) (*DefaultResponse, error)
	GetItem(context.Context, *ItemIdentifier) (*Item, error)
	GetStorage(context.Context, *StorageIdentifier) (*Storage, error)
	GetCollection(context.Context, *CollectionIdentifier) (*Collection, error)
	GetCollections(context.Context, *PageToken) (*Collection, error)
	CreateItem(context.Context, *NewItem) (*DefaultResponse, error)
	DeleteItem(context.Context, *ItemIdentifier) (*DefaultResponse, error)
	GetIngestItem(context.Context, *emptypb.Empty) (*IngestItem, error)
	ExistsItem(context.Context, *ItemIdentifier) (*DefaultResponse, error)
	// contains filtered or unexported methods
}

DBControllerServer is the server API for DBController service. All implementations must embed UnimplementedDBControllerServer for forward compatibility

type DefaultResponse

type DefaultResponse struct {
	Status  ResultStatus `protobuf:"varint,1,opt,name=status,proto3,enum=mediaserverdbproto.ResultStatus" json:"status,omitempty"`
	Message string       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *anypb.Any   `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DefaultResponse) Descriptor deprecated

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

Deprecated: Use DefaultResponse.ProtoReflect.Descriptor instead.

func (*DefaultResponse) GetData

func (x *DefaultResponse) GetData() *anypb.Any

func (*DefaultResponse) GetMessage

func (x *DefaultResponse) GetMessage() string

func (*DefaultResponse) GetStatus

func (x *DefaultResponse) GetStatus() ResultStatus

func (*DefaultResponse) ProtoMessage

func (*DefaultResponse) ProtoMessage()

func (*DefaultResponse) ProtoReflect

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

func (*DefaultResponse) Reset

func (x *DefaultResponse) Reset()

func (*DefaultResponse) String

func (x *DefaultResponse) String() string

type IngestItem added in v2.0.2

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"`
	// contains filtered or unexported fields
}

func (*IngestItem) Descriptor deprecated added in v2.0.2

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

Deprecated: Use IngestItem.ProtoReflect.Descriptor instead.

func (*IngestItem) GetIdentifier added in v2.0.2

func (x *IngestItem) GetIdentifier() *ItemIdentifier

func (*IngestItem) GetUrn added in v2.0.2

func (x *IngestItem) GetUrn() string

func (*IngestItem) ProtoMessage added in v2.0.2

func (*IngestItem) ProtoMessage()

func (*IngestItem) ProtoReflect added in v2.0.2

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

func (*IngestItem) Reset added in v2.0.2

func (x *IngestItem) Reset()

func (*IngestItem) String added in v2.0.2

func (x *IngestItem) String() string

type Item added in v2.0.2

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"`
	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"`
	Error         *string                `protobuf:"bytes,7,opt,name=error,proto3,oneof" json:"error,omitempty"`
	Sha512        *string                `protobuf:"bytes,8,opt,name=sha512,proto3,oneof" json:"sha512,omitempty"`
	Metadata      []byte                 `protobuf:"bytes,9,opt,name=metadata,proto3,oneof" json:"metadata,omitempty"`
	Created       *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created,proto3" json:"created,omitempty"`
	Updated       *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated,proto3" json:"updated,omitempty"`
	Disabled      bool                   `protobuf:"varint,12,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Public        bool                   `protobuf:"varint,13,opt,name=public,proto3" json:"public,omitempty"`
	PublicActions []byte                 `protobuf:"bytes,14,opt,name=publicActions,proto3,oneof" json:"publicActions,omitempty"`
	Status        string                 `protobuf:"bytes,16,opt,name=status,proto3" json:"status,omitempty"`
	Parent        *ItemIdentifier        `protobuf:"bytes,17,opt,name=parent,proto3,oneof" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated added in v2.0.2

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetCreated added in v2.0.2

func (x *Item) GetCreated() *timestamppb.Timestamp

func (*Item) GetDisabled added in v2.0.2

func (x *Item) GetDisabled() bool

func (*Item) GetError added in v2.0.2

func (x *Item) GetError() string

func (*Item) GetIdentifier added in v2.0.2

func (x *Item) GetIdentifier() *ItemIdentifier

func (*Item) GetMetadata added in v2.0.2

func (x *Item) GetMetadata() []byte

func (*Item) GetMimetype added in v2.0.2

func (x *Item) GetMimetype() string

func (*Item) GetObjecttype added in v2.0.2

func (x *Item) GetObjecttype() string

func (*Item) GetParent added in v2.0.2

func (x *Item) GetParent() *ItemIdentifier

func (*Item) GetPublic added in v2.0.2

func (x *Item) GetPublic() bool

func (*Item) GetPublicActions added in v2.0.2

func (x *Item) GetPublicActions() []byte

func (*Item) GetSha512 added in v2.0.2

func (x *Item) GetSha512() string

func (*Item) GetStatus added in v2.0.2

func (x *Item) GetStatus() string

func (*Item) GetSubtype added in v2.0.2

func (x *Item) GetSubtype() string

func (*Item) GetType added in v2.0.2

func (x *Item) GetType() string

func (*Item) GetUpdated added in v2.0.2

func (x *Item) GetUpdated() *timestamppb.Timestamp

func (*Item) GetUrn added in v2.0.2

func (x *Item) GetUrn() string

func (*Item) ProtoMessage added in v2.0.2

func (*Item) ProtoMessage()

func (*Item) ProtoReflect added in v2.0.2

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

func (*Item) Reset added in v2.0.2

func (x *Item) Reset()

func (*Item) String added in v2.0.2

func (x *Item) String() string

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 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        []byte          `protobuf:"bytes,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"`
	// contains filtered or unexported fields
}

func (*NewItem) Descriptor deprecated

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

Deprecated: Use NewItem.ProtoReflect.Descriptor instead.

func (*NewItem) GetIdentifier

func (x *NewItem) GetIdentifier() *ItemIdentifier

func (*NewItem) GetParent

func (x *NewItem) GetParent() *ItemIdentifier

func (*NewItem) GetPublic

func (x *NewItem) GetPublic() []byte

func (*NewItem) GetPublicActions

func (x *NewItem) GetPublicActions() []byte

func (*NewItem) GetUrn

func (x *NewItem) GetUrn() string

func (*NewItem) ProtoMessage

func (*NewItem) ProtoMessage()

func (*NewItem) ProtoReflect

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

func (*NewItem) Reset

func (x *NewItem) Reset()

func (*NewItem) String

func (x *NewItem) String() string

type ResultStatus

type ResultStatus int32
const (
	ResultStatus_Error    ResultStatus = 0
	ResultStatus_OK       ResultStatus = 1
	ResultStatus_Warning  ResultStatus = 2
	ResultStatus_NotFound ResultStatus = 3
)

func (ResultStatus) Descriptor

func (ResultStatus) Enum

func (x ResultStatus) Enum() *ResultStatus

func (ResultStatus) EnumDescriptor deprecated

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

Deprecated: Use ResultStatus.Descriptor instead.

func (ResultStatus) Number

func (ResultStatus) String

func (x ResultStatus) String() string

func (ResultStatus) Type

type Storage added in v2.0.2

type Storage struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Filebase   string `protobuf:"bytes,3,opt,name=filebase,proto3" json:"filebase,omitempty"`
	Datadir    string `protobuf:"bytes,4,opt,name=datadir,proto3" json:"datadir,omitempty"`
	Subitemdir string `protobuf:"bytes,5,opt,name=subitemdir,proto3" json:"subitemdir,omitempty"`
	Tempdir    string `protobuf:"bytes,6,opt,name=tempdir,proto3" json:"tempdir,omitempty"`
	// contains filtered or unexported fields
}

func (*Storage) Descriptor deprecated added in v2.0.2

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

Deprecated: Use Storage.ProtoReflect.Descriptor instead.

func (*Storage) GetDatadir added in v2.0.2

func (x *Storage) GetDatadir() string

func (*Storage) GetFilebase added in v2.0.2

func (x *Storage) GetFilebase() string

func (*Storage) GetId added in v2.0.2

func (x *Storage) GetId() string

func (*Storage) GetName added in v2.0.2

func (x *Storage) GetName() string

func (*Storage) GetSubitemdir added in v2.0.2

func (x *Storage) GetSubitemdir() string

func (*Storage) GetTempdir added in v2.0.2

func (x *Storage) GetTempdir() string

func (*Storage) ProtoMessage added in v2.0.2

func (*Storage) ProtoMessage()

func (*Storage) ProtoReflect added in v2.0.2

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

func (*Storage) Reset added in v2.0.2

func (x *Storage) Reset()

func (*Storage) String added in v2.0.2

func (x *Storage) String() string

type StorageIdentifier added in v2.0.2

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

func (*StorageIdentifier) Descriptor deprecated added in v2.0.2

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

Deprecated: Use StorageIdentifier.ProtoReflect.Descriptor instead.

func (*StorageIdentifier) GetId added in v2.0.2

func (x *StorageIdentifier) GetId() string

func (*StorageIdentifier) ProtoMessage added in v2.0.2

func (*StorageIdentifier) ProtoMessage()

func (*StorageIdentifier) ProtoReflect added in v2.0.2

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

func (*StorageIdentifier) Reset added in v2.0.2

func (x *StorageIdentifier) Reset()

func (*StorageIdentifier) String added in v2.0.2

func (x *StorageIdentifier) String() string

type UnimplementedDBControllerServer

type UnimplementedDBControllerServer struct {
}

UnimplementedDBControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedDBControllerServer) CreateItem

func (UnimplementedDBControllerServer) DeleteItem added in v2.0.2

func (UnimplementedDBControllerServer) ExistsItem added in v2.0.2

func (UnimplementedDBControllerServer) GetCollection added in v2.0.2

func (UnimplementedDBControllerServer) GetCollections added in v2.0.2

func (UnimplementedDBControllerServer) GetCollections(context.Context, *PageToken) (*Collection, error)

func (UnimplementedDBControllerServer) GetIngestItem added in v2.0.2

func (UnimplementedDBControllerServer) GetItem added in v2.0.2

func (UnimplementedDBControllerServer) GetStorage added in v2.0.2

func (UnimplementedDBControllerServer) Ping added in v2.0.2

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.

Jump to

Keyboard shortcuts

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