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

Method Attach

pkg/entity/app.go:63–71  ·  view source on GitHub ↗

Attach is allowed on any valid Entity

(e Entity)

Source from the content-addressed store, hash-verified

61
62// Attach is allowed on any valid Entity
63func (c *App) Attach(e Entity) error {
64 if err := c.validAttach(e); err != nil {
65 return err
66 }
67
68 // add to entities
69 c.entities = append(c.entities, e)
70 return nil
71}
72
73func (c *App) name() string {
74 return "app"

Callers 2

TestInputRCAndPodFunction · 0.95
TestAppAttachImageFunction · 0.95

Calls 1

validAttachMethod · 0.80

Tested by 2

TestInputRCAndPodFunction · 0.76
TestAppAttachImageFunction · 0.76