MCPcopy
hub / github.com/nats-io/nats.go / AddLink

Method AddLink

jetstream/object.go:207–207  ·  view source on GitHub ↗

AddLink will add a link to another object. A link is a reference to another object. The provided name is the name of the link object. The provided ObjectInfo is the info of the object being linked to. If an object with given name already exists, ErrObjectAlreadyExists will be returned. If object be

(ctx context.Context, name string, obj *ObjectInfo)

Source from the content-addressed store, hash-verified

205 // If the provided object is nil or the name is empty, ErrObjectRequired
206 // will be returned.
207 AddLink(ctx context.Context, name string, obj *ObjectInfo) (*ObjectInfo, error)
208
209 // AddBucketLink will add a link to another object store. A link is a
210 // reference to another object store. The provided name is the name of

Callers 5

TestObjectLinksFunction · 0.65
TestObjectListFunction · 0.65
TestObjectLinksFunction · 0.65
TestObjectListFunction · 0.65

Implementers 2

obsobject.go
obsjetstream/object.go

Calls

no outgoing calls

Tested by 5

TestObjectLinksFunction · 0.52
TestObjectListFunction · 0.52
TestObjectLinksFunction · 0.52
TestObjectListFunction · 0.52