PutBytes is convenience function to put a byte slice into this object store.
(name string, data []byte, opts ...ObjectOpt)
| 842 | |
| 843 | // PutBytes is convenience function to put a byte slice into this object store. |
| 844 | func (obs *obs) PutBytes(name string, data []byte, opts ...ObjectOpt) (*ObjectInfo, error) { |
| 845 | return obs.Put(&ObjectMeta{Name: name}, bytes.NewReader(data), opts...) |
| 846 | } |
| 847 | |
| 848 | // GetBytes is a convenience function to pull an object from this object store and return it as a byte slice. |
| 849 | func (obs *obs) GetBytes(name string, opts ...GetObjectOpt) ([]byte, error) { |