MCPcopy Create free account

hub / github.com/imgproxy/imgproxy / functions

Functions1,844 in github.com/imgproxy/imgproxy

↓ 273 callersMethodSet
Set sets a value for a specific option key.
options/options.go:131
↓ 234 callersMethodParse
Parse parses the environment variable and sets the value
env/desc.go:37
↓ 160 callersMethodClose
()
errorreport/errorreport.go:19
↓ 148 callersMethodRun
Run runs the given pipeline with the given parameters
processing/pipeline.go:75
↓ 132 callersMethodGet
(ctx context.Context, opts *options.Options)
auximageprovider/provider.go:17
↓ 125 callersMethodT
()
testutil/lazy_obj.go:15
↓ 118 callersMethodErrorf
Errorf formats an error message for invalid env var
env/desc.go:98
↓ 82 callersMethodError
Error returns the error message.
errctx/error.go:10
↓ 71 callersFunctionString
String defines string env var descriptor
env/types.go:31
↓ 65 callersMethodFormat
Reader returns a new ReadSeeker for the image data
imagedata/image_data.go:23
↓ 65 callersMethodGetBool
GetBool retrieves a bool value. If the key doesn't exist, it returns the provided default value. If the value exists but is of a different type, it pa
options/options.go:283
↓ 64 callersMethodGET
GET adds GET route
server/router.go:88
↓ 64 callersFunctionGet
Get retrieves a value of the specified type from the options. If the key does not exist, it returns the provided default value. If the value exists bu
options/options.go:93
↓ 61 callersMethodAdd
Add adds a new option with the specified key and returns the OptionArgs for setting its arguments. If the option already exists, it returns the existi
testutil/options_builder.go:43
↓ 61 callersFunctionBool
Bool defines boolean env var descriptor
env/types.go:52
↓ 58 callersMethodParsePath
ParsePath parses the given request path and returns the processing options and image URL
options/parser/processing_options.go:198
↓ 56 callersMethodString
()
xmlparser/name.go:25
↓ 49 callersMethodWriteHeader
WriteHeader writes the HTTP response header. It ensures that all headers are flushed before writing the status code.
server/responsewriter/writer.go:136
↓ 48 callersFunctionNewLazySuiteObj
NewLazySuiteObj creates a new [LazyObj] instance and registers its cleanup function to a provided [LazySuite].
testutil/lasy_suite.go:46
↓ 45 callersMethodGetFloat
GetFloat retrieves a float64 value from the options. If the key does not exist, GetFloat returns the provided default value. If the key value exists b
options/options.go:237
↓ 37 callersFunctionEnsure
Ensure ensures that the returned value is not nil. If the provided pointer is nil, the function calls the provided EnsureFunc to obtain a new value. O
ensure/ensure.go:9
↓ 37 callersFunctionError
()
vips/vips.go:132
↓ 34 callersFunctionNewTextError
NewTextError creates a new [TextError] with the given message and options.
errctx/text_error.go:14
↓ 34 callersFunctionWithPublicMessage
(msg string)
errctx/options.go:21
↓ 33 callersFunctionWithShouldReport
(report bool)
errctx/options.go:27
↓ 33 callersFunctionWithStatusCode
(code int)
errctx/options.go:15
↓ 33 callersMethodWrite
Write writes data to the buffer.
logger/buffer.go:27
↓ 32 callersMethodBackground
()
processing/options.go:138
↓ 32 callersMethodMain
Main returns the main Options if this is a child Options. If this is the main Options, it returns itself.
options/options.go:35
↓ 32 callersMethodWarn
Warn logs a warning with the env var details
env/desc.go:90
↓ 31 callersMethodappend
append appends data to the buffer.
logger/buffer.go:54
↓ 30 callersMethodswapAndUnref
(newImg *C.VipsImage)
vips/vips.go:900
↓ 28 callersMethodLoad
( imgdata imagedata.ImageData, shrink float64, page, pages int, )
vips/vips.go:259
↓ 28 callersMethodReader
Close closes the image data and releases any resources held by it
imagedata/image_data.go:22
↓ 27 callersFunctionInt
Int defines integer env var descriptor
env/types.go:70
↓ 27 callersMethodNewRequest
NewRequest creates a new Request instance from the given user request.
httpheaders/conditionalheaders/factory.go:22
↓ 27 callersMethodprocessImageAndCheck
(tc testCaseParams)
processing/suite_test.go:104
↓ 26 callersFunctionNew
New creates a new Options map
options/options.go:27
↓ 26 callersMethodensureMaxArgs
ensureMaxArgs checks if the number of arguments is as expected
options/parser/parse.go:20
↓ 25 callersMethodHeight
()
processing/options.go:37
↓ 24 callersMethodSetHeaders
SetHeaders adds headers that will be returned by the server. Odd arguments are treated as keys, even arguments as values.
testutil/test_server.go:83
↓ 24 callersMethodString
String returns the contents of the buffer as a string.
logger/buffer.go:33
↓ 23 callersMethodWidth
()
processing/options.go:33
↓ 23 callersFunctionWrap
Wrap creates a new [WrappedError] with the given error and options. It gets the stack trace from the call site. If the provided error already an [Err
errctx/wrapped_error.go:33
↓ 22 callersMethodGetInt
GetInt retrieves an int value from the options. If the key does not exist, GetInt returns the provided default value. If the key exists but the value
options/options.go:191
↓ 22 callersMethodReadAt
ReadAt reads data from the AsyncBuffer at the given offset. Please note that if pause threshold is hit in the middle of the reading, the data beyond
asyncbuffer/buffer.go:236
↓ 21 callersMethodWithGroup
WithGroup returns a new handler with the given group name added.
logger/handler.go:120
↓ 19 callersMethodGetInt
(name string)
vips/vips.go:455
↓ 19 callersFunctionNewError
NewError creates a new [Error] instance wrapping the given errctx.Error and category. If err is nil, it returns nil. If the error or any of its cause
server/errors.go:38
↓ 19 callersFunctionhasOperation
(name string)
vips/vips.go:139
↓ 19 callersFunctionnewInvalidArgumentError
newInvalidArgumentError creates a standardized error for an invalid single argument
options/parser/errors.go:88
↓ 18 callersMethodRead
(p []byte)
imagetype/svg_test.go:17
↓ 18 callersMethodWait
Wait waits for a Tick() to occur after the given cursor value. Returns the new cursor value when awakened. If the cursor has already advanced beyond t
asyncbuffer/cond.go:47
↓ 17 callersMethodBytes
Bytes returns the contents of the buffer as a byte slice.
xmlparser/buffer.go:67
↓ 17 callersMethodClone
Clone creates a deep copy of the Text.
xmlparser/tokens.go:199
↓ 17 callersMethodLen
Len returns the number of bytes written to the buffer.
xmlparser/buffer.go:77
↓ 17 callersMethodSetBody
SetBody sets the body that will be returned by the server
testutil/test_server.go:76
↓ 17 callersMethodWithDocsURL
WithDocsURL sets a custom documentation URL for the env var
env/desc.go:53
↓ 16 callersFunctionScale
(a int, scale float64)
imath/imath.go:24
↓ 16 callersFunctionScaleToEven
(a int, scale float64)
imath/imath.go:32
↓ 16 callersMethodSplit
()
xmlparser/name.go:7
↓ 16 callersMethodsetSyntaxErrorf
setSyntaxErrorf sets a syntax error with the current line number.
xmlparser/decoder.go:877
↓ 15 callersFunctionNew
New creates new buffered reader
bufreader/bufreader.go:26
↓ 15 callersMethodServeHTTP
ServeHTTP serves routes
server/router.go:112
↓ 15 callersMethodWrite
Write writes the HTTP response body. It ensures that all headers are flushed before writing the body.
server/responsewriter/writer.go:145
↓ 14 callersMethodInt
()
imagemeta/iptc/tags.go:448
↓ 14 callersMethodRelease
Release releases the latch, allowing all waiting goroutines to proceed.
asyncbuffer/latch.go:19
↓ 14 callersMethodStatusCode
StatusCode returns the HTTP status code associated with the error.
errctx/error.go:13
↓ 14 callersMethodURL
URL returns the actual URL of the request
fetcher/request.go:116
↓ 14 callersFunctionWithDocsURL
(url string)
errctx/options.go:33
↓ 14 callersFunctioncachedCString
(str string)
vips/cached_c_strings.go:8
↓ 14 callersMethodparseBool
parseBool parses a boolean option value and warns if the value is invalid
options/parser/parse.go:33
↓ 13 callersMethodDistance
Distance calculates the distance between two hashes Returns error if hash types don't match
testutil/image_hash.go:81
↓ 13 callersFunctionNew
New creates a new AsyncBuffer that reads from the given io.ReadCloser in background and closes it when finished. r - io.ReadCloser to read data from
asyncbuffer/buffer.go:86
↓ 13 callersMethodResetLazyObjects
ResetLazyObjects resets all lazy objects created with [NewLazySuiteObj]
testutil/lasy_suite.go:34
↓ 13 callersMethodString
String returns the string representation of the image type.
imagetype/type.go:31
↓ 13 callersMethodWriteByte
WriteByte writes a single byte to the buffer.
xmlparser/buffer.go:48
↓ 12 callersMethodGetObject
(ctx context.Context, input *s3.GetObjectInput, opts ...func(*s3.Options))
storage/s3/s3_client.go:11
↓ 12 callersFunctionGetTypeDesc
GetTypeDesc returns the TypeDesc for the given Type. Returns nil if the type is not registered.
imagetype/registry.go:68
↓ 12 callersMethodRead
Read reads data from the AsyncBuffer.
asyncbuffer/reader.go:16
↓ 12 callersMethodShortName
()
processing/processing_test.go:111
↓ 12 callersFunctionStringSlice
StringSlice defines string slice env var descriptor. Parses a comma-separated list of strings.
env/types.go:110
↓ 12 callersFunctiongbool
(b bool)
vips/vips.go:215
↓ 11 callersMethodDownloadSync
DownloadSync downloads the image synchronously and returns the ImageData and HTTP headers.
imagedata/factory.go:91
↓ 11 callersFunctionDuration
Duration defines duration env var descriptor. Parses an integer as seconds.
env/types.go:90
↓ 11 callersFunctionEnum
Enum defines enum value env var descriptor that maps string keys to values of type T. The format string is generated from the map keys.
env/types.go:41
↓ 11 callersMethodError
Size returns the size of the image data in bytes
imagedata/image_data.go:25
↓ 11 callersMethodMonitoring
()
handlers/processing/handler.go:36
↓ 11 callersMethodRead
Read reads data from the testReader, simulating a slow read and a potential failure
asyncbuffer/buffer_test.go:54
↓ 11 callersFunctionRegisterType
RegisterType registers a new image type in the global registry. It panics if the type already exists (i.e., if a TypeDesc is already registered for th
imagetype/registry.go:62
↓ 11 callersMethodReset
Reset truncates the buffer.
xmlparser/buffer.go:33
↓ 11 callersMethoddiscard
discard discards the next n bytes from the reader.
xmlparser/decoder.go:848
↓ 11 callersFunctiongenerateSourceData
generateSourceData generates a byte slice with 4.5 chunks of data
asyncbuffer/buffer_test.go:109
↓ 10 callersMethodErrorZeroOrNegative
ErrorZeroOrNegative formats an error message for zero or less env var
env/desc.go:80
↓ 10 callersMethodExt
Ext returns the file extension for the image type.
imagetype/type.go:41
↓ 10 callersMethodLen
Len returns the length of the hash data (excluding type byte)
testutil/image_hash.go:167
↓ 10 callersFunctionNewObjectNotFound
NewObjectNotFound creates a new Reader with a 404 Not Found status.
storage/reader.go:56
↓ 10 callersFunctionRegisterMagicBytes
RegisterMagicBytes registers magic bytes for a specific image type Magic byte detectors are always tried before custom detectors
imagetype/registry.go:124
↓ 10 callersMethodRemove
Remove removes the last n bytes.
xmlparser/buffer.go:60
↓ 10 callersMethodWrite
(p []byte)
xmlparser/buffer.go:37
next →1–100 of 1,844, ranked by callers