Skip to main content

ObjectReference

type ObjectReference

Reference to an object

Contains sufficient information to uniquely identify a specific object.

BCS

The BCS serialized form for this type is defined by the following ABNF:

```text object-reference = object-id u64 digest ```

type ObjectReference struct {
ObjectId *ObjectId
Version *Version
Digest *ObjectDigest
}

func ObjectReferenceFromBcs

func ObjectReferenceFromBcs(bcs []byte) (ObjectReference, error)

Create this type from BCS encoded bytes.

func ObjectReferenceFromJson

func ObjectReferenceFromJson(json string) (ObjectReference, error)

Create this type from JSON encoded string.

func (*ObjectReference) Destroy

func (r *ObjectReference) Destroy()