bend-kit-sigv4
Search uses release 0.11.0.1 · 168 definitions
Definitions (168)
- type CredentialsText (path, query, header values) is a String of code points; non-ASCII is sent as UTF-8.
- def utf8.c3Code points to UTF-8 octets, one Char per octet.
- def utf8.c2
- def utf8.c1
- def utf8.go
- def utf8
- def encodeSigV4 URI encoding of text: UTF-8, then every octet but the unreserved ones as %XX.
- def dec.of
- def normA wire component, re-encoded.
- def norms
- def wire.segsNon-S3 services encode the wire path a second time; '%' becomes '%25'.
- def dots.segCanonical URI (RFC 3986 §5.2.4 for services other than s3): "" and "." segments drop, ".." pops.
- def dots
- def uri.slash
- def uri.dots
- def uri.s3S3 signs the path as sent: each segment re-encoded, nothing removed.
- def uri.if
- def uri
- def pairCanonical query: split on '&', each "k=v" (a bare "k" is "k="), re-encoded, sorted by key then value.
- def pairs.if
- def pairs
- def pair.le.of
- def pair.le
- def pairs.show
- def query
- def squash.ifCanonical headers: lowercase names, trimmed values with space runs squashed, sorted by name, and a repeated name's values joined by ',' in the order given.
- def squash
- def hdrs.low
- def name.le
- def grp.if
- def grp.add
- def grp
- def headers
- def names
- def lines
- def signedThe SignedHeaders value for headers hs.
- def canonicalThe canonical request.
- def scope
- def to_signThe string to sign, from the hex SHA-256 of the canonical request.
- def header
- def hex.of
- def sha.wordsHex SHA-256 of a byte string.
- def sha
- def mac.words
- def words
- def macHMAC-SHA256 of msg under the key k holds, or k's failure.
- def keyThe signing key: HMAC(HMAC(HMAC(HMAC("AWS4" + secret, day), region), service), "aws4_request").
- def signature.of
- def signatureThe hex signature of a canonical request.
- def header.of
- def signThe Authorization header over exactly the headers hs: the general form, for any header set.
- def token.hdr
- def authorize.hashThe Authorization header over host;x-amz-content-sha256;x-amz-date, plus x-amz-security-token when creds has a token.
- def authorize.pair
- def authorize.of
- def authorizeauthorize.hash over the payload's SHA-256.
- def token.q
- def presign.queryThe query a presigned request adds to q, before X-Amz-Signature.
- def presign.of
- def presign.go
- def presign.if
- def presignA presigned URL's query, signing host only over UNSIGNED-PAYLOAD, valid for expires seconds, 1 to 604800 (else Fail EINVAL).
- type StylePath: {endpoint}/{bucket}/{key}.
- type Configendpoint: scheme://host[:port], as https://s3.us-east-1.amazonaws.com or http://127.0.0.1:9000.
- type Client
- type ErrErrNet: no response.
- type Objectetag keeps S3's quotes.
- type Pagenext: the continuation token when S3 cut the listing off.
- type MetaFrom a HEAD: Content-Length, ETag, Content-Type, and Last-Modified.
- def newRedirects come back as ErrS3: a signed request must not follow one.
- def close
- def retryUp to n more tries after a connect error, a timeout, or 408, 429, 500, 502, 503, or 504.
- def timeout
- def awsAWS itself: https://s3.{region}.amazonaws.com, virtual-hosted.
- def env
- def or
- def from_env.cfg
- def from_env.if
- def from_env.of
- def from_envAWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN; AWS_REGION, else AWS_DEFAULT_REGION, else us-east-1; AWS_ENDPOINT_URL_S3, else AWS_ENDPOINT_URL.
- type LeafOne closed element: its parent's name, its name, and its own text, entities decoded.
- type LxWhere the lexer is: text; after '<'; a start tag's name; its attributes, outside or in "..." or '...'; after '/' in a start tag; an end tag's name; <?...?>, after '?'; after '<!'; a comment, after one or two '-'; <![CDATA[ up to its '['; CDATA, after one or two ']'; an entity; <!DOCTYPE ...>.
- type Ststack: open names, innermost first.
- def first
- def local.go
- def localThe name after its namespace prefix, as Key for s3:Key.
- def st.txt
- def st.nm
- def st.nm0
- def st.open
- def st.shut
- def st.close
- def st.close.top
- def hex.digit
- def hex.step
- def hexponytail: no overflow check; a reference past U+10FFFF wraps and decodes to junk rather than failing.
- def ent.num
- def entThe five XML entities and &#NN; / &#xHH;.
- def st.ent.of
- def st.ent