MCPcopy Create free account
hub / github.com/DBCDK/morph / String

Method String

secrets/types.go:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (s *Secret) String() string {
22 var string_repr strings.Builder
23
24 fmt.Fprintf(&string_repr, "`%s` -> `%s`, with:\n\tPermissions: %s:%s, %s\n\tCreate remote directories: %t\n\tUpload at: %s",
25 s.Source, s.Destination, s.Owner.User, s.Owner.Group, s.Permissions, s.MkDirs, s.UploadAt)
26
27 if len(s.Action) > 0 {
28 fmt.Fprintf(&string_repr, "\n\tAction: `%s`", strings.Join(s.Action, " "))
29 }
30
31 return string_repr.String()
32}

Callers 4

BuildMachinesMethod · 0.80
SignalHandlerFunction · 0.80
GetBootIDMethod · 0.80
MakeTempFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected