Documentation ¶
Index ¶
- type Cloudinary
- func New() (*Cloudinary, error)
- func NewFromConfiguration(configuration config.Configuration) (*Cloudinary, error)
- func NewFromOAuthToken(cloud string, oAuthToken string) (*Cloudinary, error)
- func NewFromParams(cloud string, key string, secret string) (*Cloudinary, error)
- func NewFromURL(cloudinaryURL string) (*Cloudinary, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cloudinary ¶
type Cloudinary struct { Config config.Configuration Admin admin.API Upload uploader.API Logger *logger.Logger }
Cloudinary main struct
func New ¶ added in v1.0.0
func New() (*Cloudinary, error)
New returns a new Cloudinary instance from environment variable.
func NewFromConfiguration ¶ added in v1.0.0
func NewFromConfiguration(configuration config.Configuration) (*Cloudinary, error)
NewFromConfiguration returns a new Cloudinary instance from the provided configuration.
func NewFromOAuthToken ¶ added in v1.6.0
func NewFromOAuthToken(cloud string, oAuthToken string) (*Cloudinary, error)
NewFromOAuthToken returns a new Cloudinary instance from the provided cloud name and OAuth token.
func NewFromParams ¶ added in v1.0.0
func NewFromParams(cloud string, key string, secret string) (*Cloudinary, error)
NewFromParams returns a new Cloudinary instance from the provided parameters.
func NewFromURL ¶ added in v1.0.0
func NewFromURL(cloudinaryURL string) (*Cloudinary, error)
NewFromURL returns a new Cloudinary instance from a cloudinary url.
func (Cloudinary) File ¶ added in v1.2.0
func (c Cloudinary) File(publicID string) (*asset.Asset, error)
File creates a new asset.File instance.
func (Cloudinary) Image ¶ added in v1.2.0
func (c Cloudinary) Image(publicID string) (*asset.Asset, error)
Image creates a new asset.Image instance.
Directories ¶
Path | Synopsis |
---|---|
Package api contains packages used for accessing Cloudinary API functionality.
|
Package api contains packages used for accessing Cloudinary API functionality. |
admin
Package admin is used for accessing Cloudinary Admin API functionality.
|
Package admin is used for accessing Cloudinary Admin API functionality. |
admin/metadata
Package metadata defines the structured metadata.
|
Package metadata defines the structured metadata. |
uploader
Package uploader is used for accessing Cloudinary Upload API functionality.
|
Package uploader is used for accessing Cloudinary Upload API functionality. |
Package config defines the Cloudinary configuration.
|
Package config defines the Cloudinary configuration. |
example
module
|
|
gen
|
|
internal
|
|
Package logger defines the Cloudinary Logger
|
Package logger defines the Cloudinary Logger |
Package transformation defines Cloudinary Transformation.
|
Package transformation defines Cloudinary Transformation. |
Click to show internal directories.
Click to hide internal directories.