Documentation
¶
Overview ¶
Warning - This is generated code
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsRsyncResponse ¶
IsRsyncResponse is the response from the IsRsync function. this is returned by IsRsync function. @example ```javascript const rsync = require('nuclei/rsync'); const isRsync = rsync.IsRsync('acme.com', 873); log(toJSON(isRsync)); ```
type RsyncClient ¶
type RsyncClient struct{}
RsyncClient is a client for RSYNC servers. Internally client uses https://github.com/gokrazy/rsync driver. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); ```
func (*RsyncClient) ListFilesInModule ¶
func (c *RsyncClient) ListFilesInModule(ctx context.Context, host string, port int, username string, password string, module string) (RsyncListResponse, error)
ListShares lists the shares of a Rsync server. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listShares = client.ListFilesInModule('acme.com', 873, 'username', 'password', '/'); log(toJSON(listShares)); ```
func (*RsyncClient) ListModules ¶
func (c *RsyncClient) ListModules(ctx context.Context, host string, port int, username string, password string) (RsyncListResponse, error)
ListModules lists the modules of a Rsync server. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listModules = client.ListModules('acme.com', 873, 'username', 'password'); log(toJSON(listModules)); ```
type RsyncListResponse ¶
ListSharesResponse is the response from the ListShares function. this is returned by ListShares function. @example ```javascript const rsync = require('nuclei/rsync'); const client = new rsync.RsyncClient(); const listShares = client.ListShares('acme.com', 873); log(toJSON(listShares));