models/object.go
func (o *Object) SetMetadata(key string, value string, attr MetadataAttributes) error {
	o.Metadata[key] = MetadataData{
		value: value,
		attr:  attr,
	}

	if attr.PrimaryKey {
		o.updatePrimaryKeyHash()
	}

	return nil
}
func (o *Object) SetMetadata(key string, value string, attr MetadataAttributes) error {
	o.Metadata[key] = MetadataData{
		value: value,
		attr:  attr,
	}

	if attr.PrimaryKey {
		o.updatePrimaryKeyHash()
	}

	return nil
}
// SetMetadata sets a metadata value for the object.