api

package
v1.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api has type definitions for cloudinary

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudinaryEncoder

type CloudinaryEncoder interface {
	// FromStandardPath takes a / separated path in Standard encoding
	// and converts it to a / separated path in this encoding.
	FromStandardPath(string) string
	// FromStandardName takes name in Standard encoding and converts
	// it in this encoding.
	FromStandardName(string) string
	// ToStandardPath takes a / separated path in this encoding
	// and converts it to a / separated path in Standard encoding.
	ToStandardPath(string) string
	// ToStandardName takes name in this encoding and converts
	// it in Standard encoding.
	ToStandardName(string, string) string
	// Encoded root of the remote (as passed into NewFs)
	FromStandardFullPath(string) string
}

CloudinaryEncoder extends the built-in encoder

type UpdateOptions

type UpdateOptions struct {
	PublicID     string
	ResourceType string
	DeliveryType string
	AssetFolder  string
	DisplayName  string
}

UpdateOptions was created to pass options from Update to Put

func (*UpdateOptions) Header

func (o *UpdateOptions) Header() (string, string)

Header formats the option as a string

func (*UpdateOptions) Mandatory

func (o *UpdateOptions) Mandatory() bool

Mandatory returns whether the option must be parsed or can be ignored

func (*UpdateOptions) String

func (o *UpdateOptions) String() string

String formats the option into human-readable form

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL