MCPcopy Create free account
hub / github.com/bricks-cloud/BricksLLM / UpdatePolicy

Method UpdatePolicy

internal/manager/policy.go:58–67  ·  view source on GitHub ↗
(id string, p *policy.UpdatePolicy)

Source from the content-addressed store, hash-verified

56}
57
58func (m *PolicyManager) UpdatePolicy(id string, p *policy.UpdatePolicy) (*policy.Policy, error) {
59 err := p.Validate()
60 if err != nil {
61 return nil, err
62 }
63
64 p.UpdatedAt = time.Now().Unix()
65
66 return m.Storage.UpdatePolicy(id, p)
67}
68
69func (m *PolicyManager) GetPoliciesByTags(tags []string) ([]*policy.Policy, error) {
70 return m.Storage.GetPoliciesByTags(tags)

Callers

nothing calls this directly

Calls 2

ValidateMethod · 0.65
UpdatePolicyMethod · 0.65

Tested by

no test coverage detected