MCPcopy Create free account
hub / github.com/aptly-dev/aptly / objectHandle

Method objectHandle

gcs/public.go:104–111  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

102}
103
104func (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.
114func (g *PublishedStorage) PutFile(path string, sourceFilename string) error {

Callers 8

putFileMethod · 0.95
getMD5Method · 0.95
RemoveMethod · 0.95
RenameFileMethod · 0.95
SymLinkMethod · 0.95
FileExistsMethod · 0.95
ReadLinkMethod · 0.95

Calls 2

objectPathMethod · 0.95
KeyMethod · 0.45

Tested by 1