MCPcopy
hub / github.com/CodisLabs/codis / UpdateSentinel

Method UpdateSentinel

pkg/models/store.go:254–256  ·  view source on GitHub ↗
(p *Sentinel)

Source from the content-addressed store, hash-verified

252}
253
254func (s *Store) UpdateSentinel(p *Sentinel) error {
255 return s.client.Update(s.SentinelPath(), p.Encode())
256}
257
258func ValidateProduct(name string) error {
259 if regexp.MustCompile(`^\w[\w\.\-]*$`).MatchString(name) {

Callers 1

storeUpdateSentinelMethod · 0.80

Calls 3

SentinelPathMethod · 0.95
UpdateMethod · 0.65
EncodeMethod · 0.45

Tested by

no test coverage detected