repo stringlengths 6 47 | file_url stringlengths 77 269 | file_path stringlengths 5 186 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-07 08:35:43 2026-01-07 08:55:24 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/none.go | vendor/github.com/golang-jwt/jwt/v5/none.go | package jwt
// SigningMethodNone implements the none signing method. This is required by the spec
// but you probably should never use it.
var SigningMethodNone *signingMethodNone
const UnsafeAllowNoneSignatureType unsafeNoneMagicConstant = "none signing method allowed"
var NoneSignatureTypeDisallowedError error
t... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/claims.go | vendor/github.com/golang-jwt/jwt/v5/claims.go | package jwt
// Claims represent any form of a JWT Claims Set according to
// https://datatracker.ietf.org/doc/html/rfc7519#section-4. In order to have a
// common basis for validation, it is required that an implementation is able to
// supply at least the claim names provided in
// https://datatracker.ietf.org/doc/ht... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/rsa_pss.go | vendor/github.com/golang-jwt/jwt/v5/rsa_pss.go | package jwt
import (
"crypto"
"crypto/rand"
"crypto/rsa"
)
// SigningMethodRSAPSS implements the RSAPSS family of signing methods signing methods
type SigningMethodRSAPSS struct {
*SigningMethodRSA
Options *rsa.PSSOptions
// VerifyOptions is optional. If set overrides Options for rsa.VerifyPPS.
// Used to acce... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/hmac.go | vendor/github.com/golang-jwt/jwt/v5/hmac.go | package jwt
import (
"crypto"
"crypto/hmac"
"errors"
)
// SigningMethodHMAC implements the HMAC-SHA family of signing methods.
// Expects key type of []byte for both signing and validation
type SigningMethodHMAC struct {
Name string
Hash crypto.Hash
}
// Specific instances for HS256 and company
var (
SigningMe... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/ed25519.go | vendor/github.com/golang-jwt/jwt/v5/ed25519.go | package jwt
import (
"crypto"
"crypto/ed25519"
"crypto/rand"
"errors"
)
var (
ErrEd25519Verification = errors.New("ed25519: verification error")
)
// SigningMethodEd25519 implements the EdDSA family.
// Expects ed25519.PrivateKey for signing and ed25519.PublicKey for verification
type SigningMethodEd25519 struc... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/map_claims.go | vendor/github.com/golang-jwt/jwt/v5/map_claims.go | package jwt
import (
"encoding/json"
"fmt"
)
// MapClaims is a claims type that uses the map[string]any for JSON
// decoding. This is the default claims type if you don't supply one
type MapClaims map[string]any
// GetExpirationTime implements the Claims interface.
func (m MapClaims) GetExpirationTime() (*NumericD... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/signing_method.go | vendor/github.com/golang-jwt/jwt/v5/signing_method.go | package jwt
import (
"sync"
)
var signingMethods = map[string]func() SigningMethod{}
var signingMethodLock = new(sync.RWMutex)
// SigningMethod can be used add new methods for signing or verifying tokens. It
// takes a decoded signature as an input in the Verify function and produces a
// signature in Sign. The sig... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/ed25519_utils.go | vendor/github.com/golang-jwt/jwt/v5/ed25519_utils.go | package jwt
import (
"crypto"
"crypto/ed25519"
"crypto/x509"
"encoding/pem"
"errors"
)
var (
ErrNotEdPrivateKey = errors.New("key is not a valid Ed25519 private key")
ErrNotEdPublicKey = errors.New("key is not a valid Ed25519 public key")
)
// ParseEdPrivateKeyFromPEM parses a PEM-encoded Edwards curve priva... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/rsa.go | vendor/github.com/golang-jwt/jwt/v5/rsa.go | package jwt
import (
"crypto"
"crypto/rand"
"crypto/rsa"
)
// SigningMethodRSA implements the RSA family of signing methods.
// Expects *rsa.PrivateKey for signing and *rsa.PublicKey for validation
type SigningMethodRSA struct {
Name string
Hash crypto.Hash
}
// Specific instances for RS256 and company
var (
S... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/parser_option.go | vendor/github.com/golang-jwt/jwt/v5/parser_option.go | package jwt
import "time"
// ParserOption is used to implement functional-style options that modify the
// behavior of the parser. To add new options, just create a function (ideally
// beginning with With or Without) that returns an anonymous function that takes
// a *Parser type as input and manipulates its configu... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/doc.go | vendor/github.com/golang-jwt/jwt/v5/doc.go | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html
//
// See README.md for more info.
package jwt
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/golang-jwt/jwt/v5/ecdsa_utils.go | vendor/github.com/golang-jwt/jwt/v5/ecdsa_utils.go | package jwt
import (
"crypto/ecdsa"
"crypto/x509"
"encoding/pem"
"errors"
)
var (
ErrNotECPublicKey = errors.New("key is not a valid ECDSA public key")
ErrNotECPrivateKey = errors.New("key is not a valid ECDSA private key")
)
// ParseECPrivateKeyFromPEM parses a PEM encoded Elliptic Curve Private Key Structur... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/enterprise-certificate-proxy/client/client.go | vendor/github.com/googleapis/enterprise-certificate-proxy/client/client.go | // Copyright 2022 Google LLC.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/enterprise-certificate-proxy/client/util/util.go | vendor/github.com/googleapis/enterprise-certificate-proxy/client/util/util.go | // Copyright 2022 Google LLC.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wr... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/proto_json_stream.go | vendor/github.com/googleapis/gax-go/v2/proto_json_stream.go | // Copyright 2022, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/call_option.go | vendor/github.com/googleapis/gax-go/v2/call_option.go | // Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/content_type.go | vendor/github.com/googleapis/gax-go/v2/content_type.go | // Copyright 2022, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/header.go | vendor/github.com/googleapis/gax-go/v2/header.go | // Copyright 2018, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/invoke.go | vendor/github.com/googleapis/gax-go/v2/invoke.go | // Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/gax.go | vendor/github.com/googleapis/gax-go/v2/gax.go | // Copyright 2016, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/iterator/iterator.go | vendor/github.com/googleapis/gax-go/v2/iterator/iterator.go | // Copyright 2024, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/apierror/apierror.go | vendor/github.com/googleapis/gax-go/v2/apierror/apierror.go | // Copyright 2021, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/apierror/internal/proto/error.pb.go | vendor/github.com/googleapis/gax-go/v2/apierror/internal/proto/error.pb.go | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/apierror/internal/proto/custom_error.pb.go | vendor/github.com/googleapis/gax-go/v2/apierror/internal/proto/custom_error.pb.go | // Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/internal/version.go | vendor/github.com/googleapis/gax-go/v2/internal/version.go | // Copyright 2022, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/callctx/callctx.go | vendor/github.com/googleapis/gax-go/v2/callctx/callctx.go | // Copyright 2023, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/internallog/internallog.go | vendor/github.com/googleapis/gax-go/v2/internallog/internallog.go | // Copyright 2024, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/internallog/internal/internal.go | vendor/github.com/googleapis/gax-go/v2/internallog/internal/internal.go | // Copyright 2024, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/googleapis/gax-go/v2/internallog/grpclog/grpclog.go | vendor/github.com/googleapis/gax-go/v2/internallog/grpclog/grpclog.go | // Copyright 2024, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/match.go | vendor/github.com/godbus/dbus/v5/match.go | package dbus
import (
"strconv"
"strings"
)
// MatchOption specifies option for dbus routing match rule. Options can be constructed with WithMatch* helpers.
// For full list of available options consult
// https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-routing-match-rules
type MatchOption stru... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/homedir.go | vendor/github.com/godbus/dbus/v5/homedir.go | package dbus
import (
"os"
"os/user"
)
// Get returns the home directory of the current user, which is usually the
// value of HOME environment variable. In case it is not set or empty, os/user
// package is used.
//
// If linking statically with cgo enabled against glibc, make sure the
// osusergo build tag is use... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/conn_darwin.go | vendor/github.com/godbus/dbus/v5/conn_darwin.go | package dbus
import (
"errors"
"fmt"
"os"
"os/exec"
)
const defaultSystemBusAddress = "unix:path=/opt/local/var/run/dbus/system_bus_socket"
func getSessionBusPlatformAddress() (string, error) {
cmd := exec.Command("launchctl", "getenv", "DBUS_LAUNCHD_SESSION_BUS_SOCKET")
b, err := cmd.CombinedOutput()
if err... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_generic.go | vendor/github.com/godbus/dbus/v5/transport_generic.go | package dbus
import (
"encoding/binary"
"errors"
"io"
"unsafe"
)
var nativeEndian binary.ByteOrder
func detectEndianness() binary.ByteOrder {
var x uint32 = 0x01020304
if *(*byte)(unsafe.Pointer(&x)) == 0x01 {
return binary.BigEndian
}
return binary.LittleEndian
}
func init() {
nativeEndian = detectEndia... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/dbus.go | vendor/github.com/godbus/dbus/v5/dbus.go | package dbus
import (
"errors"
"fmt"
"reflect"
"strings"
)
var (
byteType = reflect.TypeOf(byte(0))
boolType = reflect.TypeOf(false)
uint8Type = reflect.TypeOf(uint8(0))
int16Type = reflect.TypeOf(int16(0))
uint16Type = reflect.TypeOf(uint16(0))
intType = reflect.TypeO... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/auth_sha1.go | vendor/github.com/godbus/dbus/v5/auth_sha1.go | package dbus
import (
"bufio"
"bytes"
"crypto/rand"
"crypto/sha1"
"encoding/hex"
"os"
)
// AuthCookieSha1 returns an Auth that authenticates as the given user with the
// DBUS_COOKIE_SHA1 mechanism. The home parameter should specify the home
// directory of the user.
func AuthCookieSha1(user, home string) Auth ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go | vendor/github.com/godbus/dbus/v5/transport_unixcred_netbsd.go | package dbus
import "io"
func (t *unixTransport) SendNullByte() error {
n, _, err := t.UnixConn.WriteMsgUnix([]byte{0}, nil, nil)
if err != nil {
return err
}
if n != 1 {
return io.ErrShortWrite
}
return nil
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/conn_unix.go | vendor/github.com/godbus/dbus/v5/conn_unix.go | //+build !windows,!solaris,!darwin
package dbus
import (
"os"
)
const defaultSystemBusAddress = "unix:path=/var/run/dbus/system_bus_socket"
func getSystemBusPlatformAddress() string {
address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
if address != "" {
return address
}
return defaultSystemBusAddress
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go | vendor/github.com/godbus/dbus/v5/transport_unixcred_linux.go | // The UnixCredentials system call is currently only implemented on Linux
// http://golang.org/src/pkg/syscall/sockcmsg_linux.go
// https://golang.org/s/go1.4-syscall
// http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
package dbus
import (
"io"
"os"
"syscall"
)
func (t *unixTransport) Se... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/auth_external.go | vendor/github.com/godbus/dbus/v5/auth_external.go | package dbus
import (
"encoding/hex"
)
// AuthExternal returns an Auth that authenticates as the given user with the
// EXTERNAL mechanism.
func AuthExternal(user string) Auth {
return authExternal{user}
}
// AuthExternal implements the EXTERNAL authentication mechanism.
type authExternal struct {
user string
}
... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_zos.go | vendor/github.com/godbus/dbus/v5/transport_zos.go | package dbus
func (t *unixTransport) SendNullByte() error {
_, err := t.Write([]byte{0})
return err
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/conn_other.go | vendor/github.com/godbus/dbus/v5/conn_other.go | // +build !darwin
package dbus
import (
"bytes"
"errors"
"fmt"
"io/ioutil"
"os"
"os/exec"
"os/user"
"path"
"strings"
)
var execCommand = exec.Command
func getSessionBusPlatformAddress() (string, error) {
cmd := execCommand("dbus-launch")
b, err := cmd.CombinedOutput()
if err != nil {
return "", err
... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/decoder.go | vendor/github.com/godbus/dbus/v5/decoder.go | package dbus
import (
"encoding/binary"
"io"
"reflect"
)
type decoder struct {
in io.Reader
order binary.ByteOrder
pos int
fds []int
}
// newDecoder returns a new decoder that reads values from in. The input is
// expected to be in the given byte order.
func newDecoder(in io.Reader, order binary.ByteOr... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/conn.go | vendor/github.com/godbus/dbus/v5/conn.go | package dbus
import (
"context"
"errors"
"io"
"os"
"strings"
"sync"
)
var (
systemBus *Conn
systemBusLck sync.Mutex
sessionBus *Conn
sessionBusLck sync.Mutex
)
// ErrClosed is the error returned by calls on a closed connection.
var ErrClosed = errors.New("dbus: connection closed by user")
// Conn ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_tcp.go | vendor/github.com/godbus/dbus/v5/transport_tcp.go | package dbus
import (
"errors"
"net"
)
func init() {
transports["tcp"] = newTcpTransport
}
func tcpFamily(keys string) (string, error) {
switch getKey(keys, "family") {
case "":
return "tcp", nil
case "ipv4":
return "tcp4", nil
case "ipv6":
return "tcp6", nil
default:
return "", errors.New("dbus: inv... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go | vendor/github.com/godbus/dbus/v5/transport_unixcred_openbsd.go | package dbus
import "io"
func (t *unixTransport) SendNullByte() error {
n, _, err := t.UnixConn.WriteMsgUnix([]byte{0}, nil, nil)
if err != nil {
return err
}
if n != 1 {
return io.ErrShortWrite
}
return nil
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go | vendor/github.com/godbus/dbus/v5/transport_unixcred_freebsd.go | // The UnixCredentials system call is currently only implemented on Linux
// http://golang.org/src/pkg/syscall/sockcmsg_linux.go
// https://golang.org/s/go1.4-syscall
// http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
// Local implementation of the UnixCredentials system call for FreeBSD
pac... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/server_interfaces.go | vendor/github.com/godbus/dbus/v5/server_interfaces.go | package dbus
// Terminator allows a handler to implement a shutdown mechanism that
// is called when the connection terminates.
type Terminator interface {
Terminate()
}
// Handler is the representation of a D-Bus Application.
//
// The Handler must have a way to lookup objects given
// an ObjectPath. The returned o... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/call.go | vendor/github.com/godbus/dbus/v5/call.go | package dbus
import (
"context"
"errors"
)
var errSignature = errors.New("dbus: mismatched signature")
// Call represents a pending or completed method call.
type Call struct {
Destination string
Path ObjectPath
Method string
Args []interface{}
// Strobes when the call is complete.
Done c... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/sequential_handler.go | vendor/github.com/godbus/dbus/v5/sequential_handler.go | package dbus
import (
"sync"
)
// NewSequentialSignalHandler returns an instance of a new
// signal handler that guarantees sequential processing of signals. It is a
// guarantee of this signal handler that signals will be written to
// channels in the order they are received on the DBus connection.
func NewSequenti... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/default_handler.go | vendor/github.com/godbus/dbus/v5/default_handler.go | package dbus
import (
"bytes"
"reflect"
"strings"
"sync"
)
func newIntrospectIntf(h *defaultHandler) *exportedIntf {
methods := make(map[string]Method)
methods["Introspect"] = exportedMethod{
reflect.ValueOf(func(msg Message) (string, *Error) {
path := msg.Headers[FieldPath].value.(ObjectPath)
return h.... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_darwin.go | vendor/github.com/godbus/dbus/v5/transport_darwin.go | package dbus
func (t *unixTransport) SendNullByte() error {
_, err := t.Write([]byte{0})
return err
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/variant.go | vendor/github.com/godbus/dbus/v5/variant.go | package dbus
import (
"bytes"
"fmt"
"reflect"
"sort"
"strconv"
)
// Variant represents the D-Bus variant type.
type Variant struct {
sig Signature
value interface{}
}
// MakeVariant converts the given value to a Variant. It panics if v cannot be
// represented as a D-Bus type.
func MakeVariant(v interface{}... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go | vendor/github.com/godbus/dbus/v5/transport_nonce_tcp.go | //+build !windows
package dbus
import (
"errors"
"io/ioutil"
"net"
)
func init() {
transports["nonce-tcp"] = newNonceTcpTransport
}
func newNonceTcpTransport(keys string) (transport, error) {
host := getKey(keys, "host")
port := getKey(keys, "port")
noncefile := getKey(keys, "noncefile")
if host == "" || po... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/auth.go | vendor/github.com/godbus/dbus/v5/auth.go | package dbus
import (
"bufio"
"bytes"
"errors"
"io"
"os"
"strconv"
)
// AuthStatus represents the Status of an authentication mechanism.
type AuthStatus byte
const (
// AuthOk signals that authentication is finished; the next command
// from the server should be an OK.
AuthOk AuthStatus = iota
// AuthCont... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/export.go | vendor/github.com/godbus/dbus/v5/export.go | package dbus
import (
"errors"
"fmt"
"os"
"reflect"
"strings"
)
var (
ErrMsgInvalidArg = Error{
"org.freedesktop.DBus.Error.InvalidArgs",
[]interface{}{"Invalid type / number of args"},
}
ErrMsgNoObject = Error{
"org.freedesktop.DBus.Error.NoSuchObject",
[]interface{}{"No such object"},
}
ErrMsgUnkn... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/object.go | vendor/github.com/godbus/dbus/v5/object.go | package dbus
import (
"context"
"errors"
"strings"
)
// BusObject is the interface of a remote object on which methods can be
// invoked.
type BusObject interface {
Call(method string, flags Flags, args ...interface{}) *Call
CallWithContext(ctx context.Context, method string, flags Flags, args ...interface{}) *C... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/auth_anonymous.go | vendor/github.com/godbus/dbus/v5/auth_anonymous.go | package dbus
// AuthAnonymous returns an Auth that uses the ANONYMOUS mechanism.
func AuthAnonymous() Auth {
return &authAnonymous{}
}
type authAnonymous struct{}
func (a *authAnonymous) FirstData() (name, resp []byte, status AuthStatus) {
return []byte("ANONYMOUS"), nil, AuthOk
}
func (a *authAnonymous) HandleDa... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/conn_windows.go | vendor/github.com/godbus/dbus/v5/conn_windows.go | //+build windows
package dbus
import "os"
const defaultSystemBusAddress = "tcp:host=127.0.0.1,port=12434"
func getSystemBusPlatformAddress() string {
address := os.Getenv("DBUS_SYSTEM_BUS_ADDRESS")
if address != "" {
return address
}
return defaultSystemBusAddress
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/sequence.go | vendor/github.com/godbus/dbus/v5/sequence.go | package dbus
// Sequence represents the value of a monotonically increasing counter.
type Sequence uint64
const (
// NoSequence indicates the absence of a sequence value.
NoSequence Sequence = 0
)
// sequenceGenerator represents a monotonically increasing counter.
type sequenceGenerator struct {
nextSequence Sequ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/doc.go | vendor/github.com/godbus/dbus/v5/doc.go | /*
Package dbus implements bindings to the D-Bus message bus system.
To use the message bus API, you first need to connect to a bus (usually the
session or system bus). The acquired connection then can be used to call methods
on remote objects and emit or receive signals. Using the Export method, you can
arrange D-Bus... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/message.go | vendor/github.com/godbus/dbus/v5/message.go | package dbus
import (
"bytes"
"encoding/binary"
"errors"
"io"
"reflect"
"strconv"
)
const protoVersion byte = 1
// Flags represents the possible flags of a D-Bus message.
type Flags byte
const (
// FlagNoReplyExpected signals that the message is not expected to generate
// a reply. If this flag is set on ou... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/escape.go | vendor/github.com/godbus/dbus/v5/escape.go | package dbus
import "net/url"
// EscapeBusAddressValue implements a requirement to escape the values
// in D-Bus server addresses, as defined by the D-Bus specification at
// https://dbus.freedesktop.org/doc/dbus-specification.html#addresses.
func EscapeBusAddressValue(val string) string {
toEsc := strNeedsEscape(va... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/variant_parser.go | vendor/github.com/godbus/dbus/v5/variant_parser.go | package dbus
import (
"bytes"
"errors"
"fmt"
"io"
"reflect"
"strconv"
"strings"
"unicode/utf8"
)
type varParser struct {
tokens []varToken
i int
}
func (p *varParser) backup() {
p.i--
}
func (p *varParser) next() varToken {
if p.i < len(p.tokens) {
t := p.tokens[p.i]
p.i++
return t
}
return... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unix.go | vendor/github.com/godbus/dbus/v5/transport_unix.go | //+build !windows,!solaris
package dbus
import (
"bytes"
"encoding/binary"
"errors"
"io"
"net"
"syscall"
)
type oobReader struct {
conn *net.UnixConn
oob []byte
buf [4096]byte
}
func (o *oobReader) Read(b []byte) (n int, err error) {
n, oobn, flags, _, err := o.conn.ReadMsgUnix(b, o.buf[:])
if err != n... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go | vendor/github.com/godbus/dbus/v5/transport_unixcred_dragonfly.go | // The UnixCredentials system call is currently only implemented on Linux
// http://golang.org/src/pkg/syscall/sockcmsg_linux.go
// https://golang.org/s/go1.4-syscall
// http://code.google.com/p/go/source/browse/unix/sockcmsg_linux.go?repo=sys
// Local implementation of the UnixCredentials system call for DragonFly BS... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/sig.go | vendor/github.com/godbus/dbus/v5/sig.go | package dbus
import (
"fmt"
"reflect"
"strings"
)
var sigToType = map[byte]reflect.Type{
'y': byteType,
'b': boolType,
'n': int16Type,
'q': uint16Type,
'i': int32Type,
'u': uint32Type,
'x': int64Type,
't': uint64Type,
'd': float64Type,
's': stringType,
'g': signatureType,
'o': objectPathType,
'v': var... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/variant_lexer.go | vendor/github.com/godbus/dbus/v5/variant_lexer.go | package dbus
import (
"fmt"
"strings"
"unicode"
"unicode/utf8"
)
// Heavily inspired by the lexer from text/template.
type varToken struct {
typ varTokenType
val string
}
type varTokenType byte
const (
tokEOF varTokenType = iota
tokError
tokNumber
tokString
tokBool
tokArrayStart
tokArrayEnd
tokDictSt... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/godbus/dbus/v5/encoder.go | vendor/github.com/godbus/dbus/v5/encoder.go | package dbus
import (
"bytes"
"encoding/binary"
"io"
"reflect"
"strings"
"unicode/utf8"
)
// An encoder encodes values to the D-Bus wire format.
type encoder struct {
out io.Writer
fds []int
order binary.ByteOrder
pos int
}
// NewEncoder returns a new encoder that writes to out in the given byte orde... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/fernet/fernet-go/fernet.go | vendor/github.com/fernet/fernet-go/fernet.go | // Package fernet takes a user-provided message (an arbitrary
// sequence of bytes), a key (256 bits), and the current time,
// and produces a token, which contains the message in a form
// that can't be read or altered without the key.
//
// For more information and background, see the Fernet spec
// at https://github... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/fernet/fernet-go/key.go | vendor/github.com/fernet/fernet-go/key.go | package fernet
import (
"crypto/rand"
"encoding/base64"
"encoding/hex"
"errors"
"io"
)
var (
errKeyLen = errors.New("fernet: key decodes to wrong size")
errNoKeys = errors.New("fernet: no keys provided")
)
// Key represents a key.
type Key [32]byte
func (k *Key) cryptBytes() []byte {
return k[len(k)/2:]
}
... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/cjson/canonicaljson.go | vendor/github.com/secure-systems-lab/go-securesystemslib/cjson/canonicaljson.go | package cjson
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"reflect"
"sort"
"strings"
)
/*
encodeCanonicalString is a helper function to canonicalize the passed string
according to the OLPC canonical JSON specification for strings (see
http://wiki.laptop.org/go/Canonical_JSON). String canonicalization cons... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/utils.go | vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/utils.go | package signerverifier
import (
"crypto/sha256"
"crypto/x509"
"encoding/hex"
"encoding/json"
"encoding/pem"
"errors"
"hash"
"github.com/secure-systems-lab/go-securesystemslib/cjson"
)
/*
Credits: Parts of this file were originally authored for in-toto-golang.
*/
var (
// ErrNoPEMBlock gets triggered when t... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/ecdsa.go | vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/ecdsa.go | package signerverifier
import (
"context"
"crypto"
"crypto/ecdsa"
"crypto/rand"
"crypto/sha256"
"crypto/sha512"
"fmt"
"os"
)
const (
ECDSAKeyType = "ecdsa"
ECDSAKeyScheme = "ecdsa-sha2-nistp256"
)
// ECDSASignerVerifier is a dsse.SignerVerifier compliant interface to sign and
// verify signatures using E... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/signerverifier.go | vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/signerverifier.go | package signerverifier
import (
"crypto/ecdsa"
"crypto/ed25519"
"crypto/rsa"
"crypto/x509"
"encoding/hex"
"errors"
"strings"
)
var KeyIDHashAlgorithms = []string{"sha256", "sha512"}
var (
ErrNotPrivateKey = errors.New("loaded key is not a private key")
ErrSignatureVerificationFailed = errors.N... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/ed25519.go | vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/ed25519.go | package signerverifier
import (
"context"
"crypto"
"crypto/ed25519"
"encoding/hex"
"fmt"
"os"
)
const ED25519KeyType = "ed25519"
// ED25519SignerVerifier is a dsse.SignerVerifier compliant interface to sign
// and verify signatures using ED25519 keys.
type ED25519SignerVerifier struct {
keyID string
privat... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/rsa.go | vendor/github.com/secure-systems-lab/go-securesystemslib/signerverifier/rsa.go | package signerverifier
import (
"context"
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
"crypto/x509"
"fmt"
"os"
"strings"
)
const (
RSAKeyType = "rsa"
RSAKeyScheme = "rsassa-pss-sha256"
RSAPrivateKeyPEM = "RSA PRIVATE KEY"
)
// RSAPSSSignerVerifier is a dsse.SignerVerifier compliant inte... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/verify.go | vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/verify.go | package dsse
import (
"context"
"crypto"
"errors"
"fmt"
"golang.org/x/crypto/ssh"
)
// ErrNoSignature indicates that an envelope did not contain any signatures.
var ErrNoSignature = errors.New("no signature found")
type EnvelopeVerifier struct {
providers []Verifier
threshold int
}
type AcceptedKey struct {... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/sign.go | vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/sign.go | /*
Package dsse implements the Dead Simple Signing Envelope (DSSE)
https://github.com/secure-systems-lab/dsse
*/
package dsse
import (
"context"
"encoding/base64"
"errors"
)
// ErrNoSigners indicates that no signer was provided.
var ErrNoSigners = errors.New("no signers provided")
// EnvelopeSigner creates signed... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/envelope.go | vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/envelope.go | package dsse
import (
"encoding/base64"
"fmt"
)
/*
Envelope captures an envelope as described by the DSSE specification. See here:
https://github.com/secure-systems-lab/dsse/blob/master/envelope.md
*/
type Envelope struct {
PayloadType string `json:"payloadType"`
Payload string `json:"payload"`
Sig... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/signerverifier.go | vendor/github.com/secure-systems-lab/go-securesystemslib/dsse/signerverifier.go | package dsse
import (
"context"
"crypto"
)
/*
Signer defines the interface for an abstract signing algorithm. The Signer
interface is used to inject signature algorithm implementations into the
EnvelopeSigner. This decoupling allows for any signing algorithm and key
management system can be used. The full message i... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/model.go | vendor/github.com/spdx/tools-golang/spdx/model.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
// Package spdx contains references to the latest spdx version
package spdx
import (
"github.com/spdx/tools-golang/spdx/v2/common"
latest "github.com/spdx/tools-golang/spdx/v2/v2_3"
)
const (
Version = latest.Version
DataLicense = latest.DataLicense
... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/common/types.go | vendor/github.com/spdx/tools-golang/spdx/common/types.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
// AnyDocument a placeholder for allowing any SPDX document to be used in function args
type AnyDocument interface{}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/document.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/document.go | // Package v2_3 Package contains the struct definition for an SPDX Document
// and its constituent parts.
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"encoding/json"
"fmt"
converter "github.com/anchore/go-struct-converter"
"github.com/spdx/tools-golang/spdx/v2/common"
)
cons... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/file.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/file.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// File is a File section of an SPDX Document
type File struct {
// 8.1: File Name
// Cardinality: mandatory, one
FileName string `json:"fileName"`
// 8.2: File SPDX Identifier: "SPD... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/creation_info.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/creation_info.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// CreationInfo is a Document Creation Information section of an SPDX Document
type CreationInfo struct {
// 6.7: License List Version
// Cardinality: optional, one
LicenseListVersion ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/relationship.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/relationship.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// Relationship is a Relationship section of an SPDX Document
type Relationship struct {
// 11.1: Relationship
// Cardinality: optional, one or more; one per Relationship
// ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/review.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/review.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
// Review is a Review section of an SPDX Document.
// DEPRECATED in version 2.0 of spec; retained here for compatibility.
type Review struct {
// DEPRECATED in version 2.0 of spec
// 13.1: Reviewer
// Cardinality: optional, one
Reviewer stri... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/other_license.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/other_license.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
// OtherLicense is an Other License Information section of an SPDX Document
type OtherLicense struct {
// 10.1: License Identifier: "LicenseRef-[idstring]"
// Cardinality: conditional (mandatory, one) if license is not
// on SPDX ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/snippet.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/snippet.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// Snippet is a Snippet section of an SPDX Document
type Snippet struct {
// 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]"
// Cardinality: mandatory, one
SnippetSPDXIdentifier co... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/annotation.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/annotation.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// Annotation is an Annotation section of an SPDX Document
type Annotation struct {
// 12.1: Annotator
// Cardinality: conditional (mandatory, one) if there is an Annotation
Annotator ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/package.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_3/package.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_3
import (
"encoding/json"
"strings"
"github.com/spdx/tools-golang/json/marshal"
"github.com/spdx/tools-golang/spdx/v2/common"
)
// Package is a Package section of an SPDX Document
type Package struct {
// NOT PART OF SPEC
// flag: does thi... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/creation_info.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/creation_info.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
import (
"fmt"
"strings"
"github.com/spdx/tools-golang/json/marshal"
)
// Creator is a wrapper around the Creator SPDX field. The SPDX field contains two values, which requires special
// handling in order to marshal/unmarshal it to/from G... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/identifier.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/identifier.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
import (
"fmt"
"strings"
"github.com/spdx/tools-golang/json/marshal"
)
const (
spdxRefPrefix = "SPDXRef-"
documentRefPrefix = "DocumentRef-"
)
// ElementID represents the identifier string portion of an SPDX element
// identifier. D... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/checksum.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/checksum.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
// ChecksumAlgorithm represents the algorithm used to generate the file checksum in the Checksum struct.
type ChecksumAlgorithm string
// The checksum algorithms mentioned in the spec https://spdx.github.io/spdx-spec/4-file-information/#44-fil... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/external.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/external.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
// Constants for various string types
const (
// F.2 Security types
CategorySecurity string = "SECURITY"
TypeSecurityCPE23Type string = "cpe23Type"
TypeSecurityCPE22Type string = "cpe22Type"
TypeSecurityAdvisory string = "advisory"
... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/snippet.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/snippet.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
type SnippetRangePointer struct {
// 5.3: Snippet Byte Range: [start byte]:[end byte]
// Cardinality: mandatory, one
Offset int `json:"offset,omitempty"`
// 5.4: Snippet Line Range: [start line]:[end line]
// Cardinality: optional, one
L... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/annotation.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/annotation.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
import (
"fmt"
"strings"
"github.com/spdx/tools-golang/json/marshal"
)
type Annotator struct {
Annotator string
// including AnnotatorType: one of "Person", "Organization" or "Tool"
AnnotatorType string
}
// UnmarshalJSON takes an anno... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/common/package.go | vendor/github.com/spdx/tools-golang/spdx/v2/common/package.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package common
import (
"fmt"
"strings"
"github.com/spdx/tools-golang/json/marshal"
)
type Supplier struct {
// can be "NOASSERTION"
Supplier string
// SupplierType can be one of "Person", "Organization", or empty if Supplier is "NOASSERTION"
Supplie... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/document.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/document.go | // Package spdx contains the struct definition for an SPDX Document
// and its constituent parts.
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_2
import (
"encoding/json"
"fmt"
converter "github.com/anchore/go-struct-converter"
"github.com/spdx/tools-golang/spdx/v2/common"
)
const Versio... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/file.go | vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/file.go | // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
package v2_2
import (
"github.com/spdx/tools-golang/spdx/v2/common"
)
// File is a File section of an SPDX Document for version 2.2 of the spec.
type File struct {
// 8.1: File Name
// Cardinality: mandatory, one
FileName string `json:"fileName"`
// 8.... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.