api_pb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

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

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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetName

func (x *Key) GetName() string

func (*Key) GetPath

func (x *Key) GetPath() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

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) CreateKeyForDevice

func (*UnimplementedAPIServer) GetKeyForDevice

func (*UnimplementedAPIServer) ListBackups

func (*UnimplementedAPIServer) UpdateLatestBackup

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 (*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 (*UpdateLatestBackupReply_Entry) GetValue

func (x *UpdateLatestBackupReply_Entry) GetValue() string

func (*UpdateLatestBackupReply_Entry) ProtoMessage

func (*UpdateLatestBackupReply_Entry) ProtoMessage()

func (*UpdateLatestBackupReply_Entry) ProtoReflect

func (*UpdateLatestBackupReply_Entry) Reset

func (x *UpdateLatestBackupReply_Entry) Reset()

func (*UpdateLatestBackupReply_Entry) 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 (*UpdateLatestBackupRequest) Reset

func (x *UpdateLatestBackupRequest) Reset()

func (*UpdateLatestBackupRequest) String

func (x *UpdateLatestBackupRequest) String() string

Jump to

Keyboard shortcuts

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