MCPcopy
hub / github.com/semaphoreui/semaphore / Write

Method Write

db_lib/GoGitClient.go:30–39  ·  view source on GitHub ↗
(p []byte)

Source from the content-addressed store, hash-verified

28}
29
30func (t ProgressWrapper) Write(p []byte) (n int, err error) {
31 s := string(p)
32
33 if strings.HasPrefix(s, "Counting objects:") || strings.HasPrefix(s, "Compressing objects:") {
34 return len(p), nil
35 }
36
37 t.Logger.Log(string(p))
38 return len(p), nil
39}
40
41func (c GoGitClient) getAuthMethod(r GitRepository) (transport.AuthMethod, error) {
42 switch r.Repository.SSHKey.Type {

Callers 8

pongHandlerFunction · 0.80
totpQrFunction · 0.80
hmacHashPayloadFunction · 0.80
chunkRSAEncryptFunction · 0.80
GetRunnerMethod · 0.80
GetBackupFunction · 0.80
GetTaskRawOutputFunction · 0.80
sendTlsFunction · 0.80

Calls 1

LogMethod · 0.65

Tested by

no test coverage detected