MCPcopy Index your code
hub / github.com/minio/mc / String

Method String

cmd/admin-replicate-resync-cancel.go:63–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (m resyncCancelMessage) String() string {
64 v := madmin.SRResyncOpStatus(m)
65 messages := []string{}
66 th := "ResyncMessage"
67 if v.ErrDetail != "" {
68 messages = append(messages, v.ErrDetail)
69 th = "ResyncErr"
70 } else {
71 messages = append(messages, fmt.Sprintf("Site resync with ID %s canceled successfully.", v.ResyncID))
72 }
73 return console.Colorize(th, strings.Join(messages, "\n"))
74}
75
76func mainAdminReplicateResyncCancel(ctx *cli.Context) error {
77 // Check argument count

Callers

nothing calls this directly

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected