Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Get ¶
func Get(requestURI string, offset int64) (rd io.ReadCloser, err error)
Grabs the data stored in requestURI. The requestURI is resolved using the `STORAGE_BASE_URL` as the base.
Retries transient errors `retries` number of times.
Usage:
requestURI := "1/2/3?X-Amz-Algorithm=...&..." reader, err := storage.Get(requestURI, 0)
func Put ¶
Stores the given reader onto the underlying blob storage with the given requestURI. The requestURI is resolved using the `STORAGE_BASE_URL` as the base.
Retries transient errors `retries` number of times.
Usage:
reader := strings.NewReader("hello") requestURI := "1/2/3?X-Amz-Algorithm=...&..." err := storage.Put(requestURI, reader)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.