Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- type APIClient
- type APIServer
- type AddBackupReply
- type AddBackupRequest
- type CreateKeyForDeviceReply
- func (*CreateKeyForDeviceReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyForDeviceReply) GetKey() *Key
- func (*CreateKeyForDeviceReply) ProtoMessage()
- func (x *CreateKeyForDeviceReply) ProtoReflect() protoreflect.Message
- func (x *CreateKeyForDeviceReply) Reset()
- func (x *CreateKeyForDeviceReply) String() string
- type CreateKeyForDeviceRequest
- func (*CreateKeyForDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateKeyForDeviceRequest) GetDeviceID() string
- func (*CreateKeyForDeviceRequest) ProtoMessage()
- func (x *CreateKeyForDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateKeyForDeviceRequest) Reset()
- func (x *CreateKeyForDeviceRequest) String() string
- type GetKeyForDeviceReply
- func (*GetKeyForDeviceReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyForDeviceReply) GetKey() *Key
- func (*GetKeyForDeviceReply) ProtoMessage()
- func (x *GetKeyForDeviceReply) ProtoReflect() protoreflect.Message
- func (x *GetKeyForDeviceReply) Reset()
- func (x *GetKeyForDeviceReply) String() string
- type GetKeyForDeviceRequest
- func (*GetKeyForDeviceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyForDeviceRequest) GetDeviceID() string
- func (*GetKeyForDeviceRequest) ProtoMessage()
- func (x *GetKeyForDeviceRequest) ProtoReflect() protoreflect.Message
- func (x *GetKeyForDeviceRequest) Reset()
- func (x *GetKeyForDeviceRequest) String() string
- type Key
- type ListBackupsReply
- func (*ListBackupsReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListBackupsReply) GetBackups() []*ListBackupsReply_Backup
- func (*ListBackupsReply) ProtoMessage()
- func (x *ListBackupsReply) ProtoReflect() protoreflect.Message
- func (x *ListBackupsReply) Reset()
- func (x *ListBackupsReply) String() string
- type ListBackupsReply_Backup
- func (*ListBackupsReply_Backup) Descriptor() ([]byte, []int)deprecated
- func (x *ListBackupsReply_Backup) GetIpfsPath() string
- func (x *ListBackupsReply_Backup) GetKey() *Key
- func (*ListBackupsReply_Backup) ProtoMessage()
- func (x *ListBackupsReply_Backup) ProtoReflect() protoreflect.Message
- func (x *ListBackupsReply_Backup) Reset()
- func (x *ListBackupsReply_Backup) String() string
- type ListBackupsRequest
- type UnimplementedAPIServer
- 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
- func (*UpdateLatestBackupReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLatestBackupReply) GetEntry() *UpdateLatestBackupReply_Entry
- func (*UpdateLatestBackupReply) ProtoMessage()
- func (x *UpdateLatestBackupReply) ProtoReflect() protoreflect.Message
- func (x *UpdateLatestBackupReply) Reset()
- func (x *UpdateLatestBackupReply) String() string
- type UpdateLatestBackupReply_Entry
- func (*UpdateLatestBackupReply_Entry) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLatestBackupReply_Entry) GetName() string
- func (x *UpdateLatestBackupReply_Entry) GetValue() string
- func (*UpdateLatestBackupReply_Entry) ProtoMessage()
- func (x *UpdateLatestBackupReply_Entry) ProtoReflect() protoreflect.Message
- func (x *UpdateLatestBackupReply_Entry) Reset()
- func (x *UpdateLatestBackupReply_Entry) String() string
- type UpdateLatestBackupRequest
- func (*UpdateLatestBackupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLatestBackupRequest) GetBackupPath() string
- func (x *UpdateLatestBackupRequest) GetDeviceID() string
- func (*UpdateLatestBackupRequest) ProtoMessage()
- func (x *UpdateLatestBackupRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLatestBackupRequest) Reset()
- func (x *UpdateLatestBackupRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
Types ¶
type APIClient ¶
type APIClient interface { GetKeyForDevice(ctx context.Context, in *GetKeyForDeviceRequest, opts ...grpc.CallOption) (*GetKeyForDeviceReply, error) CreateKeyForDevice(ctx context.Context, in *CreateKeyForDeviceRequest, opts ...grpc.CallOption) (*CreateKeyForDeviceReply, error) AddBackup(ctx context.Context, in *AddBackupRequest, opts ...grpc.CallOption) (*AddBackupReply, error) UpdateLatestBackup(ctx context.Context, in *UpdateLatestBackupRequest, opts ...grpc.CallOption) (*UpdateLatestBackupReply, error) ListBackups(ctx context.Context, in *ListBackupsRequest, opts ...grpc.CallOption) (*ListBackupsReply, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { GetKeyForDevice(context.Context, *GetKeyForDeviceRequest) (*GetKeyForDeviceReply, error) CreateKeyForDevice(context.Context, *CreateKeyForDeviceRequest) (*CreateKeyForDeviceReply, error) AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error) }
APIServer is the server API for API service.
type AddBackupReply ¶
type AddBackupReply struct { BackupPath string `protobuf:"bytes,1,opt,name=backupPath,proto3" json:"backupPath,omitempty"` // contains filtered or unexported fields }
func (*AddBackupReply) Descriptor
deprecated
func (*AddBackupReply) Descriptor() ([]byte, []int)
Deprecated: Use AddBackupReply.ProtoReflect.Descriptor instead.
func (*AddBackupReply) GetBackupPath ¶
func (x *AddBackupReply) GetBackupPath() string
func (*AddBackupReply) ProtoMessage ¶
func (*AddBackupReply) ProtoMessage()
func (*AddBackupReply) ProtoReflect ¶
func (x *AddBackupReply) ProtoReflect() protoreflect.Message
func (*AddBackupReply) Reset ¶
func (x *AddBackupReply) Reset()
func (*AddBackupReply) String ¶
func (x *AddBackupReply) String() string
type AddBackupRequest ¶
type AddBackupRequest struct { BackupDir string `protobuf:"bytes,1,opt,name=backupDir,proto3" json:"backupDir,omitempty"` // contains filtered or unexported fields }
func (*AddBackupRequest) Descriptor
deprecated
func (*AddBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddBackupRequest.ProtoReflect.Descriptor instead.
func (*AddBackupRequest) GetBackupDir ¶
func (x *AddBackupRequest) GetBackupDir() string
func (*AddBackupRequest) ProtoMessage ¶
func (*AddBackupRequest) ProtoMessage()
func (*AddBackupRequest) ProtoReflect ¶
func (x *AddBackupRequest) ProtoReflect() protoreflect.Message
func (*AddBackupRequest) Reset ¶
func (x *AddBackupRequest) Reset()
func (*AddBackupRequest) String ¶
func (x *AddBackupRequest) String() string
type CreateKeyForDeviceReply ¶
type CreateKeyForDeviceReply struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*CreateKeyForDeviceReply) Descriptor
deprecated
func (*CreateKeyForDeviceReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyForDeviceReply.ProtoReflect.Descriptor instead.
func (*CreateKeyForDeviceReply) GetKey ¶
func (x *CreateKeyForDeviceReply) GetKey() *Key
func (*CreateKeyForDeviceReply) ProtoMessage ¶
func (*CreateKeyForDeviceReply) ProtoMessage()
func (*CreateKeyForDeviceReply) ProtoReflect ¶
func (x *CreateKeyForDeviceReply) ProtoReflect() protoreflect.Message
func (*CreateKeyForDeviceReply) Reset ¶
func (x *CreateKeyForDeviceReply) Reset()
func (*CreateKeyForDeviceReply) String ¶
func (x *CreateKeyForDeviceReply) String() string
type CreateKeyForDeviceRequest ¶
type CreateKeyForDeviceRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // contains filtered or unexported fields }
func (*CreateKeyForDeviceRequest) Descriptor
deprecated
func (*CreateKeyForDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateKeyForDeviceRequest.ProtoReflect.Descriptor instead.
func (*CreateKeyForDeviceRequest) GetDeviceID ¶
func (x *CreateKeyForDeviceRequest) GetDeviceID() string
func (*CreateKeyForDeviceRequest) ProtoMessage ¶
func (*CreateKeyForDeviceRequest) ProtoMessage()
func (*CreateKeyForDeviceRequest) ProtoReflect ¶
func (x *CreateKeyForDeviceRequest) ProtoReflect() protoreflect.Message
func (*CreateKeyForDeviceRequest) Reset ¶
func (x *CreateKeyForDeviceRequest) Reset()
func (*CreateKeyForDeviceRequest) String ¶
func (x *CreateKeyForDeviceRequest) String() string
type GetKeyForDeviceReply ¶
type GetKeyForDeviceReply struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetKeyForDeviceReply) Descriptor
deprecated
func (*GetKeyForDeviceReply) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyForDeviceReply.ProtoReflect.Descriptor instead.
func (*GetKeyForDeviceReply) GetKey ¶
func (x *GetKeyForDeviceReply) GetKey() *Key
func (*GetKeyForDeviceReply) ProtoMessage ¶
func (*GetKeyForDeviceReply) ProtoMessage()
func (*GetKeyForDeviceReply) ProtoReflect ¶
func (x *GetKeyForDeviceReply) ProtoReflect() protoreflect.Message
func (*GetKeyForDeviceReply) Reset ¶
func (x *GetKeyForDeviceReply) Reset()
func (*GetKeyForDeviceReply) String ¶
func (x *GetKeyForDeviceReply) String() string
type GetKeyForDeviceRequest ¶
type GetKeyForDeviceRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` // contains filtered or unexported fields }
func (*GetKeyForDeviceRequest) Descriptor
deprecated
func (*GetKeyForDeviceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetKeyForDeviceRequest.ProtoReflect.Descriptor instead.
func (*GetKeyForDeviceRequest) GetDeviceID ¶
func (x *GetKeyForDeviceRequest) GetDeviceID() string
func (*GetKeyForDeviceRequest) ProtoMessage ¶
func (*GetKeyForDeviceRequest) ProtoMessage()
func (*GetKeyForDeviceRequest) ProtoReflect ¶
func (x *GetKeyForDeviceRequest) ProtoReflect() protoreflect.Message
func (*GetKeyForDeviceRequest) Reset ¶
func (x *GetKeyForDeviceRequest) Reset()
func (*GetKeyForDeviceRequest) String ¶
func (x *GetKeyForDeviceRequest) String() string
type Key ¶
type Key struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Key) Descriptor
deprecated
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type ListBackupsReply ¶
type ListBackupsReply struct { Backups []*ListBackupsReply_Backup `protobuf:"bytes,1,rep,name=backups,proto3" json:"backups,omitempty"` // contains filtered or unexported fields }
func (*ListBackupsReply) Descriptor
deprecated
func (*ListBackupsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsReply.ProtoReflect.Descriptor instead.
func (*ListBackupsReply) GetBackups ¶
func (x *ListBackupsReply) GetBackups() []*ListBackupsReply_Backup
func (*ListBackupsReply) ProtoMessage ¶
func (*ListBackupsReply) ProtoMessage()
func (*ListBackupsReply) ProtoReflect ¶
func (x *ListBackupsReply) ProtoReflect() protoreflect.Message
func (*ListBackupsReply) Reset ¶
func (x *ListBackupsReply) Reset()
func (*ListBackupsReply) String ¶
func (x *ListBackupsReply) String() string
type ListBackupsReply_Backup ¶
type ListBackupsReply_Backup struct { Key *Key `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` IpfsPath string `protobuf:"bytes,2,opt,name=ipfsPath,proto3" json:"ipfsPath,omitempty"` // contains filtered or unexported fields }
func (*ListBackupsReply_Backup) Descriptor
deprecated
func (*ListBackupsReply_Backup) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsReply_Backup.ProtoReflect.Descriptor instead.
func (*ListBackupsReply_Backup) GetIpfsPath ¶
func (x *ListBackupsReply_Backup) GetIpfsPath() string
func (*ListBackupsReply_Backup) GetKey ¶
func (x *ListBackupsReply_Backup) GetKey() *Key
func (*ListBackupsReply_Backup) ProtoMessage ¶
func (*ListBackupsReply_Backup) ProtoMessage()
func (*ListBackupsReply_Backup) ProtoReflect ¶
func (x *ListBackupsReply_Backup) ProtoReflect() protoreflect.Message
func (*ListBackupsReply_Backup) Reset ¶
func (x *ListBackupsReply_Backup) Reset()
func (*ListBackupsReply_Backup) String ¶
func (x *ListBackupsReply_Backup) String() string
type ListBackupsRequest ¶
type ListBackupsRequest struct {
// contains filtered or unexported fields
}
func (*ListBackupsRequest) Descriptor
deprecated
func (*ListBackupsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBackupsRequest.ProtoReflect.Descriptor instead.
func (*ListBackupsRequest) ProtoMessage ¶
func (*ListBackupsRequest) ProtoMessage()
func (*ListBackupsRequest) ProtoReflect ¶
func (x *ListBackupsRequest) ProtoReflect() protoreflect.Message
func (*ListBackupsRequest) Reset ¶
func (x *ListBackupsRequest) Reset()
func (*ListBackupsRequest) String ¶
func (x *ListBackupsRequest) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer can be embedded to have forward compatible implementations.
func (*UnimplementedAPIServer) AddBackup ¶
func (*UnimplementedAPIServer) AddBackup(context.Context, *AddBackupRequest) (*AddBackupReply, error)
func (*UnimplementedAPIServer) CreateKeyForDevice ¶
func (*UnimplementedAPIServer) CreateKeyForDevice(context.Context, *CreateKeyForDeviceRequest) (*CreateKeyForDeviceReply, error)
func (*UnimplementedAPIServer) GetKeyForDevice ¶
func (*UnimplementedAPIServer) GetKeyForDevice(context.Context, *GetKeyForDeviceRequest) (*GetKeyForDeviceReply, error)
func (*UnimplementedAPIServer) ListBackups ¶
func (*UnimplementedAPIServer) ListBackups(context.Context, *ListBackupsRequest) (*ListBackupsReply, error)
func (*UnimplementedAPIServer) UpdateLatestBackup ¶
func (*UnimplementedAPIServer) UpdateLatestBackup(context.Context, *UpdateLatestBackupRequest) (*UpdateLatestBackupReply, error)
type UpdateLatestBackupReply ¶
type UpdateLatestBackupReply struct { Entry *UpdateLatestBackupReply_Entry `protobuf:"bytes,1,opt,name=entry,proto3" json:"entry,omitempty"` // contains filtered or unexported fields }
func (*UpdateLatestBackupReply) Descriptor
deprecated
func (*UpdateLatestBackupReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLatestBackupReply.ProtoReflect.Descriptor instead.
func (*UpdateLatestBackupReply) GetEntry ¶
func (x *UpdateLatestBackupReply) GetEntry() *UpdateLatestBackupReply_Entry
func (*UpdateLatestBackupReply) ProtoMessage ¶
func (*UpdateLatestBackupReply) ProtoMessage()
func (*UpdateLatestBackupReply) ProtoReflect ¶
func (x *UpdateLatestBackupReply) ProtoReflect() protoreflect.Message
func (*UpdateLatestBackupReply) Reset ¶
func (x *UpdateLatestBackupReply) Reset()
func (*UpdateLatestBackupReply) String ¶
func (x *UpdateLatestBackupReply) String() string
type UpdateLatestBackupReply_Entry ¶
type UpdateLatestBackupReply_Entry struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UpdateLatestBackupReply_Entry) Descriptor
deprecated
func (*UpdateLatestBackupReply_Entry) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLatestBackupReply_Entry.ProtoReflect.Descriptor instead.
func (*UpdateLatestBackupReply_Entry) GetName ¶
func (x *UpdateLatestBackupReply_Entry) GetName() string
func (*UpdateLatestBackupReply_Entry) GetValue ¶
func (x *UpdateLatestBackupReply_Entry) GetValue() string
func (*UpdateLatestBackupReply_Entry) ProtoMessage ¶
func (*UpdateLatestBackupReply_Entry) ProtoMessage()
func (*UpdateLatestBackupReply_Entry) ProtoReflect ¶
func (x *UpdateLatestBackupReply_Entry) ProtoReflect() protoreflect.Message
func (*UpdateLatestBackupReply_Entry) Reset ¶
func (x *UpdateLatestBackupReply_Entry) Reset()
func (*UpdateLatestBackupReply_Entry) String ¶
func (x *UpdateLatestBackupReply_Entry) String() string
type UpdateLatestBackupRequest ¶
type UpdateLatestBackupRequest struct { DeviceID string `protobuf:"bytes,1,opt,name=deviceID,proto3" json:"deviceID,omitempty"` BackupPath string `protobuf:"bytes,2,opt,name=backupPath,proto3" json:"backupPath,omitempty"` // contains filtered or unexported fields }
func (*UpdateLatestBackupRequest) Descriptor
deprecated
func (*UpdateLatestBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLatestBackupRequest.ProtoReflect.Descriptor instead.
func (*UpdateLatestBackupRequest) GetBackupPath ¶
func (x *UpdateLatestBackupRequest) GetBackupPath() string
func (*UpdateLatestBackupRequest) GetDeviceID ¶
func (x *UpdateLatestBackupRequest) GetDeviceID() string
func (*UpdateLatestBackupRequest) ProtoMessage ¶
func (*UpdateLatestBackupRequest) ProtoMessage()
func (*UpdateLatestBackupRequest) ProtoReflect ¶
func (x *UpdateLatestBackupRequest) ProtoReflect() protoreflect.Message
func (*UpdateLatestBackupRequest) Reset ¶
func (x *UpdateLatestBackupRequest) Reset()
func (*UpdateLatestBackupRequest) String ¶
func (x *UpdateLatestBackupRequest) String() string