constant

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValueOf

func ValueOf[T Constant[T]]() T

ValueOf gives the default value of a constant from its type. It's helpful when constructing constants as variants in a one-of. Note that empty structs are marshalled by default. Usage: constant.ValueOf[constant.Foo]()

Types

type AIAutoDescription

type AIAutoDescription string // Always "ai-auto-description"

func (AIAutoDescription) Default

func (AIAutoDescription) MarshalJSON

func (c AIAutoDescription) MarshalJSON() ([]byte, error)

type AITasks added in v2.1.0

type AITasks string // Always "ai-tasks"

func (AITasks) Default added in v2.1.0

func (c AITasks) Default() AITasks

func (AITasks) MarshalJSON added in v2.1.0

func (c AITasks) MarshalJSON() ([]byte, error)

type Abs

type Abs string // Always "abs"

func (Abs) Default

func (c Abs) Default() Abs

func (Abs) MarshalJSON

func (c Abs) MarshalJSON() ([]byte, error)

type Akamai

type Akamai string // Always "AKAMAI"

func (Akamai) Default

func (c Akamai) Default() Akamai

func (Akamai) MarshalJSON

func (c Akamai) MarshalJSON() ([]byte, error)

type AkeneoPim

type AkeneoPim string // Always "AKENEO_PIM"

func (AkeneoPim) Default

func (c AkeneoPim) Default() AkeneoPim

func (AkeneoPim) MarshalJSON

func (c AkeneoPim) MarshalJSON() ([]byte, error)

type All

type All string // Always "all"

func (All) Default

func (c All) Default() All

func (All) MarshalJSON

func (c All) MarshalJSON() ([]byte, error)

type AzureBlob

type AzureBlob string // Always "AZURE_BLOB"

func (AzureBlob) Default

func (c AzureBlob) Default() AzureBlob

func (AzureBlob) MarshalJSON

func (c AzureBlob) MarshalJSON() ([]byte, error)

type Cloudinary

type Cloudinary string // Always "CLOUDINARY"

func (Cloudinary) Default

func (c Cloudinary) Default() Cloudinary

func (Cloudinary) MarshalJSON

func (c Cloudinary) MarshalJSON() ([]byte, error)

type CloudinaryBackup

type CloudinaryBackup string // Always "CLOUDINARY_BACKUP"

func (CloudinaryBackup) Default

func (c CloudinaryBackup) Default() CloudinaryBackup

func (CloudinaryBackup) MarshalJSON

func (c CloudinaryBackup) MarshalJSON() ([]byte, error)

type Constant

type Constant[T any] interface {
	Default() T
}

type FileCreated added in v2.4.0

type FileCreated string // Always "file.created"

func (FileCreated) Default added in v2.4.0

func (c FileCreated) Default() FileCreated

func (FileCreated) MarshalJSON added in v2.4.0

func (c FileCreated) MarshalJSON() ([]byte, error)

type FileDeleted added in v2.4.0

type FileDeleted string // Always "file.deleted"

func (FileDeleted) Default added in v2.4.0

func (c FileDeleted) Default() FileDeleted

func (FileDeleted) MarshalJSON added in v2.4.0

func (c FileDeleted) MarshalJSON() ([]byte, error)

type FileUpdated added in v2.4.0

type FileUpdated string // Always "file.updated"

func (FileUpdated) Default added in v2.4.0

func (c FileUpdated) Default() FileUpdated

func (FileUpdated) MarshalJSON added in v2.4.0

func (c FileUpdated) MarshalJSON() ([]byte, error)

type FileVersionCreated added in v2.4.0

type FileVersionCreated string // Always "file-version.created"

func (FileVersionCreated) Default added in v2.4.0

func (FileVersionCreated) MarshalJSON added in v2.4.0

func (c FileVersionCreated) MarshalJSON() ([]byte, error)

type FileVersionDeleted added in v2.4.0

type FileVersionDeleted string // Always "file-version.deleted"

func (FileVersionDeleted) Default added in v2.4.0

func (FileVersionDeleted) MarshalJSON added in v2.4.0

func (c FileVersionDeleted) MarshalJSON() ([]byte, error)

type Gcs

type Gcs string // Always "GCS"

func (Gcs) Default

func (c Gcs) Default() Gcs

func (Gcs) MarshalJSON

func (c Gcs) MarshalJSON() ([]byte, error)

type GifToVideo

type GifToVideo string // Always "gif-to-video"

func (GifToVideo) Default

func (c GifToVideo) Default() GifToVideo

func (GifToVideo) MarshalJSON

func (c GifToVideo) MarshalJSON() ([]byte, error)

type Image

type Image string // Always "image"

func (Image) Default

func (c Image) Default() Image

func (Image) MarshalJSON

func (c Image) MarshalJSON() ([]byte, error)

type Imgix

type Imgix string // Always "IMGIX"

func (Imgix) Default

func (c Imgix) Default() Imgix

func (Imgix) MarshalJSON

func (c Imgix) MarshalJSON() ([]byte, error)

type Max

type Max string // Always "max"

func (Max) Default

func (c Max) Default() Max

func (Max) MarshalJSON

func (c Max) MarshalJSON() ([]byte, error)

type RemoveBg

type RemoveBg string // Always "remove-bg"

func (RemoveBg) Default

func (c RemoveBg) Default() RemoveBg

func (RemoveBg) MarshalJSON

