package
2.9.0
Repository: https://github.com/cloudinary/cloudinary-go.git
Documentation: pkg.go.dev

# Packages

Package admin is used for accessing Cloudinary Admin API functionality.
Package uploader is used for accessing Cloudinary Upload API functionality.

# Functions

BaseURL is the base API url.
Bool returns a pointer for the provided boolean.
BuildPath builds (joins) the URL path from the provided parts.
DeferredClose is a wrapper around io.Closer.Close method.
GetUserAgent provides the UserAgent string that is passed to the Cloudinary servers.
HandleRawResponse sets a raw Response field value (JSON) in the Result structs that support it, for future proofing.
IsBase64Data checks whether base64Candidate represents a valid base64 encoded string.
IsLocalFilePath determines whether the provided path can be a local file.
IsValidURL checks whether urlCandidate string is a valid URL.
MarshalJSONRaw marshals JSON without HTML characters escaping, which is enabled in the standard library.
ReMarshalJSON unmarshals and then marshals data - as the result the data is sorted by key.
SignParameters signs parameters using the provided secret.
SignParametersUsingAlgo signs parameters using the provided secret and sign algorithm.
StructToParams serializes struct to url.Values, which can be further sent to the http client.
TimePtr returns a pointer for the provided time.Time.

# Constants

All is the all asset type.
Animoto is the animoto delivery type.
Anonymous allows public access to the asset.
Approved is the approved moderation status.
Authenticated is the delivery type.
Auto is the auto asset type.
Dailymotion is the daily motion delivery type.
Facebook is the facebook delivery type.
Fetch is the fetch delivery type.
File is the raw asset type.
Gravatar is the gravatar delivery type.
Hulu is the hulu delivery type.
Image is the image asset type.
Multi is the multi delivery type.
Pending is the pending moderation status.
Private is the private delivery type.
Public is the delivery type.
Rejected is the rejected moderation status.
Sprite is the sprite delivery type.
Text is the text delivery type.
Token requires either token-based authentication or cookie-based authentication for accessing the asset.
Twitter is the twitter delivery type.
TwitterName is the twitter name delivery type.
Upload is the upload delivery type.
Version is the Cloudinary Go package version.
Video is the video asset type.
Vimeo is the vimeo delivery type.
Worldstarhiphop is the world star hip hop delivery type.
Youtube is the youtube delivery type.

# Variables

UserAgent contains information about the SDK user agent.
UserPlatform provides additional information to be passed with the UserAgent, e.g.

# Structs

AccessControlRule stores parameters for the asset access management.
BriefAssetResult represents a partial asset result that is returned when assets are listed.
ErrorResp is the failed api request main struct.
LastUpdated represents the details of the asset last updated time.

# Type aliases

AccessControl represents access control params.
AccessType represents the access type for the asset.
AssetType is the type of the asset.
CldAPIArray is not just an alias, in addition it has a custom MarshalJSON() for serialisation purposes.
CldAPIMap is not just an alias, in addition it has a custom MarshalJSON() for serialisation purposes.
Coordinates represents coordinates on the asset.
DeliveryType is the delivery type of the asset.
EndPoint represents the API endpoint.
HookExecution is the result of a hook execution.
Metadata is the Cloudinary structured metadata.
ModerationStatus is the moderation status of the asset.
Option is the optional parameters custom struct.