Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws/smithy-go
/ functions
Functions
4,329 in github.com/aws/smithy-go
⨍
Functions
4,329
◇
Types & classes
889
↓ 1 callers
Method
ErrorSet
ErrorSet returns a channel that is closed when an error occurs.
transport/http/eventstream.go:122
↓ 1 callers
Function
EscapePath
EscapePath escapes part of a URL path in Amazon style.
encoding/httpbinding/path_replace.go:82
↓ 1 callers
Method
Expired
Expired returns if the token's Expires time is before or equal to the time provided. If CanExpires is false, Expired will always return false.
auth/bearer/token.go:18
↓ 1 callers
Function
ExtractElement
ExtractElement finds the first occurrence of the named element in the XML and returns it as raw bytes, including the element's opening and closing tag
transport/http/protocol/internal/xml/extract.go:33
↓ 1 callers
Method
Field
Field Returns the field and context the error occurred.
validation.go:92
↓ 1 callers
Method
Filepath
()
middleware/generate.go:382
↓ 1 callers
Function
FinalizeMiddlewareFunc
FinalizeMiddlewareFunc returns a FinalizeMiddleware with the unique ID provided, and the func to be invoked.
middleware/step_finalize.go:47
↓ 1 callers
Method
Float32
Float32 returns the number parsed as a 32-bit float, returns a float64.
document/document.go:209
↓ 1 callers
Function
Float32Map
Float32Map returns a map of float32 pointers from the values passed in.
ptr/to_ptr.go:404
↓ 1 callers
Function
Float32Slice
Float32Slice returns a slice of float32 pointers from the values passed in.
ptr/to_ptr.go:392
↓ 1 callers
Method
Float64Counter
floating-point/synchronous
metrics/metrics.go:37
↓ 1 callers
Method
Float64Gauge
(name string, opts ...InstrumentOption)
metrics/metrics.go:39
↓ 1 callers
Function
Float64Map
Float64Map returns a map of float64 pointers from the values passed in.
ptr/to_ptr.go:433
↓ 1 callers
Function
Float64Slice
Float64Slice returns a slice of float64 pointers from the values passed in.
ptr/to_ptr.go:421
↓ 1 callers
Method
Float64UpDownCounter
(name string, opts ...InstrumentOption)
metrics/metrics.go:38
↓ 1 callers
Method
Forget
Forget tells the singleflight to forget about a key. Future calls to Do for this key will call the function rather than waiting for an earlier call t
internal/sync/singleflight/singleflight.go:203
↓ 1 callers
Function
FormatDateTime
FormatDateTime formats value as a date-time, (RFC3339 section 5.6) Example: 1985-04-12T23:20:50.52Z
time/time.go:30
↓ 1 callers
Function
FormatEpochSeconds
FormatEpochSeconds returns value as a Unix time in seconds with with decimal precision Example: 1515531081.123
time/time.go:69
↓ 1 callers
Function
FormatHTTPDate
FormatHTTPDate formats value as a http-date, (RFC 7231#section-7.1.1.1 IMF-fixdate) Example: Tue, 29 Apr 2014 18:30:38 GMT
time/time.go:49
↓ 1 callers
Method
Get
Get attempts to retrieve the value the key points to. Returns nil if the key was not found. Panics if key type is not comparable.
properties.go:24
↓ 1 callers
Method
Get
Get retrieves the middleware identified by id. If the middleware is not present, returns false.
middleware/step_initialize.go:120
↓ 1 callers
Method
Get
Get consumes the given reader into a buffer from the pool, returning that buffer.
internal/sync/buffer_pool.go:37
↓ 1 callers
Method
Get
Get returns the Value associated with the header. Nil is returned if the value does not exist.
eventstream/header.go:36
↓ 1 callers
Function
GetAuthOptions
GetAuthOptions gets auth Options from Properties.
auth/option.go:17
↓ 1 callers
Function
GetDisableDoubleEncoding
GetDisableDoubleEncoding gets whether the payload is unsigned from Properties.
transport/http/properties.go:72
↓ 1 callers
Function
GetErrorResponseComponents
GetErrorResponseComponents returns the error fields from an xml error response body
encoding/xml/error_utils.go:17
↓ 1 callers
Method
GetIdentity
GetIdentity returns AnonymousIdentity.
auth/identity.go:45
↓ 1 callers
Method
GetIdentity
(context.Context, smithy.Properties)
aws-http-auth-schemes/identity/identity.go:34
↓ 1 callers
Function
GetIsContentTypeDefaultValue
GetIsContentTypeDefaultValue returns if the content-type HTTP header on the request is a default value that was auto assigned by an operation serializ
transport/http/middleware_headers.go:25
↓ 1 callers
Function
GetIsUnsignedPayload
GetIsUnsignedPayload gets whether the payload is unsigned from Properties.
transport/http/properties.go:61
↓ 1 callers
Method
GetMRAP
(ctx context.Context, in *GetMRAPInput)
aws-http-auth/sigv4a/e2e_test.go:230
↓ 1 callers
Function
GetOperationName
GetOperationName retrieves the operation name from the context. This is typically the operation shape's name from its Smithy model.
middleware/context.go:38
↓ 1 callers
Function
GetOperationTracer
GetOperationTracer returns the embedded operation-scoped Tracer on a Context. The boolean in the return indicates whether a Tracer was actually in th
tracing/context.go:71
↓ 1 callers
Method
GetOrder
GetOrder returns the item in the order it should be invoked in.
middleware/ordered_group.go:131
↓ 1 callers
Method
GetPayloadStream
()
serde.go:113
↓ 1 callers
Function
GetPreserveExpiredValues
GetPreserveExpiredValues looks up, and returns the PreserveExpressValues value in the context. Returning true if enabled, false otherwise.
context/suppress_expired.go:75
↓ 1 callers
Function
GetProtocolErrorInfo
GetProtocolErrorInfo decodes error type/message from a JSON response body.
transport/http/protocol/internal/json/error.go:21
↓ 1 callers
Function
GetScalars
()
ptr/gen_scalars.go:8
↓ 1 callers
Function
GetSigV4ASigningName
GetSigV4ASigningName gets the v4a signing name from Properties.
transport/http/properties.go:39
↓ 1 callers
Function
GetSigV4ASigningRegions
GetSigV4ASigningRegion gets the v4a signing region set from Properties.
transport/http/properties.go:50
↓ 1 callers
Function
GetSigV4SigningName
GetSigV4SigningName gets the signing name from Properties.
transport/http/properties.go:17
↓ 1 callers
Function
GetSigV4SigningRegion
GetSigV4SigningRegion gets the signing region from Properties.
transport/http/properties.go:28
↓ 1 callers
Function
Getu4
Getu4 is copied from Go stdlib.
transport/http/protocol/internal/json/internal/stdlib/stdlib.go:21
↓ 1 callers
Method
HTTPResponse
HTTPResponse returns the HTTP response received from the service.
transport/http/response.go:25
↓ 1 callers
Method
HTTPStatusCode
HTTPStatusCode returns the HTTP response status code received from the service.
transport/http/response.go:22
↓ 1 callers
Method
Handle
Handle implements the middleware Handler interface, that will invoke the underlying HTTP client. Requires the input to be a Smithy *Request. Returns a
transport/http/client.go:61
↓ 1 callers
Method
HandleBuild
HandleBuild implements BuildHandler, converts types and delegates to underlying generic handler.
middleware/step_build.go:268
↓ 1 callers
Method
HandleBuild
HandleBuild adds behavior to compute md5 checksum and add content-md5 header on http request
transport/http/checksum_middleware.go:29
↓ 1 callers
Method
HandleBuild
HandleBuild adds the length of the serialized request to the HTTP header if the length can be determined.
transport/http/middleware_content_length.go:70
↓ 1 callers
Method
HandleBuild
(ctx context.Context, input middleware.BuildInput, next middleware.BuildHandler, )
private/protocol/middleware_capture_request.go:29
↓ 1 callers
Method
HandleDeserialize
HandleDeserialize implements DeserializeHandler, converts types and delegates to underlying generic handler.
middleware/step_deserialize.go:269
↓ 1 callers
Method
HandleDeserialize
HandleDeserialize will log the request and response HTTP messages if configured accordingly.
transport/http/middleware_http_logging.go:28
↓ 1 callers
Method
HandleFinalize
HandleFinalize implements FinalizeHandler, converts types and delegates to underlying generic handler.
middleware/step_finalize.go:268
↓ 1 callers
Method
HandleInitialize
HandleInitialize implements InitializeHandler, converts types and delegates to underlying generic handler.
middleware/step_initialize.go:269
↓ 1 callers
Method
HandleMiddleware
Performs the middleware's handling of the input, returning the output, or error. The middleware can invoke the next Handler if handling should continu
middleware/middleware.go:38
↓ 1 callers
Method
HandleSerialize
HandleSerialize implements SerializeHandler, converts types and delegates to underlying generic handler.
middleware/step_serialize.go:275
↓ 1 callers
Method
Has
Has returns whether the key exists in the metadata. Panics if the key type is not comparable.
middleware/metadata.go:59
↓ 1 callers
Function
HasHeader
HasHeader compares the header values and identifies if the actual header set includes all values specified in the expect set. Returns an error if not.
testing/rest.go:11
↓ 1 callers
Method
HasHeader
HasHeader returns if a header with the key specified exists with one or more value.
encoding/httpbinding/encode.go:100
↓ 1 callers
Function
HasHeaderKeys
HasHeaderKeys validates that header set contains all keys expected. Returns an error if a header key is not in the header set.
testing/rest.go:53
↓ 1 callers
Function
HasQuery
HasQuery validates that the expected set of query items are present in the actual set. Returns an error if any of the expected set are not found in th
testing/rest.go:138
↓ 1 callers
Method
HasQuery
HasQuery returns if a query with the key specified exists with one or more values.
encoding/httpbinding/encode.go:121
↓ 1 callers
Function
HasQueryKeys
HasQueryKeys validates that the actual set of query items contains the keys provided. Returns an error if any key is not found.
testing/rest.go:172
↓ 1 callers
Method
Headers
Headers returns a Header used for encoding headers with the given prefix
encoding/httpbinding/encode.go:91
↓ 1 callers
Function
InitializeMiddlewareFunc
InitializeMiddlewareFunc returns a InitializeMiddleware with the unique ID provided, and the func to be invoked.
middleware/step_initialize.go:48
↓ 1 callers
Method
Insert
Insert injects the middleware relative to an existing middleware ID. Returns error if the original middleware does not exist, or the middleware being
middleware/step_initialize.go:155
↓ 1 callers
Function
Int16Map
Int16Map returns a map of int16 pointers from the values passed in.
ptr/to_ptr.go:172
↓ 1 callers
Function
Int16Slice
Int16Slice returns a slice of int16 pointers from the values passed in.
ptr/to_ptr.go:160
↓ 1 callers
Function
Int32Map
Int32Map returns a map of int32 pointers from the values passed in.
ptr/to_ptr.go:201
↓ 1 callers
Function
Int32Slice
Int32Slice returns a slice of int32 pointers from the values passed in.
ptr/to_ptr.go:189
↓ 1 callers
Function
Int63n
Int63n returns a int64 between zero and value of max, read from an io.Reader source.
rand/rand.go:18
↓ 1 callers
Method
Int64Counter
integer/synchronous
metrics/metrics.go:26
↓ 1 callers
Method
Int64Gauge
(name string, opts ...InstrumentOption)
metrics/metrics.go:28
↓ 1 callers
Method
Int64Histogram
(name string, opts ...InstrumentOption)
metrics/metrics.go:29
↓ 1 callers
Function
Int64Map
Int64Map returns a map of int64 pointers from the values passed in.
ptr/to_ptr.go:230
↓ 1 callers
Function
Int64Slice
Int64Slice returns a slice of int64 pointers from the values passed in.
ptr/to_ptr.go:218
↓ 1 callers
Function
Int8Map
Int8Map returns a map of int8 pointers from the values passed in.
ptr/to_ptr.go:143
↓ 1 callers
Function
Int8Slice
Int8Slice returns a slice of int8 pointers from the values passed in.
ptr/to_ptr.go:131
↓ 1 callers
Function
IntMap
IntMap returns a map of int pointers from the values passed in.
ptr/to_ptr.go:114
↓ 1 callers
Function
IntSlice
IntSlice returns a slice of int pointers from the values passed in.
ptr/to_ptr.go:102
↓ 1 callers
Method
IsHTTPS
IsHTTPS returns if the request is HTTPS. Returns false if no endpoint URL is set.
transport/http/request.go:37
↓ 1 callers
Method
IsSigned
(string)
aws-http-auth/v4/v4.go:60
↓ 1 callers
Method
IsUnitShape
IsUnitShape returns true if the serialized content represents a Unit shape (a struct with no defined input, marked with the UnitShape trait).
transport/http/protocol/internal/cbor/shape_serializer.go:47
↓ 1 callers
Function
IsValidHostLabel
IsValidHostLabel returns if the input is a single valid [RFC 1123] host label. If allowSubDomains is true, will allow validation to include nested hos
endpoints/private/rulesfn/uri.go:18
↓ 1 callers
Function
JoinPath
JoinPath returns an absolute URL path composed of the two paths provided. Enforces that the returned path begins with '/'. If added path is empty the
transport/http/url.go:8
↓ 1 callers
Function
JoinRawQuery
JoinRawQuery returns an absolute raw query expression. Any duplicate '&' will be collapsed to single separator between values.
transport/http/url.go:28
↓ 1 callers
Method
Len
Len returns the number of invalid parameter errors
validation.go:39
↓ 1 callers
Method
List
List returns a list of all middleware in the stack by step.
middleware/stack.go:113
↓ 1 callers
Method
Load
(t interface{})
document/internal/serde/field_cache.go:14
↓ 1 callers
Method
LoadOrStore
(t interface{}, fs *CachedFields)
document/internal/serde/field_cache.go:21
↓ 1 callers
Method
Logf
Logf logs the given classification and message to the underlying logger.
logging/logger.go:69
↓ 1 callers
Method
LookupEntry
LookupEntry returns the registry entry for the given shape ID.
type_registry.go:35
↓ 1 callers
Function
NewAnonymousScheme
NewAnonymousScheme returns the anonymous HTTP auth scheme.
transport/http/auth_schemes.go:11
↓ 1 callers
Function
NewAuthenticationMiddleware
NewAuthenticationMiddleware returns an initialized AuthenticationMiddleware.
auth/bearer/middleware.go:38
↓ 1 callers
Function
NewBufferPool
NewBufferPool returns a buffer pool ready for use.
internal/sync/buffer_pool.go:29
↓ 1 callers
Function
NewBuildStep
NewBuildStep returns an BuildStep ready to have middleware for build added to it.
middleware/step_build.go:85
↓ 1 callers
Function
NewClientHandler
NewClientHandler returns an initialized middleware handler for the client. Deprecated: Use [NewClientHandlerWithOptions].
transport/http/client.go:39
↓ 1 callers
Function
NewClientHandlerWithOptions
NewClientHandlerWithOptions returns an initialized middleware handler for the client with applied options.
transport/http/client.go:45
↓ 1 callers
Function
NewDeserializeStep
NewDeserializeStep returns an DeserializeStep ready to have middleware for deserialize added to it.
middleware/step_deserialize.go:86
↓ 1 callers
Function
NewEncoderWithRawPath
NewHTTPBindingEncoder creates a new encoder from the passed in request. All query and header values will be added on top of the request's existing val
encoding/httpbinding/encode.go:39
← previous
next →
1,101–1,200 of 4,329, ranked by callers