PutString is convenience function to put a string into this object store.
(name string, data string, opts ...ObjectOpt)
| 862 | |
| 863 | // PutString is convenience function to put a string into this object store. |
| 864 | func (obs *obs) PutString(name string, data string, opts ...ObjectOpt) (*ObjectInfo, error) { |
| 865 | return obs.Put(&ObjectMeta{Name: name}, strings.NewReader(data), opts...) |
| 866 | } |
| 867 | |
| 868 | // GetString is a convenience function to pull an object from this object store and return it as a string. |
| 869 | func (obs *obs) GetString(name string, opts ...GetObjectOpt) (string, error) { |