(ctx context.Context, name string)
| 114 | } |
| 115 | |
| 116 | func (rw *Azure) readAllWithModTime(ctx context.Context, name string) ([]byte, time.Time, error) { |
| 117 | bytes, _, err := rw.readAll(ctx, name) |
| 118 | if err != nil { |
| 119 | return nil, time.Time{}, err |
| 120 | } |
| 121 | |
| 122 | att, err := rw.getAttributes(ctx, name) |
| 123 | if err != nil { |
| 124 | return nil, time.Time{}, err |
| 125 | } |
| 126 | return bytes, att.LastModified, nil |
| 127 | } |
| 128 | |
| 129 | // getAttributes returns information about the specified blob using its name. |
| 130 | func (rw *Azure) getAttributes(ctx context.Context, name string) (BlobAttributes, error) { |
no test coverage detected