package
2.263.0
Repository: https://github.com/onsdigital/dp-api-clients-go.git
Documentation: pkg.go.dev

# Functions

NewAPIClient creates a new instance of ImageAPI Client with a given image api url.
NewImageAPIResponse creates an error response, optionally adding body to e when status is 404.
NewWithHealthClient creates a new instance of ImageAPI Client, reusing the URL and Clienter from the provided healthcheck client.

# Structs

Client is an image api client which can be used to make requests to the server.
ErrInvalidImageAPIResponse is returned when the image api does not respond with a valid status.
Image represents the fields for an Image.
ImageDownload represents the fields for an Image Download.
ImageDownloadLinks represents the fields for the image download HATEOAS links.
ImageDownloads represents the fields for a group of image download variants as returned by Image API.
ImageLinks represents the fields for the image HATEOAS links.
Images represents the fields for a group of images as returned by Image API.
ImageUpload represents the fields for an Image Upload.
License represents the fields for an Image License.
NewImage represents the fields required to create a new Image.
NewImageDownload represents the fields for an Image Download.