Documentation ¶ Index ¶ Variables func Delete(cflAccount, cflImagesToken, id string) error func Exists(cflAccount, cflImagesToken, imageID string) (bool, error) type ImageUploadInfo func Upload(cflAccount, cflImagesToken, id string, imageContent []byte, imageURL string) (*ImageUploadInfo, error) Constants ¶ This section is empty. Variables ¶ View Source var CflAccountHash = env.Must("CFL_ACCOUNT_HASH") Functions ¶ func Delete ¶ func Delete(cflAccount, cflImagesToken, id string) error func Exists ¶ func Exists(cflAccount, cflImagesToken, imageID string) (bool, error) GET https://api.cloudflare.com/client/v4/accounts/{account_identifier}/images/v1/{identifier} Types ¶ type ImageUploadInfo ¶ type ImageUploadInfo struct { Filename string `json:"filename"` ImageUrl string `json:"imageurl"` MimeType string `json:"mimetype"` } func Upload ¶ func Upload(cflAccount, cflImagesToken, id string, imageContent []byte, imageURL string) (*ImageUploadInfo, error) Source Files ¶ View all Source files images.go Click to show internal directories. Click to hide internal directories.