Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gokrazy/rsync
/ functions
Functions
357 in github.com/gokrazy/rsync
⨍
Functions
357
◇
Types & classes
72
↓ 75 callers
Method
Printf
Printf logs message to the underlying log output. Arguments are handled in the manner of fmt.Printf.
internal/log/logger.go:13
↓ 74 callers
Method
Logf
(format string, v ...any)
internal/rsyncos/rsyncos.go:34
↓ 50 callers
Function
New
(tb testing.TB)
internal/testlogger/testlogger.go:18
↓ 49 callers
Method
Run
Run starts the specified rsync invocation.
rsynccmd/rsynccmd.go:58
↓ 36 callers
Method
Close
()
internal/sender/source.go:23
↓ 32 callers
Method
DebugGTE
(flag DebugLevel, lvl uint16)
internal/rsyncopts/rsyncopts.go:745
↓ 31 callers
Method
WriteInt32
(data int32)
internal/rsyncwire/wire.go:140
↓ 29 callers
Function
New
(t *testing.T, modules []rsyncd.Module, opts ...Option)
internal/rsynctest/rsynctest.go:102
↓ 23 callers
Method
ReadInt32
()
internal/rsyncwire/wire.go:169
↓ 22 callers
Method
String
()
internal/rsyncwire/wire.go:123
↓ 20 callers
Function
InteropModule
InteropModule is a convenience function to define an rsync module named “interop” with the specified path.
internal/rsynctest/rsynctest.go:65
↓ 19 callers
Function
Run
(tb testing.TB, args ...string)
internal/rsynctest/rsynctest.go:197
↓ 18 callers
Method
Verbose
()
internal/rsyncopts/rsyncopts.go:718
↓ 15 callers
Function
AnyRsync
(t *testing.T)
internal/rsynctest/rsynctest.go:524
↓ 15 callers
Method
RunClient
(t *testing.T, args []string, remaining []string)
internal/rsynctest/rsynctest.go:286
↓ 14 callers
Method
InfoGTE
(flag InfoLevel, lvl uint16)
internal/rsyncopts/rsyncopts.go:737
↓ 13 callers
Method
FileMode
FileMode converts from the Linux permission bits to Go’s permission bits.
internal/receiver/flist.go:44
↓ 13 callers
Function
NewServer
(modules []Module, opts ...Option)
rsyncd/rsyncd.go:69
↓ 13 callers
Function
TridgeOrGTFO
(t *testing.T, reason string)
internal/rsynctest/rsynctest.go:510
↓ 12 callers
Function
NewContext
(opts *Options)
internal/rsyncopts/rsyncopts.go:1303
↓ 12 callers
Method
ParseArguments
rsync/options.c:parse_arguments
internal/rsyncopts/rsyncopts.go:1313
↓ 12 callers
Method
Readlink
Readlink reads a symlink target. Needs fs.ReadLinkFS.
internal/sender/source.go:21
↓ 12 callers
Function
SignExtend
SignExtend mirrors how C converts from (signed char) to uint32, i.e. using sign extension. get_checksum1 treats the buffer as (signed char*) instead o
internal/rsyncchecksum/rsyncchecksum.go:24
↓ 11 callers
Method
Error
()
internal/rsyncopts/popt.go:64
↓ 11 callers
Method
Write
(p []byte)
internal/maincmd/maincmd.go:38
↓ 11 callers
Method
WriteInt32
(data int32)
internal/rsyncwire/wire.go:104
↓ 11 callers
Method
WriteString
(data string)
internal/rsyncwire/wire.go:156
↓ 10 callers
Method
Open
Open opens a file. Returns error if file does not implement io.Seeker.
internal/sender/source.go:18
↓ 10 callers
Method
Write
(p []byte)
internal/rsyncwire/wire.go:213
↓ 10 callers
Function
WriteLargeDataFile
(t *testing.T, source string, headPattern, bodyPattern, endPattern []byte)
internal/rsynctest/rsynctest.go:437
↓ 9 callers
Function
DataFileMatches
(fn string, headPattern, bodyPattern, endPattern []byte)
internal/rsynctest/rsynctest.go:449
↓ 9 callers
Function
createSourceFiles
(t *testing.T)
integration/interop/interop_test.go:305
↓ 8 callers
Function
New
(t *testing.T)
internal/rsyncostest/rsyncostest.go:10
↓ 8 callers
Function
NewConnection
(r io.Reader, w io.Writer, name string)
rsyncd/rsyncd.go:312
↓ 8 callers
Function
NewInMemory
(t *testing.T, module rsyncd.Module, opts ...Option)
internal/rsynctest/rsynctest.go:230
↓ 8 callers
Function
WithStderr
(stderr io.Writer)
rsyncd/rsyncd.go:57
↓ 8 callers
Function
WritableInteropModule
WritableInteropModule is a wrapper around InteropModule that marks the module as writable (not read-only).
internal/rsynctest/rsynctest.go:76
↓ 7 callers
Function
New
New creates a new [Client]. You can call [Client.Run] one or more times with the same [Client].
rsyncclient/rsyncclient.go:67
↓ 7 callers
Function
NewOptions
NewOptions returns an Options struct with all options initialized to their default values. Note that ParseArguments will set some options (that defaul
internal/rsyncopts/rsyncopts.go:134
↓ 7 callers
Method
Run
Run starts one run of the rsync protocol (not the rsync daemon protocol), see also https://michael.stapelberg.ch/posts/2022-07-02-rsync-how-does-it-wo
rsyncclient/rsyncclient.go:123
↓ 7 callers
Method
Sender
()
internal/rsyncopts/rsyncopts.go:720
↓ 7 callers
Method
ServerCommandOptions
ServerCommandOptions returns the options that rsync would use to spawn the server process.
rsyncclient/rsyncclient.go:97
↓ 6 callers
Method
Do
rsync/main.c:client_run am_sender
internal/sender/do.go:35
↓ 6 callers
Method
InternalHandleConn
This method is only exported until we refactor; use HandleConnArgs() instead
rsyncd/rsyncd.go:324
↓ 6 callers
Function
Main
(ctx context.Context, osenv *rsyncos.Env, args []string, cfg *rsyncdconfig.Config)
internal/maincmd/maincmd.go:40
↓ 6 callers
Method
Reset
()
internal/rsyncwire/wire.go:127
↓ 6 callers
Method
Server
()
internal/rsyncopts/rsyncopts.go:724
↓ 6 callers
Method
setPerms
rsync/rsync.c:set_perms
internal/receiver/generator.go:106
↓ 5 callers
Function
Command
Command returns the [Cmd] struct to execute rsync with the given arguments. The name parameter is ignored and only specified for symmetry with os/exe
rsynccmd/rsynccmd.go:46
↓ 5 callers
Function
CommandMain
(m *testing.M)
internal/rsynctest/rsynctest.go:302
↓ 5 callers
Function
CreateDummyDeviceFiles
(t *testing.T, dir string)
internal/rsynctest/rsynctest.go:326
↓ 5 callers
Function
MaybeFileSystem
(_, _ []string)
internal/restrict/restrict_other.go:11
↓ 5 callers
Method
Name
()
internal/receiver/receiverrenameio_windows.go:27
↓ 5 callers
Function
NewOptionsWithGokrazyDefaults
NewOptions returns an Options struct with all options initialized to their default values. Note that ParseArguments will set some options (that defaul
internal/rsyncopts/rsyncopts.go:165
↓ 5 callers
Function
NewPrinter
(out io.Writer, now func() time.Time)
internal/progress/progress.go:26
↓ 5 callers
Method
PreserveGid
()
internal/rsyncopts/rsyncopts.go:711
↓ 5 callers
Method
PreserveUid
()
internal/rsyncopts/rsyncopts.go:710
↓ 5 callers
Method
Show
(offset uint64, last bool)
internal/progress/progress.go:67
↓ 5 callers
Function
VerifyDummyDeviceFiles
(t *testing.T, source, dest string)
internal/rsynctest/rsynctest.go:356
↓ 5 callers
Method
poptGetOptArg
()
internal/rsyncopts/popt.go:269
↓ 5 callers
Method
ptr
(offset int64, l int32)
internal/sender/fileio.go:42
↓ 5 callers
Function
sourceFullySyncedTo
(t *testing.T, dest string)
integration/interop/interop_test.go:341
↓ 5 callers
Function
sourcesArgs
(t *testing.T)
integration/interop/interop_test.go:327
↓ 5 callers
Function
version
(osenv *rsyncos.Env)
internal/maincmd/maincmd.go:28
↓ 4 callers
Method
AlwaysChecksum
()
internal/rsyncopts/rsyncopts.go:727
↓ 4 callers
Method
Cleanup
()
internal/receiver/receiverrenameio_windows.go:45
↓ 4 callers
Function
ConstructLargeDataFile
(headPattern, bodyPattern, endPattern []byte)
internal/rsynctest/rsynctest.go:429
↓ 4 callers
Method
DryRun
()
internal/rsyncopts/rsyncopts.go:708
↓ 4 callers
Function
ListenerFromConfig
(osenv *rsyncos.Env, cfg rsyncdconfig.Listener)
internal/anonssh/anonssh.go:189
↓ 4 callers
Function
Listeners
(lns []rsyncdconfig.Listener)
internal/rsynctest/rsynctest.go:84
↓ 4 callers
Method
LocalServer
()
internal/rsyncopts/rsyncopts.go:722
↓ 4 callers
Method
MaybeShow
(offset uint64, last bool)
internal/progress/progress.go:53
↓ 4 callers
Method
PreserveDevices
()
internal/rsyncopts/rsyncopts.go:712
↓ 4 callers
Method
PreserveLinks
()
internal/rsyncopts/rsyncopts.go:709
↓ 4 callers
Method
ReadByte
()
internal/rsyncwire/wire.go:161
↓ 4 callers
Method
ReadInt64
()
internal/rsyncwire/wire.go:177
↓ 4 callers
Method
Restrict
()
internal/rsyncos/rsyncos.go:39
↓ 4 callers
Function
Serve
(ctx context.Context, osenv *rsyncos.Env, ln net.Listener, listener *Listener, cfg *rsyncdconfig.Config, main
internal/anonssh/anonssh.go:274
↓ 4 callers
Method
Serve
(ctx context.Context, ln net.Listener)
rsyncd/rsyncd.go:578
↓ 4 callers
Method
Write
(buf []byte)
internal/receiver/receiverrenameio_windows.go:31
↓ 4 callers
Method
WriteInt64
(data int64)
internal/rsyncwire/wire.go:144
↓ 4 callers
Method
WriteMsg
(tag uint8, p []byte)
internal/rsyncwire/wire.go:28
↓ 4 callers
Method
WriteTo
(c *rsyncwire.Conn)
types.go:79
↓ 4 callers
Method
anyRsync
()
internal/rsynctest/rsynctest.go:472
↓ 4 callers
Function
parseOutputWords
(osenv *rsyncos.Env, words []output, levels []uint16, str string, prio priority)
internal/rsyncopts/rsyncopts.go:414
↓ 3 callers
Method
Accept
()
integration/ipacl/ipacl_test.go:23
↓ 3 callers
Function
Checksum1
(buf []byte)
internal/rsyncchecksum/rsyncchecksum.go:29
↓ 3 callers
Function
ClientRun
rsync/main.c:client_run
internal/maincmd/clientmaincmd.go:257
↓ 3 callers
Method
DeleteMode
()
internal/rsyncopts/rsyncopts.go:719
↓ 3 callers
Function
DontRestrict
()
rsyncd/rsyncd.go:63
↓ 3 callers
Method
FS
FS returns the underlying fs.FS for use with fs.WalkDir.
internal/sender/source.go:15
↓ 3 callers
Function
FromString
(input string)
internal/rsyncdconfig/config.go:30
↓ 3 callers
Method
Help
()
internal/rsyncopts/rsyncopts.go:524
↓ 3 callers
Method
IgnoreTimes
()
internal/rsyncopts/rsyncopts.go:728
↓ 3 callers
Function
Output
(tb testing.TB, args ...string)
internal/rsynctest/rsynctest.go:208
↓ 3 callers
Method
PreserveMTimes
()
internal/rsyncopts/rsyncopts.go:713
↓ 3 callers
Method
PreservePerms
()
internal/rsyncopts/rsyncopts.go:714
↓ 3 callers
Method
PreserveSpecials
()
internal/rsyncopts/rsyncopts.go:715
↓ 3 callers
Function
Read
()
internal/version/version.go:7
↓ 3 callers
Method
Read
(p []byte)
internal/rsyncwire/wire.go:202
next →
1–100 of 357, ranked by callers