Versions in this module Expand all Collapse all v0 v0.4.0 Oct 11, 2020 v0.3.1 May 29, 2020 v0.3.0 May 29, 2020 Changes in this version type APIClient + Export func(ctx context.Context, in *ExportRequest, opts ...grpc.CallOption) (*ExportReply, error) type APIServer + Export func(context.Context, *ExportRequest) (*ExportReply, error) type AddBackupReply + BackupCid string + func (x *AddBackupReply) GetBackupCid() string + type Backup struct + BackupCid string + DeviceID string + UpdatedAt *timestamp.Timestamp + func (*Backup) Descriptor() ([]byte, []int) + func (*Backup) ProtoMessage() + func (x *Backup) GetBackupCid() string + func (x *Backup) GetDeviceID() string + func (x *Backup) GetUpdatedAt() *timestamp.Timestamp + func (x *Backup) ProtoReflect() protoreflect.Message + func (x *Backup) Reset() + func (x *Backup) String() string + type ExportReply struct + Addrs []string + ThreadKey string + func (*ExportReply) Descriptor() ([]byte, []int) + func (*ExportReply) ProtoMessage() + func (x *ExportReply) GetAddrs() []string + func (x *ExportReply) GetThreadKey() string + func (x *ExportReply) ProtoReflect() protoreflect.Message + func (x *ExportReply) Reset() + func (x *ExportReply) String() string + type ExportRequest struct + func (*ExportRequest) Descriptor() ([]byte, []int) + func (*ExportRequest) ProtoMessage() + func (x *ExportRequest) ProtoReflect() protoreflect.Message + func (x *ExportRequest) Reset() + func (x *ExportRequest) String() string type UnimplementedAPIServer + func (*UnimplementedAPIServer) Export(context.Context, *ExportRequest) (*ExportReply, error) type UpdateLatestBackupReply + Backup *Backup + func (x *UpdateLatestBackupReply) GetBackup() *Backup type UpdateLatestBackupRequest + BackupCid string + func (x *UpdateLatestBackupRequest) GetBackupCid() string v0.2.0 May 21, 2020 Changes in this version + var File_api_proto protoreflect.FileDescriptor + func RegisterAPIServer(s *grpc.Server, srv APIServer) + type APIClient interface + AddBackup func(ctx context.Context, in *AddBackupRequest, opts ...grpc.CallOption) (*AddBackupReply, error) + CreateKeyForDevice func(ctx context.Context, in *CreateKeyForDeviceRequest, opts ...grpc.CallOption) (*CreateKeyForDeviceReply, error) + GetKeyForDevice func(ctx context.Context, in *GetKeyForDeviceRequest, opts ...grpc.CallOption) (*GetKeyForDeviceReply, error) + ListBackups func(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsReply, error) + UpdateLatestBackup func(ctx context.Context, in *UpdateLatestBackupRequest, opts ...grpc.CallOption) (*UpdateLatestBackupReply, error) + func NewAPIClient(cc grpc.ClientConnInterface) APIClient + type APIServer interface + AddBackup func(context.Context, *AddBackupRequest) (*AddBackupReply, error) + CreateKeyForDevice func(context.Context, *CreateKeyForDeviceRequest) (*CreateKeyForDeviceReply, error) + GetKeyForDevice func(context.Context, *GetKeyForDeviceRequest) (*GetKeyForDeviceReply, error) + ListBackups func(context.Context, *ListBackupsRequest) (*ListBackupsReply, error) + UpdateLatestBackup func(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error) + type AddBackupReply struct + BackupPath string + func (*AddBackupReply) Descriptor() ([]byte, []int) + func (*AddBackupReply) ProtoMessage() + func (x *AddBackupReply) GetBackupPath() string + func (x *AddBackupReply) ProtoReflect() protoreflect.Message + func (x *AddBackupReply) Reset() + func (x *AddBackupReply) String() string + type AddBackupRequest struct + BackupDir string + func (*AddBackupRequest) Descriptor() ([]byte, []int) + func (*AddBackupRequest) ProtoMessage() + func (x *AddBackupRequest) GetBackupDir() string + func (x *AddBackupRequest) ProtoReflect() protoreflect.Message + func (x *AddBackupRequest) Reset() + func (x *AddBackupRequest) String() string + type CreateKeyForDeviceReply struct + Key *Key + func (*CreateKeyForDeviceReply) Descriptor() ([]byte, []int) + func (*CreateKeyForDeviceReply) ProtoMessage() + func (x *CreateKeyForDeviceReply) GetKey() *Key + func (x *CreateKeyForDeviceReply) ProtoReflect() protoreflect.Message + func (x *CreateKeyForDeviceReply) Reset() + func (x *CreateKeyForDeviceReply) String() string + type CreateKeyForDeviceRequest struct + DeviceID string + func (*CreateKeyForDeviceRequest) Descriptor() ([]byte, []int) + func (*CreateKeyForDeviceRequest) ProtoMessage() + func (x *CreateKeyForDeviceRequest) GetDeviceID() string + func (x *CreateKeyForDeviceRequest) ProtoReflect() protoreflect.Message + func (x *CreateKeyForDeviceRequest) Reset() + func (x *CreateKeyForDeviceRequest) String() string + type GetKeyForDeviceReply struct + Key *Key + func (*GetKeyForDeviceReply) Descriptor() ([]byte, []int) + func (*GetKeyForDeviceReply) ProtoMessage() + func (x *GetKeyForDeviceReply) GetKey() *Key + func (x *GetKeyForDeviceReply) ProtoReflect() protoreflect.Message + func (x *GetKeyForDeviceReply) Reset() + func (x *GetKeyForDeviceReply) String() string + type GetKeyForDeviceRequest struct + DeviceID string + func (*GetKeyForDeviceRequest) Descriptor() ([]byte, []int) + func (*GetKeyForDeviceRequest) ProtoMessage() + func (x *GetKeyForDeviceRequest) GetDeviceID() string + func (x *GetKeyForDeviceRequest) ProtoReflect() protoreflect.Message + func (x *GetKeyForDeviceRequest) Reset() + func (x *GetKeyForDeviceRequest) String() string + type Key struct + Name string + Path string + func (*Key) Descriptor() ([]byte, []int) + func (*Key) ProtoMessage() + func (x *Key) GetName() string + func (x *Key) GetPath() string + func (x *Key) ProtoReflect() protoreflect.Message + func (x *Key) Reset() + func (x *Key) String() string + type ListBackupsReply struct + Backups []*ListBackupsReply_Backup + func (*ListBackupsReply) Descriptor() ([]byte, []int) + func (*ListBackupsReply) ProtoMessage() + func (x *ListBackupsReply) GetBackups() []*ListBackupsReply_Backup + func (x *ListBackupsReply) ProtoReflect() protoreflect.Message + func (x *ListBackupsReply) Reset() + func (x *ListBackupsReply) String() string + type ListBackupsReply_Backup struct + IpfsPath string + Key *Key + func (*ListBackupsReply_Backup) Descriptor() ([]byte, []int) + func (*ListBackupsReply_Backup) ProtoMessage() + func (x *ListBackupsReply_Backup) GetIpfsPath() string + func (x *ListBackupsReply_Backup) GetKey() *Key + func (x *ListBackupsReply_Backup) ProtoReflect() protoreflect.Message + func (x *ListBackupsReply_Backup) Reset() + func (x *ListBackupsReply_Backup) String() string + type ListBackupsRequest struct + func (*ListBackupsRequest) Descriptor() ([]byte, []int) + func (*ListBackupsRequest) ProtoMessage() + func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message + func (x *ListBackupsRequest) Reset() + func (x *ListBackupsRequest) String() string + type UnimplementedAPIServer struct + func (*UnimplementedAPIServer) AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error) + func (*UnimplementedAPIServer) CreateKeyForDevice(context.Context, *CreateKeyForDeviceRequest) (*CreateKeyForDeviceReply, error) + func (*UnimplementedAPIServer) GetKeyForDevice(context.Context, *GetKeyForDeviceRequest) (*GetKeyForDeviceReply, error) + func (*UnimplementedAPIServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error) + func (*UnimplementedAPIServer) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error) + type UpdateLatestBackupReply struct + Entry *UpdateLatestBackupReply_Entry + func (*UpdateLatestBackupReply) Descriptor() ([]byte, []int) + func (*UpdateLatestBackupReply) ProtoMessage() + func (x *UpdateLatestBackupReply) GetEntry() *UpdateLatestBackupReply_Entry + func (x *UpdateLatestBackupReply) ProtoReflect() protoreflect.Message + func (x *UpdateLatestBackupReply) Reset() + func (x *UpdateLatestBackupReply) String() string + type UpdateLatestBackupReply_Entry struct + Name string + Value string + func (*UpdateLatestBackupReply_Entry) Descriptor() ([]byte, []int) + func (*UpdateLatestBackupReply_Entry) ProtoMessage() + func (x *UpdateLatestBackupReply_Entry) GetName() string + func (x *UpdateLatestBackupReply_Entry) GetValue() string + func (x *UpdateLatestBackupReply_Entry) ProtoReflect() protoreflect.Message + func (x *UpdateLatestBackupReply_Entry) Reset() + func (x *UpdateLatestBackupReply_Entry) String() string + type UpdateLatestBackupRequest struct + BackupPath string + DeviceID string + func (*UpdateLatestBackupRequest) Descriptor() ([]byte, []int) + func (*UpdateLatestBackupRequest) ProtoMessage() + func (x *UpdateLatestBackupRequest) GetBackupPath() string + func (x *UpdateLatestBackupRequest) GetDeviceID() string + func (x *UpdateLatestBackupRequest) ProtoReflect() protoreflect.Message + func (x *UpdateLatestBackupRequest) Reset() + func (x *UpdateLatestBackupRequest) String() string