MCPcopy
hub / github.com/apecloud/kubeblocks / Set

Method Set

cmd/reloader/app/flags.go:68–76  ·  view source on GitHub ↗
(val string)

Source from the content-addressed store, hash-verified

66}
67
68func (f *NotifyEventType) Set(val string) error {
69 for key, value := range allNotifyType {
70 if val == string(value) {
71 *f = key
72 return nil
73 }
74 }
75 return cfgcore.MakeError("not supported type[%s], required list: [%v]", val, allNotifyType)
76}
77
78func (f *NotifyEventType) String() string {
79 reloadType, ok := allNotifyType[*f]

Callers 15

GetMethod · 0.80
ListMethod · 0.80
listFromGraphMethod · 0.80
GetMethod · 0.80
ListMethod · 0.80
matchLabelFunction · 0.80
ListMethod · 0.80
matchMethod · 0.80
initFunction · 0.80

Calls

no outgoing calls

Tested by 6

GetMethod · 0.64
ListMethod · 0.64
mockRestAPIServerFunction · 0.64
TestGetKubeVersionFunction · 0.64
TestBuildCronJobScheduleFunction · 0.64