MCPcopy Index your code
hub / github.com/1Panel-dev/1Panel / String

Method String

agent/utils/cmd/cmdx.go:70–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (b *lockedBuffer) String() string {
71 b.mu.Lock()
72 defer b.mu.Unlock()
73 if b.truncated == 0 {
74 return b.buf.String()
75 }
76 return fmt.Sprintf("%s\n... truncated %d bytes ...", b.buf.String(), b.truncated)
77}
78
79func NewCommandMgr(opts ...Option) *CommandHelper {
80 s := &CommandHelper{}

Callers 15

RunPipeMethod · 0.95
RunPipeToFileMethod · 0.95
FormatMethod · 0.45
checkNamePatternFunction · 0.45
checkIpPatternFunction · 0.45
checkPasswordPatternFunction · 0.45
loadOutboundIPFunction · 0.45
buildMessageFunction · 0.45
decodeGBKFunction · 0.45
truncateHitLineFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected