MCPcopy
hub / github.com/redspread/spread / String

Method String

pkg/data/sri.go:53–62  ·  view source on GitHub ↗

String returns a textual representation of the SRI which will be similar to the input.

()

Source from the content-addressed store, hash-verified

51
52// String returns a textual representation of the SRI which will be similar to the input.
53func (s *SRI) String() string {
54 str := s.Treeish
55 if len(s.Path) > 0 {
56 str += "/" + s.Path
57 }
58 if len(s.Field) > 0 {
59 str += "?" + s.Field
60 }
61 return str
62}
63
64// Proto returns the protobuf representation of an SRI
65func (s *SRI) Proto() *pb.SRI {

Callers 9

AddrMethod · 0.45
fetchFunction · 0.45
KubeImageMethod · 0.45
EqualMethod · 0.45
CommitMethod · 0.45
DiffMethod · 0.45
ParamMethod · 0.45
AddMethod · 0.45
CommitMethod · 0.45

Calls

no outgoing calls

Tested by 1

AddrMethod · 0.36