Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientError ¶
ClientError implements error interface with additional code method
type DatasetDownloads ¶ added in v1.9.0
type Download ¶
type Download struct { DatasetDownloads DatasetDownloads S3Content S3Content ServiceAuthToken string DownloadServiceToken string SecretKey string IsPublishing bool }
Info represents the configuration for a download handler
func (Download) Do ¶
func (d Download) Do(extension, serviceAuthToken, downloadServiceToken string) http.HandlerFunc
Do handle download dataset file requests. If the dataset is published and a public download link is available then the request is redirected to the existing public link. If the dataset is published but a public link does not exist then the requested file is streamed from the content store and written to response body. Authenticated requests will always allow access to the private, whether or not the version is published.
type IdentityClient ¶
IdentityClient is an interface to represent methods called to action on the identity api