func (c RemoveBg) MarshalJSON() ([]byte, error)

type S3

type S3 string // Always "S3"

func (S3) Default

func (c S3) Default() S3

func (S3) MarshalJSON

func (c S3) MarshalJSON() ([]byte, error)

type S3Compatible

type S3Compatible string // Always "S3_COMPATIBLE"

func (S3Compatible) Default

func (c S3Compatible) Default() S3Compatible

func (S3Compatible) MarshalJSON

func (c S3Compatible) MarshalJSON() ([]byte, error)

type SavedExtension added in v2.1.0

type SavedExtension string // Always "saved-extension"

func (SavedExtension) Default added in v2.1.0

func (c SavedExtension) Default() SavedExtension

func (SavedExtension) MarshalJSON added in v2.1.0

func (c SavedExtension) MarshalJSON() ([]byte, error)

type SelectMetadata added in v2.1.0

type SelectMetadata string // Always "select_metadata"

func (SelectMetadata) Default added in v2.1.0

func (c SelectMetadata) Default() SelectMetadata

func (SelectMetadata) MarshalJSON added in v2.1.0

func (c SelectMetadata) MarshalJSON() ([]byte, error)

type SelectTags added in v2.1.0

type SelectTags string // Always "select_tags"

func (SelectTags) Default added in v2.1.0

func (c SelectTags) Default() SelectTags

func (SelectTags) MarshalJSON added in v2.1.0

func (c SelectTags) MarshalJSON() ([]byte, error)

type SolidColor

type SolidColor string // Always "solidColor"

func (SolidColor) Default

func (c SolidColor) Default() SolidColor

func (SolidColor) MarshalJSON

func (c SolidColor) MarshalJSON() ([]byte, error)

type Subtitle

type Subtitle string // Always "subtitle"

func (Subtitle) Default

func (c Subtitle) Default() Subtitle

func (Subtitle) MarshalJSON

func (c Subtitle) MarshalJSON() ([]byte, error)

type Text

type Text string // Always "text"

func (Text) Default

func (c Text) Default() Text

func (Text) MarshalJSON

func (c Text) MarshalJSON() ([]byte, error)

type Thumbnail

type Thumbnail string // Always "thumbnail"

func (Thumbnail) Default

func (c Thumbnail) Default() Thumbnail

func (Thumbnail) MarshalJSON

func (c Thumbnail) MarshalJSON() ([]byte, error)

type Transformation

type Transformation string // Always "transformation"

func (Transformation) Default

func (c Transformation) Default() Transformation

func (Transformation) MarshalJSON

func (c Transformation) MarshalJSON() ([]byte, error)

type UploadPostTransformError

type UploadPostTransformError string // Always "upload.post-transform.error"

func (UploadPostTransformError) Default

func (UploadPostTransformError) MarshalJSON

func (c UploadPostTransformError) MarshalJSON() ([]byte, error)

type UploadPostTransformSuccess

type UploadPostTransformSuccess string // Always "upload.post-transform.success"

func (UploadPostTransformSuccess) Default

func (UploadPostTransformSuccess) MarshalJSON

func (c UploadPostTransformSuccess) MarshalJSON() ([]byte, error)

type UploadPreTransformError

type UploadPreTransformError string // Always "upload.pre-transform.error"

func (UploadPreTransformError) Default

func (UploadPreTransformError) MarshalJSON

func (c UploadPreTransformError) MarshalJSON() ([]byte, error)

type UploadPreTransformSuccess

type UploadPreTransformSuccess string // Always "upload.pre-transform.success"

func (UploadPreTransformSuccess) Default

func (UploadPreTransformSuccess) MarshalJSON

func (c UploadPreTransformSuccess) MarshalJSON() ([]byte, error)

type Video

type Video string // Always "video"

func (Video) Default

func (c Video) Default() Video

func (Video) MarshalJSON

func (c Video) MarshalJSON() ([]byte, error)

type VideoTransformationAccepted

type VideoTransformationAccepted string // Always "video.transformation.accepted"

func (VideoTransformationAccepted) Default

func (VideoTransformationAccepted) MarshalJSON

func (c VideoTransformationAccepted) MarshalJSON() ([]byte, error)

type VideoTransformationError

type VideoTransformationError string // Always "video.transformation.error"

func (VideoTransformationError) Default

func (VideoTransformationError) MarshalJSON

func (c VideoTransformationError) MarshalJSON() ([]byte, error)

type VideoTransformationReady

type VideoTransformationReady string // Always "video.transformation.ready"

func (VideoTransformationReady) Default

func (VideoTransformationReady) MarshalJSON

func (c VideoTransformationReady) MarshalJSON() ([]byte, error)

type WebFolder

type WebFolder string // Always "WEB_FOLDER"

func (WebFolder) Default

func (c WebFolder) Default() WebFolder

func (WebFolder) MarshalJSON

func (c WebFolder) MarshalJSON() ([]byte, error)

type WebProxy

type WebProxy string // Always "WEB_PROXY"

func (WebProxy) Default

func (c WebProxy) Default() WebProxy

func (WebProxy) MarshalJSON

func (c WebProxy) MarshalJSON() ([]byte, error)

type YesNo added in v2.1.0

type YesNo string // Always "yes_no"

func (YesNo) Default added in v2.1.0

func (c YesNo) Default() YesNo

func (YesNo) MarshalJSON added in v2.1.0

func (c YesNo) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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