Versions in this module Expand all Collapse all v2 v2.0.0 Nov 7, 2024 Changes in this version + const AuditLogActorTypeAdmin + const AuditLogActorTypeCloudflare + const AuditLogActorTypeUser + const CertificateCADigicert + const CertificateCAGoogle + const CertificateCALetsEncrypt + const CertificateRequestTypeKeylessCertificate + const CertificateRequestTypeOriginECC + const CertificateRequestTypeOriginRSA + const CloudflareTunnelStatusDegraded + const CloudflareTunnelStatusDown + const CloudflareTunnelStatusHealthy + const CloudflareTunnelStatusInactive + const CloudflareTunnelTunTypeCNI + const CloudflareTunnelTunTypeCfdTunnel + const CloudflareTunnelTunTypeGRE + const CloudflareTunnelTunTypeIPSec + const CloudflareTunnelTunTypeWARPConnector + const MemberStatusAccepted + const MemberStatusPending + const SortDirectionAsc + const SortDirectionDesc + type ASN = shared.ASN + type ASNParam = shared.ASNParam + type AuditLog = shared.AuditLog + type AuditLogAction = shared.AuditLogAction + type AuditLogActor = shared.AuditLogActor + type AuditLogActorType = shared.AuditLogActorType + type AuditLogOwner = shared.AuditLogOwner + type AuditLogResource = shared.AuditLogResource + type CertificateCA = shared.CertificateCA + type CertificateRequestType = shared.CertificateRequestType + type CloudflareTunnel = shared.CloudflareTunnel + type CloudflareTunnelConnection = shared.CloudflareTunnelConnection + type CloudflareTunnelStatus = shared.CloudflareTunnelStatus + type CloudflareTunnelTunType = shared.CloudflareTunnelTunType + type Error = apierror.Error + type ErrorData = shared.ErrorData + type Image struct + Filename string + ID string + JSON imageJSON + Meta interface{} + RequireSignedURLs bool + Uploaded time.Time + Variants []string + func (r *Image) UnmarshalJSON(data []byte) (err error) + type ImageService struct + Options []option.RequestOption + V1 *V1Service + V2 *V2Service + func NewImageService(opts ...option.RequestOption) (r *ImageService) + type Key struct + JSON keyJSON + Name string + Value string + func (r *Key) UnmarshalJSON(data []byte) (err error) + type MemberParam = shared.MemberParam + type MemberRoleParam = shared.MemberRoleParam + type MemberRolesPermissionsParam = shared.MemberRolesPermissionsParam + type MemberStatus = shared.MemberStatus + type MemberUserParam = shared.MemberUserParam + type Permission = shared.Permission + type PermissionGrant = shared.PermissionGrant + type PermissionGrantParam = shared.PermissionGrantParam + type ResponseInfo = shared.ResponseInfo + type Role = shared.Role + type SortDirection = shared.SortDirection + type Stat struct + Count StatCount + JSON statJSON + func (r *Stat) UnmarshalJSON(data []byte) (err error) + type StatCount struct + Allowed float64 + Current float64 + JSON statCountJSON + func (r *StatCount) UnmarshalJSON(data []byte) (err error) + type V1BlobService struct + Options []option.RequestOption + func NewV1BlobService(opts ...option.RequestOption) (r *V1BlobService) + func (r *V1BlobService) Get(ctx context.Context, accountID string, imageID string, ...) (res *http.Response, err error) + type V1DeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1DeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1DeleteResponseUnion + Success V1DeleteResponseEnvelopeSuccess + func (r *V1DeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1DeleteResponseEnvelopeSuccess bool + const V1DeleteResponseEnvelopeSuccessTrue + func (r V1DeleteResponseEnvelopeSuccess) IsKnown() bool + type V1DeleteResponseUnion interface + ImplementsImagesV1DeleteResponseUnion func() + type V1EditParams struct + Metadata param.Field[interface{}] + RequireSignedURLs param.Field[bool] + func (r V1EditParams) MarshalJSON() (data []byte, err error) + type V1EditResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1EditResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Image + Success V1EditResponseEnvelopeSuccess + func (r *V1EditResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1EditResponseEnvelopeSuccess bool + const V1EditResponseEnvelopeSuccessTrue + func (r V1EditResponseEnvelopeSuccess) IsKnown() bool + type V1GetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1GetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Image + Success V1GetResponseEnvelopeSuccess + func (r *V1GetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1GetResponseEnvelopeSuccess bool + const V1GetResponseEnvelopeSuccessTrue + func (r V1GetResponseEnvelopeSuccess) IsKnown() bool + type V1KeyDeleteResponse struct + JSON v1KeyDeleteResponseJSON + Keys []Key + func (r *V1KeyDeleteResponse) UnmarshalJSON(data []byte) (err error) + type V1KeyDeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1KeyDeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1KeyDeleteResponse + Success V1KeyDeleteResponseEnvelopeSuccess + func (r *V1KeyDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1KeyDeleteResponseEnvelopeSuccess bool + const V1KeyDeleteResponseEnvelopeSuccessTrue + func (r V1KeyDeleteResponseEnvelopeSuccess) IsKnown() bool + type V1KeyListResponse struct + JSON v1KeyListResponseJSON + Keys []Key + func (r *V1KeyListResponse) UnmarshalJSON(data []byte) (err error) + type V1KeyListResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1KeyListResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1KeyListResponse + Success V1KeyListResponseEnvelopeSuccess + func (r *V1KeyListResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1KeyListResponseEnvelopeSuccess bool + const V1KeyListResponseEnvelopeSuccessTrue + func (r V1KeyListResponseEnvelopeSuccess) IsKnown() bool + type V1KeyService struct + Options []option.RequestOption + func NewV1KeyService(opts ...option.RequestOption) (r *V1KeyService) + func (r *V1KeyService) Delete(ctx context.Context, accountID string, signingKeyName string, ...) (res *V1KeyDeleteResponse, err error) + func (r *V1KeyService) List(ctx context.Context, accountID string, opts ...option.RequestOption) (res *V1KeyListResponse, err error) + func (r *V1KeyService) Update(ctx context.Context, accountID string, signingKeyName string, ...) (res *V1KeyUpdateResponse, err error) + type V1KeyUpdateResponse struct + JSON v1KeyUpdateResponseJSON + Keys []Key + func (r *V1KeyUpdateResponse) UnmarshalJSON(data []byte) (err error) + type V1KeyUpdateResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1KeyUpdateResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1KeyUpdateResponse + Success V1KeyUpdateResponseEnvelopeSuccess + func (r *V1KeyUpdateResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1KeyUpdateResponseEnvelopeSuccess bool + const V1KeyUpdateResponseEnvelopeSuccessTrue + func (r V1KeyUpdateResponseEnvelopeSuccess) IsKnown() bool + type V1ListParams struct + Page param.Field[float64] + PerPage param.Field[float64] + func (r V1ListParams) URLQuery() (v url.Values) + type V1ListResponse struct + Errors []shared.ResponseInfo + JSON v1ListResponseJSON + Messages []shared.ResponseInfo + Result V1ListResponseResult + Success V1ListResponseSuccess + func (r *V1ListResponse) UnmarshalJSON(data []byte) (err error) + type V1ListResponseResult struct + Images []Image + JSON v1ListResponseResultJSON + func (r *V1ListResponseResult) UnmarshalJSON(data []byte) (err error) + type V1ListResponseSuccess bool + const V1ListResponseSuccessTrue + func (r V1ListResponseSuccess) IsKnown() bool + type V1NewParams struct + File param.Field[interface{}] + Metadata param.Field[interface{}] + RequireSignedURLs param.Field[bool] + URL param.Field[string] + func (r V1NewParams) MarshalMultipart() (data []byte, contentType string, err error) + type V1NewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1NewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Image + Success V1NewResponseEnvelopeSuccess + func (r *V1NewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1NewResponseEnvelopeSuccess bool + const V1NewResponseEnvelopeSuccessTrue + func (r V1NewResponseEnvelopeSuccess) IsKnown() bool + type V1Service struct + Blobs *V1BlobService + Keys *V1KeyService + Options []option.RequestOption + Stats *V1StatService + Variants *V1VariantService + func NewV1Service(opts ...option.RequestOption) (r *V1Service) + func (r *V1Service) Delete(ctx context.Context, accountID string, imageID string, ...) (res *V1DeleteResponseUnion, err error) + func (r *V1Service) Edit(ctx context.Context, accountID string, imageID string, body V1EditParams, ...) (res *Image, err error) + func (r *V1Service) Get(ctx context.Context, accountID string, imageID string, ...) (res *Image, err error) + func (r *V1Service) List(ctx context.Context, accountID string, query V1ListParams, ...) (res *pagination.V4PagePagination[V1ListResponse], err error) + func (r *V1Service) ListAutoPaging(ctx context.Context, accountID string, query V1ListParams, ...) *pagination.V4PagePaginationAutoPager[V1ListResponse] + func (r *V1Service) New(ctx context.Context, accountID string, body V1NewParams, ...) (res *Image, err error) + type V1StatGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1StatGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Stat + Success V1StatGetResponseEnvelopeSuccess + func (r *V1StatGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1StatGetResponseEnvelopeSuccess bool + const V1StatGetResponseEnvelopeSuccessTrue + func (r V1StatGetResponseEnvelopeSuccess) IsKnown() bool + type V1StatService struct + Options []option.RequestOption + func NewV1StatService(opts ...option.RequestOption) (r *V1StatService) + func (r *V1StatService) Get(ctx context.Context, accountID string, opts ...option.RequestOption) (res *Stat, err error) + type V1VariantDeleteResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1VariantDeleteResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1VariantDeleteResponseUnion + Success V1VariantDeleteResponseEnvelopeSuccess + func (r *V1VariantDeleteResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1VariantDeleteResponseEnvelopeSuccess bool + const V1VariantDeleteResponseEnvelopeSuccessTrue + func (r V1VariantDeleteResponseEnvelopeSuccess) IsKnown() bool + type V1VariantDeleteResponseUnion interface + ImplementsImagesV1VariantDeleteResponseUnion func() + type V1VariantEditParams struct + NeverRequireSignedURLs param.Field[bool] + Options param.Field[V1VariantEditParamsOptions] + func (r V1VariantEditParams) MarshalJSON() (data []byte, err error) + type V1VariantEditParamsOptions struct + Fit param.Field[V1VariantEditParamsOptionsFit] + Height param.Field[float64] + Metadata param.Field[V1VariantEditParamsOptionsMetadata] + Width param.Field[float64] + func (r V1VariantEditParamsOptions) MarshalJSON() (data []byte, err error) + type V1VariantEditParamsOptionsFit string + const V1VariantEditParamsOptionsFitContain + const V1VariantEditParamsOptionsFitCover + const V1VariantEditParamsOptionsFitCrop + const V1VariantEditParamsOptionsFitPad + const V1VariantEditParamsOptionsFitScaleDown + func (r V1VariantEditParamsOptionsFit) IsKnown() bool + type V1VariantEditParamsOptionsMetadata string + const V1VariantEditParamsOptionsMetadataCopyright + const V1VariantEditParamsOptionsMetadataKeep + const V1VariantEditParamsOptionsMetadataNone + func (r V1VariantEditParamsOptionsMetadata) IsKnown() bool + type V1VariantEditResponse struct + JSON v1VariantEditResponseJSON + Variant V1VariantEditResponseVariant + func (r *V1VariantEditResponse) UnmarshalJSON(data []byte) (err error) + type V1VariantEditResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1VariantEditResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1VariantEditResponse + Success V1VariantEditResponseEnvelopeSuccess + func (r *V1VariantEditResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1VariantEditResponseEnvelopeSuccess bool + const V1VariantEditResponseEnvelopeSuccessTrue + func (r V1VariantEditResponseEnvelopeSuccess) IsKnown() bool + type V1VariantEditResponseVariant struct + ID string + JSON v1VariantEditResponseVariantJSON + NeverRequireSignedURLs bool + Options V1VariantEditResponseVariantOptions + func (r *V1VariantEditResponseVariant) UnmarshalJSON(data []byte) (err error) + type V1VariantEditResponseVariantOptions struct + Fit V1VariantEditResponseVariantOptionsFit + Height float64 + JSON v1VariantEditResponseVariantOptionsJSON + Metadata V1VariantEditResponseVariantOptionsMetadata + Width float64 + func (r *V1VariantEditResponseVariantOptions) UnmarshalJSON(data []byte) (err error) + type V1VariantEditResponseVariantOptionsFit string + const V1VariantEditResponseVariantOptionsFitContain + const V1VariantEditResponseVariantOptionsFitCover + const V1VariantEditResponseVariantOptionsFitCrop + const V1VariantEditResponseVariantOptionsFitPad + const V1VariantEditResponseVariantOptionsFitScaleDown + func (r V1VariantEditResponseVariantOptionsFit) IsKnown() bool + type V1VariantEditResponseVariantOptionsMetadata string + const V1VariantEditResponseVariantOptionsMetadataCopyright + const V1VariantEditResponseVariantOptionsMetadataKeep + const V1VariantEditResponseVariantOptionsMetadataNone + func (r V1VariantEditResponseVariantOptionsMetadata) IsKnown() bool + type V1VariantGetResponse struct + JSON v1VariantGetResponseJSON + Variant V1VariantGetResponseVariant + func (r *V1VariantGetResponse) UnmarshalJSON(data []byte) (err error) + type V1VariantGetResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1VariantGetResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1VariantGetResponse + Success V1VariantGetResponseEnvelopeSuccess + func (r *V1VariantGetResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1VariantGetResponseEnvelopeSuccess bool + const V1VariantGetResponseEnvelopeSuccessTrue + func (r V1VariantGetResponseEnvelopeSuccess) IsKnown() bool + type V1VariantGetResponseVariant struct + ID string + JSON v1VariantGetResponseVariantJSON + NeverRequireSignedURLs bool + Options V1VariantGetResponseVariantOptions + func (r *V1VariantGetResponseVariant) UnmarshalJSON(data []byte) (err error) + type V1VariantGetResponseVariantOptions struct + Fit V1VariantGetResponseVariantOptionsFit + Height float64 + JSON v1VariantGetResponseVariantOptionsJSON + Metadata V1VariantGetResponseVariantOptionsMetadata + Width float64 + func (r *V1VariantGetResponseVariantOptions) UnmarshalJSON(data []byte) (err error) + type V1VariantGetResponseVariantOptionsFit string + const V1VariantGetResponseVariantOptionsFitContain + const V1VariantGetResponseVariantOptionsFitCover + const V1VariantGetResponseVariantOptionsFitCrop + const V1VariantGetResponseVariantOptionsFitPad + const V1VariantGetResponseVariantOptionsFitScaleDown + func (r V1VariantGetResponseVariantOptionsFit) IsKnown() bool + type V1VariantGetResponseVariantOptionsMetadata string + const V1VariantGetResponseVariantOptionsMetadataCopyright + const V1VariantGetResponseVariantOptionsMetadataKeep + const V1VariantGetResponseVariantOptionsMetadataNone + func (r V1VariantGetResponseVariantOptionsMetadata) IsKnown() bool + type V1VariantListResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1VariantListResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result Variant + Success V1VariantListResponseEnvelopeSuccess + func (r *V1VariantListResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1VariantListResponseEnvelopeSuccess bool + const V1VariantListResponseEnvelopeSuccessTrue + func (r V1VariantListResponseEnvelopeSuccess) IsKnown() bool + type V1VariantNewParams struct + ID param.Field[string] + NeverRequireSignedURLs param.Field[bool] + Options param.Field[V1VariantNewParamsOptions] + func (r V1VariantNewParams) MarshalJSON() (data []byte, err error) + type V1VariantNewParamsOptions struct + Fit param.Field[V1VariantNewParamsOptionsFit] + Height param.Field[float64] + Metadata param.Field[V1VariantNewParamsOptionsMetadata] + Width param.Field[float64] + func (r V1VariantNewParamsOptions) MarshalJSON() (data []byte, err error) + type V1VariantNewParamsOptionsFit string + const V1VariantNewParamsOptionsFitContain + const V1VariantNewParamsOptionsFitCover + const V1VariantNewParamsOptionsFitCrop + const V1VariantNewParamsOptionsFitPad + const V1VariantNewParamsOptionsFitScaleDown + func (r V1VariantNewParamsOptionsFit) IsKnown() bool + type V1VariantNewParamsOptionsMetadata string + const V1VariantNewParamsOptionsMetadataCopyright + const V1VariantNewParamsOptionsMetadataKeep + const V1VariantNewParamsOptionsMetadataNone + func (r V1VariantNewParamsOptionsMetadata) IsKnown() bool + type V1VariantNewResponse struct + JSON v1VariantNewResponseJSON + Variant V1VariantNewResponseVariant + func (r *V1VariantNewResponse) UnmarshalJSON(data []byte) (err error) + type V1VariantNewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v1VariantNewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V1VariantNewResponse + Success V1VariantNewResponseEnvelopeSuccess + func (r *V1VariantNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V1VariantNewResponseEnvelopeSuccess bool + const V1VariantNewResponseEnvelopeSuccessTrue + func (r V1VariantNewResponseEnvelopeSuccess) IsKnown() bool + type V1VariantNewResponseVariant struct + ID string + JSON v1VariantNewResponseVariantJSON + NeverRequireSignedURLs bool + Options V1VariantNewResponseVariantOptions + func (r *V1VariantNewResponseVariant) UnmarshalJSON(data []byte) (err error) + type V1VariantNewResponseVariantOptions struct + Fit V1VariantNewResponseVariantOptionsFit + Height float64 + JSON v1VariantNewResponseVariantOptionsJSON + Metadata V1VariantNewResponseVariantOptionsMetadata + Width float64 + func (r *V1VariantNewResponseVariantOptions) UnmarshalJSON(data []byte) (err error) + type V1VariantNewResponseVariantOptionsFit string + const V1VariantNewResponseVariantOptionsFitContain + const V1VariantNewResponseVariantOptionsFitCover + const V1VariantNewResponseVariantOptionsFitCrop + const V1VariantNewResponseVariantOptionsFitPad + const V1VariantNewResponseVariantOptionsFitScaleDown + func (r V1VariantNewResponseVariantOptionsFit) IsKnown() bool + type V1VariantNewResponseVariantOptionsMetadata string + const V1VariantNewResponseVariantOptionsMetadataCopyright + const V1VariantNewResponseVariantOptionsMetadataKeep + const V1VariantNewResponseVariantOptionsMetadataNone + func (r V1VariantNewResponseVariantOptionsMetadata) IsKnown() bool + type V1VariantService struct + Options []option.RequestOption + func NewV1VariantService(opts ...option.RequestOption) (r *V1VariantService) + func (r *V1VariantService) Delete(ctx context.Context, accountID string, variantID string, ...) (res *V1VariantDeleteResponseUnion, err error) + func (r *V1VariantService) Edit(ctx context.Context, accountID string, variantID string, ...) (res *V1VariantEditResponse, err error) + func (r *V1VariantService) Get(ctx context.Context, accountID string, variantID string, ...) (res *V1VariantGetResponse, err error) + func (r *V1VariantService) List(ctx context.Context, accountID string, opts ...option.RequestOption) (res *Variant, err error) + func (r *V1VariantService) New(ctx context.Context, accountID string, body V1VariantNewParams, ...) (res *V1VariantNewResponse, err error) + type V2DirectUploadNewParams struct + Expiry param.Field[time.Time] + ID param.Field[string] + Metadata param.Field[interface{}] + RequireSignedURLs param.Field[bool] + func (r V2DirectUploadNewParams) MarshalMultipart() (data []byte, contentType string, err error) + type V2DirectUploadNewResponse struct + ID string + JSON v2DirectUploadNewResponseJSON + UploadURL string + func (r *V2DirectUploadNewResponse) UnmarshalJSON(data []byte) (err error) + type V2DirectUploadNewResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v2DirectUploadNewResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V2DirectUploadNewResponse + Success V2DirectUploadNewResponseEnvelopeSuccess + func (r *V2DirectUploadNewResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V2DirectUploadNewResponseEnvelopeSuccess bool + const V2DirectUploadNewResponseEnvelopeSuccessTrue + func (r V2DirectUploadNewResponseEnvelopeSuccess) IsKnown() bool + type V2DirectUploadService struct + Options []option.RequestOption + func NewV2DirectUploadService(opts ...option.RequestOption) (r *V2DirectUploadService) + func (r *V2DirectUploadService) New(ctx context.Context, accountID string, body V2DirectUploadNewParams, ...) (res *V2DirectUploadNewResponse, err error) + type V2ListParams struct + ContinuationToken param.Field[string] + PerPage param.Field[float64] + SortOrder param.Field[V2ListParamsSortOrder] + func (r V2ListParams) URLQuery() (v url.Values) + type V2ListParamsSortOrder string + const V2ListParamsSortOrderAsc + const V2ListParamsSortOrderDesc + func (r V2ListParamsSortOrder) IsKnown() bool + type V2ListResponse struct + ContinuationToken string + Images []Image + JSON v2ListResponseJSON + func (r *V2ListResponse) UnmarshalJSON(data []byte) (err error) + type V2ListResponseEnvelope struct + Errors []shared.ResponseInfo + JSON v2ListResponseEnvelopeJSON + Messages []shared.ResponseInfo + Result V2ListResponse + Success V2ListResponseEnvelopeSuccess + func (r *V2ListResponseEnvelope) UnmarshalJSON(data []byte) (err error) + type V2ListResponseEnvelopeSuccess bool + const V2ListResponseEnvelopeSuccessTrue + func (r V2ListResponseEnvelopeSuccess) IsKnown() bool + type V2Service struct + DirectUploads *V2DirectUploadService + Options []option.RequestOption + func NewV2Service(opts ...option.RequestOption) (r *V2Service) + func (r *V2Service) List(ctx context.Context, accountID string, query V2ListParams, ...) (res *V2ListResponse, err error) + type Variant struct + JSON variantJSON + Variants VariantVariants + func (r *Variant) UnmarshalJSON(data []byte) (err error) + type VariantVariants struct + Hero VariantVariantsHero + JSON variantVariantsJSON + func (r *VariantVariants) UnmarshalJSON(data []byte) (err error) + type VariantVariantsHero struct + ID string + JSON variantVariantsHeroJSON + NeverRequireSignedURLs bool + Options VariantVariantsHeroOptions + func (r *VariantVariantsHero) UnmarshalJSON(data []byte) (err error) + type VariantVariantsHeroOptions struct + Fit VariantVariantsHeroOptionsFit + Height float64 + JSON variantVariantsHeroOptionsJSON + Metadata VariantVariantsHeroOptionsMetadata + Width float64 + func (r *VariantVariantsHeroOptions) UnmarshalJSON(data []byte) (err error) + type VariantVariantsHeroOptionsFit string + const VariantVariantsHeroOptionsFitContain + const VariantVariantsHeroOptionsFitCover + const VariantVariantsHeroOptionsFitCrop + const VariantVariantsHeroOptionsFitPad + const VariantVariantsHeroOptionsFitScaleDown + func (r VariantVariantsHeroOptionsFit) IsKnown() bool + type VariantVariantsHeroOptionsMetadata string + const VariantVariantsHeroOptionsMetadataCopyright + const VariantVariantsHeroOptionsMetadataKeep + const VariantVariantsHeroOptionsMetadataNone + func (r VariantVariantsHeroOptionsMetadata) IsKnown() bool