constant

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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 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 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 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)

Jump to

Keyboard shortcuts

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