Documentation ¶
Index ¶
- type FileResponse
- type IPool
- type RPCClient
- func (s *RPCClient) AddCredentials(certificate, privateKey, caCertificate []byte) error
- func (s *RPCClient) Beacon(beaconRequest rpc.BeaconRequest) (*rpc.BeaconResponse, error)
- func (s *RPCClient) ChangeTaskStatus(request rpc.ChangeTaskStatusRequest) error
- func (s *RPCClient) GetCheckpointFile(taskID string) ([]byte, error)
- func (s *RPCClient) GetFile(request rpc.TaskFileGetRequest) (io.ReadCloser, string, error)
- func (s *RPCClient) GetTask(request rpc.RequestTaskPayload) (*rpc.NewTaskPayloadResponse, error)
- func (s *RPCClient) OverrideServerName(serverName string) error
- func (s *RPCClient) SavedCrackedPassword(request rpc.CrackedPasswordRequest) error
- func (s *RPCClient) SendCheckpointFile(request rpc.TaskCheckpointSaveRequest) error
- func (s *RPCClient) SendTaskStatus(request rpc.TaskStatusUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileResponse ¶
type FileResponse struct { File io.ReadCloser Hash string }
type RPCClient ¶
type RPCClient struct {
// contains filtered or unexported fields
}
func NewRPCClient ¶
func (*RPCClient) AddCredentials ¶
func (*RPCClient) Beacon ¶
func (s *RPCClient) Beacon(beaconRequest rpc.BeaconRequest) (*rpc.BeaconResponse, error)
Beacon sends our current status to the server
func (*RPCClient) ChangeTaskStatus ¶
func (s *RPCClient) ChangeTaskStatus(request rpc.ChangeTaskStatusRequest) error
ChangeTaskStatus instructs the server to change the status of a task
func (*RPCClient) GetCheckpointFile ¶
GetCheckpointFile retrieves the checkpoint file from the server
func (*RPCClient) GetFile ¶
func (s *RPCClient) GetFile(request rpc.TaskFileGetRequest) (io.ReadCloser, string, error)
GetFile retrieves a shared or task file for a task
func (*RPCClient) GetTask ¶
func (s *RPCClient) GetTask(request rpc.RequestTaskPayload) (*rpc.NewTaskPayloadResponse, error)
GetTask retrieves the task payload
func (*RPCClient) OverrideServerName ¶
func (*RPCClient) SavedCrackedPassword ¶
func (s *RPCClient) SavedCrackedPassword(request rpc.CrackedPasswordRequest) error
SavedCrackedPassword instructs the server of a newly cracked password
func (*RPCClient) SendCheckpointFile ¶
func (s *RPCClient) SendCheckpointFile(request rpc.TaskCheckpointSaveRequest) error
SendCheckpointFile saves the restore point file on the server
func (*RPCClient) SendTaskStatus ¶
func (s *RPCClient) SendTaskStatus(request rpc.TaskStatusUpdate) error
SendTaskStatus sends a real time (engine) status update to the server
Click to show internal directories.
Click to hide internal directories.