(path string)
| 102 | } |
| 103 | |
| 104 | func (g *PublishedStorage) objectHandle(path string) *storage.ObjectHandle { |
| 105 | obj := g.bucket.Object(g.objectPath(path)) |
| 106 | if g.encryptionKey != "" { |
| 107 | obj = obj.Key([]byte(g.encryptionKey)) |
| 108 | } |
| 109 | |
| 110 | return obj |
| 111 | } |
| 112 | |
| 113 | // PutFile puts file into published storage at specified path. |
| 114 | func (g *PublishedStorage) PutFile(path string, sourceFilename string) error { |