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/spdx/tools-golang/spdx/v2/v2_2/creation_info.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/creation_info.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" ) // CreationInfo is a Document Creation Information section of an // SPDX Document for version 2.2 of the spec. type CreationInfo struct { // 6.7: License List Version // Cardinality: op...
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/relationship.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/relationship.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" ) // Relationship is a Relationship section of an SPDX Document for // version 2.2 of the spec. type Relationship struct { // 11.1: Relationship // Cardinality: optional, one or more; on...
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/review.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/review.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_2 // Review is a Review section of an SPDX Document for version 2.2 of the spec. // 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: ...
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/other_license.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/other_license.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_2 // OtherLicense is an Other License Information section of an // SPDX Document for version 2.2 of the spec. type OtherLicense struct { // 10.1: License Identifier: "LicenseRef-[idstring]" // Cardinality: conditional (mandatory, one) if license ...
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/snippet.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/snippet.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" ) // Snippet is a Snippet section of an SPDX Document for version 2.2 of the spec. type Snippet struct { // 9.1: Snippet SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, ...
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/annotation.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/annotation.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" ) // Annotation is an Annotation section of an SPDX Document for version 2.2 of the spec. type Annotation struct { // 12.1: Annotator // Cardinality: conditional (mandatory, one) if there...
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/package.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_2/package.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_2 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 for version 2.2 of the spec. type Package struct { // NOT PA...
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_1/document.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/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_1 import ( converter "github.com/anchore/go-struct-converter" "github.com/spdx/tools-golang/spdx/v2/common" ) const Version = "SPDX-2.1" const Data...
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_1/file.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/file.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // File is a File section of an SPDX Document for version 2.1 of the spec. type File struct { // 4.1: File Name // Cardinality: mandatory, one FileName string `json:"fileName"` // 4....
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_1/creation_info.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/creation_info.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // CreationInfo is a Document Creation Information section of an // SPDX Document for version 2.1 of the spec. type CreationInfo struct { // 2.7: License List Version // Cardinality: op...
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_1/relationship.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/relationship.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // Relationship is a Relationship section of an SPDX Document for // version 2.1 of the spec. type Relationship struct { // 7.1: Relationship // Cardinality: optional, one or more; one...
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_1/review.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/review.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 // Review is a Review section of an SPDX Document for version 2.1 of the spec. // DEPRECATED in version 2.0 of spec; retained here for compatibility. type Review struct { // DEPRECATED in version 2.0 of spec // 9.1: Reviewer // Cardinality: 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/spdx/tools-golang/spdx/v2/v2_1/other_license.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/other_license.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 // OtherLicense is an Other License Information section of an // SPDX Document for version 2.1 of the spec. type OtherLicense struct { // 6.1: License Identifier: "LicenseRef-[idstring]" // Cardinality: conditional (mandatory, one) if license 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/v2/v2_1/snippet.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/snippet.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // Snippet is a Snippet section of an SPDX Document for version 2.1 of the spec. type Snippet struct { // 5.1: Snippet SPDX Identifier: "SPDXRef-[idstring]" // Cardinality: mandatory, ...
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_1/annotation.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/annotation.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // Annotation is an Annotation section of an SPDX Document for version 2.1 of the spec. type Annotation struct { // 8.1: Annotator // Cardinality: conditional (mandatory, one) if there ...
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_1/package.go
vendor/github.com/spdx/tools-golang/spdx/v2/v2_1/package.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package v2_1 import ( "github.com/spdx/tools-golang/spdx/v2/common" ) // Package is a Package section of an SPDX Document for version 2.1 of the spec. type Package struct { // 3.1: Package Name // Cardinality: mandatory, one PackageName string `json:"nam...
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/json/writer.go
vendor/github.com/spdx/tools-golang/json/writer.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package json import ( "encoding/json" "io" "github.com/spdx/tools-golang/spdx/common" ) type WriteOption func(*json.Encoder) func Indent(indent string) WriteOption { return func(e *json.Encoder) { e.SetIndent("", indent) } } func EscapeHTML(escape ...
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/json/reader.go
vendor/github.com/spdx/tools-golang/json/reader.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package json import ( "bytes" "encoding/json" "fmt" "io" "github.com/spdx/tools-golang/convert" "github.com/spdx/tools-golang/spdx" "github.com/spdx/tools-golang/spdx/common" "github.com/spdx/tools-golang/spdx/v2/v2_1" "github.com/spdx/tools-golang/...
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/json/marshal/json.go
vendor/github.com/spdx/tools-golang/json/marshal/json.go
package marshal import ( "bytes" "encoding/json" ) // JSON marshals the object _without_ escaping HTML func JSON(obj interface{}) ([]byte, error) { buf := &bytes.Buffer{} enc := json.NewEncoder(buf) enc.SetEscapeHTML(false) err := enc.Encode(obj) return bytes.TrimSpace(buf.Bytes()), 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/spdx/tools-golang/convert/struct.go
vendor/github.com/spdx/tools-golang/convert/struct.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package convert import ( "fmt" "reflect" "github.com/spdx/tools-golang/spdx/common" ) // FromPtr accepts a document or a document pointer and returns the direct struct reference func FromPtr(doc common.AnyDocument) common.AnyDocument { value := reflect....
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/convert/chain.go
vendor/github.com/spdx/tools-golang/convert/chain.go
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package convert import ( "fmt" "reflect" converter "github.com/anchore/go-struct-converter" "github.com/spdx/tools-golang/spdx/common" "github.com/spdx/tools-golang/spdx/v2/v2_1" "github.com/spdx/tools-golang/spdx/v2/v2_2" "github.com/spdx/tools-gola...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Graylog2/go-gelf/gelf/tcpreader.go
vendor/github.com/Graylog2/go-gelf/gelf/tcpreader.go
package gelf import ( "bufio" "encoding/json" "fmt" "net" "time" ) type TCPReader struct { listener *net.TCPListener conn net.Conn messages chan []byte } type connChannels struct { drop chan string confirm chan string } func newTCPReader(addr string) (*TCPReader, chan string, chan string, error) { ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Graylog2/go-gelf/gelf/tcpwriter.go
vendor/github.com/Graylog2/go-gelf/gelf/tcpwriter.go
package gelf import ( "fmt" "net" "os" "sync" "time" ) const ( DefaultMaxReconnect = 3 DefaultReconnectDelay = 1 ) type TCPWriter struct { GelfWriter mu sync.Mutex MaxReconnect int ReconnectDelay time.Duration } func NewTCPWriter(addr string) (*TCPWriter, error) { var err error w := new...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Graylog2/go-gelf/gelf/utils.go
vendor/github.com/Graylog2/go-gelf/gelf/utils.go
package gelf import ( "runtime" "strings" ) // getCaller returns the filename and the line info of a function // further down in the call stack. Passing 0 in as callDepth would // return info on the function calling getCallerIgnoringLog, 1 the // parent function, and so on. Any suffixes passed to getCaller are //...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Graylog2/go-gelf/gelf/writer.go
vendor/github.com/Graylog2/go-gelf/gelf/writer.go
// Copyright 2012 SocialCode. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package gelf import ( "net" ) type Writer interface { Close() error Write([]byte) (int, error) WriteMessage(*Message) error } // Writer implements io.Writer and ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Graylog2/go-gelf/gelf/reader.go
vendor/github.com/Graylog2/go-gelf/gelf/reader.go
// Copyright 2012 SocialCode. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package gelf import ( "bytes" "compress/gzip" "compress/zlib" "encoding/json" "fmt" "io" "net" "strings" "sync" ) type Reader struct { mu sync.Mutex 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/Graylog2/go-gelf/gelf/udpwriter.go
vendor/github.com/Graylog2/go-gelf/gelf/udpwriter.go
// Copyright 2012 SocialCode. All rights reserved. // Use of this source code is governed by the MIT // license that can be found in the LICENSE file. package gelf import ( "bytes" "compress/flate" "compress/gzip" "compress/zlib" "crypto/rand" "fmt" "io" "net" "os" "path" "sync" ) type UDPWriter 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/Graylog2/go-gelf/gelf/message.go
vendor/github.com/Graylog2/go-gelf/gelf/message.go
package gelf import ( "bytes" "encoding/json" "fmt" "time" ) // Message represents the contents of the GELF message. It is gzipped // before sending. type Message struct { Version string `json:"version"` Host string `json:"host"` Short string `json:"shor...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/morikuni/aec/builder.go
vendor/github.com/morikuni/aec/builder.go
package aec // Builder is a lightweight syntax to construct customized ANSI. type Builder struct { ANSI ANSI } // EmptyBuilder is an initialized Builder. var EmptyBuilder *Builder // NewBuilder creates a Builder from existing ANSI. func NewBuilder(a ...ANSI) *Builder { return &Builder{concat(a)} } // With is a sy...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/morikuni/aec/aec.go
vendor/github.com/morikuni/aec/aec.go
package aec import "fmt" // EraseMode is listed in a variable EraseModes. type EraseMode uint var ( // EraseModes is a list of EraseMode. EraseModes struct { // All erase all. All EraseMode // Head erase to head. Head EraseMode // Tail erase to tail. Tail EraseMode } // Save saves the cursor posit...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/morikuni/aec/ansi.go
vendor/github.com/morikuni/aec/ansi.go
package aec import ( "fmt" "strings" ) const esc = "\x1b[" // Reset resets SGR effect. const Reset string = "\x1b[0m" var empty = newAnsi("") // ANSI represents ANSI escape code. type ANSI interface { fmt.Stringer // With adapts given ANSIs. With(...ANSI) ANSI // Apply wraps given string in ANSI. Apply(st...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/morikuni/aec/sgr.go
vendor/github.com/morikuni/aec/sgr.go
package aec import ( "fmt" ) // RGB3Bit is a 3bit RGB color. type RGB3Bit uint8 // RGB8Bit is a 8bit RGB color. type RGB8Bit uint8 func newSGR(n uint) ANSI { return newAnsi(fmt.Sprintf(esc+"%dm", n)) } // NewRGB3Bit create a RGB3Bit from given RGB. func NewRGB3Bit(r, g, b uint8) RGB3Bit { return RGB3Bit((r >> 7...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-units/size.go
vendor/github.com/docker/go-units/size.go
package units import ( "fmt" "strconv" "strings" ) // See: http://en.wikipedia.org/wiki/Binary_prefix const ( // Decimal KB = 1000 MB = 1000 * KB GB = 1000 * MB TB = 1000 * GB PB = 1000 * TB // Binary KiB = 1024 MiB = 1024 * KiB GiB = 1024 * MiB TiB = 1024 * GiB PiB = 1024 * TiB ) type unitMap map[...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-units/ulimit.go
vendor/github.com/docker/go-units/ulimit.go
package units import ( "fmt" "strconv" "strings" ) // Ulimit is a human friendly version of Rlimit. type Ulimit struct { Name string Hard int64 Soft int64 } // Rlimit specifies the resource limits, such as max open files. type Rlimit struct { Type int `json:"type,omitempty"` Hard uint64 `json:"hard,omitem...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-units/duration.go
vendor/github.com/docker/go-units/duration.go
// Package units provides helper function to parse and print size and time units // in human-readable format. package units import ( "fmt" "time" ) // HumanDuration returns a human-readable approximation of a duration // (eg. "About a minute", "4 hours ago", etc.). func HumanDuration(d time.Duration) string { if 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/docker/go-connections/sockets/proxy.go
vendor/github.com/docker/go-connections/sockets/proxy.go
package sockets import ( "net" "os" "strings" ) // GetProxyEnv allows access to the uppercase and the lowercase forms of // proxy-related variables. See the Go specification for details on these // variables. https://golang.org/pkg/net/http/ // // Deprecated: this function was used as helper for [DialerFromEnviro...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/sockets.go
vendor/github.com/docker/go-connections/sockets/sockets.go
// Package sockets provides helper functions to create and configure Unix or TCP sockets. package sockets import ( "context" "errors" "fmt" "net" "net/http" "syscall" "time" ) const ( defaultTimeout = 10 * time.Second maxUnixSocketPathSize = len(syscall.RawSockaddrUnix{}.Path) ) // ErrProtocolNotAvai...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/inmem_socket.go
vendor/github.com/docker/go-connections/sockets/inmem_socket.go
package sockets import ( "errors" "net" "sync" ) var errClosed = errors.New("use of closed network connection") // InmemSocket implements net.Listener using in-memory only connections. type InmemSocket struct { chConn chan net.Conn chClose chan struct{} addr string mu sync.Mutex } // dummyAddr is us...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/sockets_windows.go
vendor/github.com/docker/go-connections/sockets/sockets_windows.go
package sockets import ( "context" "net" "net/http" "time" "github.com/Microsoft/go-winio" ) func configureNpipeTransport(tr *http.Transport, proto, addr string) error { // No need for compression in local communications. tr.DisableCompression = true tr.DialContext = func(ctx context.Context, _, _ string) (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/docker/go-connections/sockets/tcp_socket.go
vendor/github.com/docker/go-connections/sockets/tcp_socket.go
// Package sockets provides helper functions to create and configure Unix or TCP sockets. package sockets import ( "crypto/tls" "net" ) // NewTCPSocket creates a TCP socket listener with the specified address and // the specified tls configuration. If TLSConfig is set, will encapsulate the // TCP listener inside a ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/unix_socket.go
vendor/github.com/docker/go-connections/sockets/unix_socket.go
/* Package sockets is a simple unix domain socket wrapper. # Usage For example: import( "fmt" "net" "os" "github.com/docker/go-connections/sockets" ) func main() { l, err := sockets.NewUnixSocketWithOpts("/path/to/sockets", sockets.WithChown(0,0),sockets.WithChmod(0660)) if err != nil { panic(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/docker/go-connections/sockets/unix_socket_windows.go
vendor/github.com/docker/go-connections/sockets/unix_socket_windows.go
package sockets import "net" func listenUnix(path string) (net.Listener, error) { return net.Listen("unix", path) }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/unix_socket_unix.go
vendor/github.com/docker/go-connections/sockets/unix_socket_unix.go
//go:build !windows package sockets import ( "net" "os" "syscall" ) // WithChown modifies the socket file's uid and gid func WithChown(uid, gid int) SockOption { return func(path string) error { if err := os.Chown(path, uid, gid); err != nil { return err } return nil } } // WithChmod modifies socket f...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/sockets/sockets_unix.go
vendor/github.com/docker/go-connections/sockets/sockets_unix.go
//go:build !windows package sockets import ( "net" "net/http" "syscall" "time" ) func configureNpipeTransport(tr *http.Transport, proto, addr string) error { return ErrProtocolNotAvailable } func dialPipe(_ string, _ time.Duration) (net.Conn, error) { return nil, syscall.EAFNOSUPPORT }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/tlsconfig/config.go
vendor/github.com/docker/go-connections/tlsconfig/config.go
// Package tlsconfig provides primitives to retrieve secure-enough TLS configurations for both clients and servers. // // As a reminder from https://golang.org/pkg/crypto/tls/#Config: // // A Config structure is used to configure a TLS client or server. After one has been passed to a TLS function it must not be modifie...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-connections/tlsconfig/certpool.go
vendor/github.com/docker/go-connections/tlsconfig/certpool.go
package tlsconfig import ( "crypto/x509" "runtime" ) // SystemCertPool returns a copy of the system cert pool, // returns an error if failed to load or empty pool on windows. func SystemCertPool() (*x509.CertPool, error) { certpool, err := x509.SystemCertPool() if err != nil && runtime.GOOS == "windows" { retur...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry.go
vendor/github.com/docker/distribution/registry.go
package distribution import ( "context" "github.com/distribution/reference" ) // Scope defines the set of items that match a namespace. type Scope interface { // Contains returns true if the name belongs to the namespace. Contains(name string) bool } type fullScope struct{} func (f fullScope) Contains(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/docker/distribution/manifests.go
vendor/github.com/docker/distribution/manifests.go
package distribution import ( "context" "fmt" "mime" "github.com/opencontainers/go-digest" ) // Manifest represents a registry object specifying a set of // references and an optional target type Manifest interface { // References returns a list of objects which make up this manifest. // A reference is anythin...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/errors.go
vendor/github.com/docker/distribution/errors.go
package distribution import ( "errors" "fmt" "strings" "github.com/opencontainers/go-digest" ) // ErrAccessDenied is returned when an access to a requested resource is // denied. var ErrAccessDenied = errors.New("access denied") // ErrManifestNotModified is returned when a conditional manifest GetByTag // retur...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/tags.go
vendor/github.com/docker/distribution/tags.go
package distribution import ( "context" ) // TagService provides access to information about tagged objects. type TagService interface { // Get retrieves the descriptor identified by the tag. Some // implementations may differentiate between "trusted" tags and // "untrusted" tags. If a tag is "untrusted", the map...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/blobs.go
vendor/github.com/docker/distribution/blobs.go
package distribution import ( "context" "errors" "fmt" "io" "net/http" "time" "github.com/distribution/reference" "github.com/opencontainers/go-digest" v1 "github.com/opencontainers/image-spec/specs-go/v1" ) var ( // ErrBlobExists returned when blob already exists ErrBlobExists = errors.New("blob exists")...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/doc.go
vendor/github.com/docker/distribution/doc.go
// Package distribution will define the interfaces for the components of // docker distribution. The goal is to allow users to reliably package, ship // and store content related to docker images. // // This is currently a work in progress. More details are available in the // README.md. package distribution
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/metrics/prometheus.go
vendor/github.com/docker/distribution/metrics/prometheus.go
package metrics import "github.com/docker/go-metrics" const ( // NamespacePrefix is the namespace of prometheus metrics NamespacePrefix = "registry" ) var ( // StorageNamespace is the prometheus namespace of blob/cache related operations StorageNamespace = metrics.NewNamespace(NamespacePrefix, "storage", 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/docker/distribution/manifest/versioned.go
vendor/github.com/docker/distribution/manifest/versioned.go
package manifest // Versioned provides a struct with the manifest schemaVersion and mediaType. // Incoming content with unknown schema version can be decoded against this // struct to check the version. type Versioned struct { // SchemaVersion is the image manifest schema that this image follows SchemaVersion int `j...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/doc.go
vendor/github.com/docker/distribution/manifest/doc.go
package manifest
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/ocischema/manifest.go
vendor/github.com/docker/distribution/manifest/ocischema/manifest.go
package ocischema import ( "encoding/json" "errors" "fmt" "github.com/docker/distribution" "github.com/docker/distribution/manifest" "github.com/opencontainers/go-digest" v1 "github.com/opencontainers/image-spec/specs-go/v1" ) var ( // SchemaVersion provides a pre-initialized version structure for this // p...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/ocischema/builder.go
vendor/github.com/docker/distribution/manifest/ocischema/builder.go
package ocischema import ( "context" "errors" "github.com/docker/distribution" "github.com/docker/distribution/manifest" "github.com/opencontainers/go-digest" v1 "github.com/opencontainers/image-spec/specs-go/v1" ) // Builder is a type for constructing manifests. type Builder struct { // bs is a BlobService u...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/schema2/manifest.go
vendor/github.com/docker/distribution/manifest/schema2/manifest.go
package schema2 import ( "encoding/json" "errors" "fmt" "github.com/docker/distribution" "github.com/docker/distribution/manifest" "github.com/opencontainers/go-digest" ) const ( // MediaTypeManifest specifies the mediaType for the current version. MediaTypeManifest = "application/vnd.docker.distribution.man...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/schema2/builder.go
vendor/github.com/docker/distribution/manifest/schema2/builder.go
package schema2 import ( "context" "github.com/docker/distribution" "github.com/opencontainers/go-digest" ) // builder is a type for constructing manifests. type builder struct { // bs is a BlobService used to publish the configuration blob. bs distribution.BlobService // configMediaType is media type used to...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/manifest/manifestlist/manifestlist.go
vendor/github.com/docker/distribution/manifest/manifestlist/manifestlist.go
package manifestlist import ( "encoding/json" "errors" "fmt" "github.com/docker/distribution" "github.com/docker/distribution/manifest" "github.com/opencontainers/go-digest" v1 "github.com/opencontainers/image-spec/specs-go/v1" ) const ( // MediaTypeManifestList specifies the mediaType for manifest lists. M...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/storage/cache/cache.go
vendor/github.com/docker/distribution/registry/storage/cache/cache.go
// Package cache provides facilities to speed up access to the storage // backend. package cache import ( "fmt" "github.com/docker/distribution" ) // BlobDescriptorCacheProvider provides repository scoped // BlobDescriptorService cache instances and a global descriptor cache. type BlobDescriptorCacheProvider inter...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/storage/cache/cachedblobdescriptorstore.go
vendor/github.com/docker/distribution/registry/storage/cache/cachedblobdescriptorstore.go
package cache import ( "context" "github.com/docker/distribution" prometheus "github.com/docker/distribution/metrics" "github.com/opencontainers/go-digest" ) // Metrics is used to hold metric counters // related to the number of times a cache was // hit or missed. type Metrics struct { Requests uint64 Hits ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/storage/cache/memory/memory.go
vendor/github.com/docker/distribution/registry/storage/cache/memory/memory.go
package memory import ( "context" "sync" "github.com/distribution/reference" "github.com/docker/distribution" "github.com/docker/distribution/registry/storage/cache" "github.com/opencontainers/go-digest" ) type inMemoryBlobDescriptorCacheProvider struct { global *mapBlobDescriptorCache repositories map...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/errcode/errors.go
vendor/github.com/docker/distribution/registry/api/errcode/errors.go
package errcode import ( "encoding/json" "fmt" "strings" ) // ErrorCoder is the base interface for ErrorCode and Error allowing // users of each to just call ErrorCode to get the real ID of each type ErrorCoder interface { ErrorCode() ErrorCode } // ErrorCode represents the error type. The errors are serialized ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/errcode/register.go
vendor/github.com/docker/distribution/registry/api/errcode/register.go
package errcode import ( "fmt" "net/http" "sort" "sync" ) var ( errorCodeToDescriptors = map[ErrorCode]ErrorDescriptor{} idToDescriptors = map[string]ErrorDescriptor{} groupToDescriptors = map[string][]ErrorDescriptor{} ) var ( // ErrorCodeUnknown is a generic error that can be used as a last // ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/errcode/handler.go
vendor/github.com/docker/distribution/registry/api/errcode/handler.go
package errcode import ( "encoding/json" "net/http" ) // ServeJSON attempts to serve the errcode in a JSON envelope. It marshals err // and sets the content-type header to 'application/json'. It will handle // ErrorCoder and Errors, and if necessary will create an envelope. func ServeJSON(w http.ResponseWriter, 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/docker/distribution/registry/api/v2/urls.go
vendor/github.com/docker/distribution/registry/api/v2/urls.go
package v2 import ( "fmt" "net/http" "net/url" "strings" "github.com/distribution/reference" "github.com/gorilla/mux" ) // URLBuilder creates registry API urls from a single base endpoint. It can be // used to create urls for use in a registry client or server. // // All urls will be created from the given bas...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/v2/headerparser.go
vendor/github.com/docker/distribution/registry/api/v2/headerparser.go
package v2 import ( "fmt" "regexp" "strings" "unicode" ) var ( // according to rfc7230 reToken = regexp.MustCompile(`^[^"(),/:;<=>?@[\]{}[:space:][:cntrl:]]+`) reQuotedValue = regexp.MustCompile(`^[^\\"]+`) reEscapedCharacter = regexp.MustCompile(`^[[:blank:][:graph:]]`) ) // parseForwardedHe...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/v2/errors.go
vendor/github.com/docker/distribution/registry/api/v2/errors.go
package v2 import ( "net/http" "github.com/docker/distribution/registry/api/errcode" ) const errGroup = "registry.api.v2" var ( // ErrorCodeDigestInvalid is returned when uploading a blob if the // provided digest does not match the blob contents. ErrorCodeDigestInvalid = errcode.Register(errGroup, errcode.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/docker/distribution/registry/api/v2/descriptors.go
vendor/github.com/docker/distribution/registry/api/v2/descriptors.go
package v2 import ( "net/http" "regexp" "github.com/distribution/reference" "github.com/docker/distribution/registry/api/errcode" "github.com/opencontainers/go-digest" ) var ( nameParameterDescriptor = ParameterDescriptor{ Name: "name", Type: "string", Format: reference.NameRegexp.Stri...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/v2/doc.go
vendor/github.com/docker/distribution/registry/api/v2/doc.go
// Package v2 describes routes, urls and the error codes used in the Docker // Registry JSON HTTP API V2. In addition to declarations, descriptors are // provided for routes and error codes that can be used for implementation and // automatically generating documentation. // // Definitions here are considered to be loc...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/api/v2/routes.go
vendor/github.com/docker/distribution/registry/api/v2/routes.go
package v2 import "github.com/gorilla/mux" // The following are definitions of the name under which all V2 routes are // registered. These symbols can be used to look up a route based on the name. const ( RouteNameBase = "base" RouteNameManifest = "manifest" RouteNameTags = "tags" Rou...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/blob_writer.go
vendor/github.com/docker/distribution/registry/client/blob_writer.go
package client import ( "bytes" "context" "fmt" "io" "io/ioutil" "net/http" "time" "github.com/docker/distribution" ) type httpBlobUpload struct { statter distribution.BlobStatter client *http.Client uuid string startedAt time.Time location string // always the last value of the location header....
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/errors.go
vendor/github.com/docker/distribution/registry/client/errors.go
package client import ( "encoding/json" "errors" "fmt" "io/ioutil" "mime" "net/http" "github.com/docker/distribution/registry/api/errcode" "github.com/docker/distribution/registry/client/auth/challenge" ) // ErrNoErrorsInBody is returned when an HTTP response body parses to an empty // errcode.Errors slice. ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/repository.go
vendor/github.com/docker/distribution/registry/client/repository.go
package client import ( "bytes" "context" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "net/url" "strconv" "strings" "time" "github.com/distribution/reference" "github.com/docker/distribution" v2 "github.com/docker/distribution/registry/api/v2" "github.com/docker/distribution/registry/cl...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/auth/session.go
vendor/github.com/docker/distribution/registry/client/auth/session.go
package auth import ( "encoding/json" "errors" "fmt" "net/http" "net/url" "strings" "sync" "time" "github.com/docker/distribution/registry/client" "github.com/docker/distribution/registry/client/auth/challenge" "github.com/docker/distribution/registry/client/transport" ) var ( // ErrNoBasicAuthCredential...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/auth/api_version.go
vendor/github.com/docker/distribution/registry/client/auth/api_version.go
package auth import ( "net/http" "strings" ) // APIVersion represents a version of an API including its // type and version number. type APIVersion struct { // Type refers to the name of a specific API specification // such as "registry" Type string // Version is the version of the API specification implemente...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/auth/challenge/addr.go
vendor/github.com/docker/distribution/registry/client/auth/challenge/addr.go
package challenge import ( "net/url" "strings" ) // FROM: https://golang.org/src/net/http/http.go // Given a string of the form "host", "host:port", or "[ipv6::address]:port", // return true if the string includes a port. func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(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/docker/distribution/registry/client/auth/challenge/authchallenge.go
vendor/github.com/docker/distribution/registry/client/auth/challenge/authchallenge.go
package challenge import ( "fmt" "net/http" "net/url" "strings" "sync" ) // Challenge carries information from a WWW-Authenticate response header. // See RFC 2617. type Challenge struct { // Scheme is the auth-scheme according to RFC 2617 Scheme string // Parameters are the auth-params according to RFC 2617 ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/transport/http_reader.go
vendor/github.com/docker/distribution/registry/client/transport/http_reader.go
package transport import ( "errors" "fmt" "io" "net/http" "regexp" "strconv" ) var ( contentRangeRegexp = regexp.MustCompile(`bytes ([0-9]+)-([0-9]+)/([0-9]+|\\*)`) // ErrWrongCodeForByteRange is returned if the client sends a request // with a Range header but the server returns a 2xx or 3xx code other //...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/distribution/registry/client/transport/transport.go
vendor/github.com/docker/distribution/registry/client/transport/transport.go
package transport import ( "io" "net/http" "sync" ) // RequestModifier represents an object which will do an inplace // modification of an HTTP request. type RequestModifier interface { ModifyRequest(*http.Request) error } type headerModifier http.Header // NewHeaderRequestModifier returns a new RequestModifier...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/broadcast.go
vendor/github.com/docker/go-events/broadcast.go
package events import ( "fmt" "sync" "github.com/sirupsen/logrus" ) // Broadcaster sends events to multiple, reliable Sinks. The goal of this // component is to dispatch events to configured endpoints. Reliability can be // provided by wrapping incoming sinks. type Broadcaster struct { sinks []Sink events ch...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/filter.go
vendor/github.com/docker/go-events/filter.go
package events // Matcher matches events. type Matcher interface { Match(event Event) bool } // MatcherFunc implements matcher with just a function. type MatcherFunc func(event Event) bool // Match calls the wrapped function. func (fn MatcherFunc) Match(event Event) bool { return fn(event) } // Filter provides an...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/errors.go
vendor/github.com/docker/go-events/errors.go
package events import "fmt" var ( // ErrSinkClosed is returned if a write is issued to a sink that has been // closed. If encountered, the error should be considered terminal and // retries will not be successful. ErrSinkClosed = fmt.Errorf("events: sink closed") )
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/retry.go
vendor/github.com/docker/go-events/retry.go
package events import ( "fmt" "math/rand" "sync" "sync/atomic" "time" "github.com/sirupsen/logrus" ) // RetryingSink retries the write until success or an ErrSinkClosed is // returned. Underlying sink must have p > 0 of succeeding or the sink will // block. Retry is configured with a RetryStrategy. Concurrent...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/event.go
vendor/github.com/docker/go-events/event.go
package events // Event marks items that can be sent as events. type Event interface{} // Sink accepts and sends events. type Sink interface { // Write an event to the Sink. If no error is returned, the caller will // assume that all events have been committed to the sink. If an error is // received, the caller ma...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/channel.go
vendor/github.com/docker/go-events/channel.go
package events import ( "fmt" "sync" ) // Channel provides a sink that can be listened on. The writer and channel // listener must operate in separate goroutines. // // Consumers should listen on Channel.C until Closed is closed. type Channel struct { C chan Event closed chan struct{} once sync.Once } // New...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-events/queue.go
vendor/github.com/docker/go-events/queue.go
package events import ( "container/list" "sync" "github.com/sirupsen/logrus" ) // Queue accepts all messages into a queue for asynchronous consumption // by a sink. It is unbounded and thread safe but the sink must be reliable or // events will be dropped. type Queue struct { dst Sink events *list.List cond...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/unit.go
vendor/github.com/docker/go-metrics/unit.go
package metrics // Unit represents the type or precision of a metric that is appended to // the metrics fully qualified name type Unit string const ( Nanoseconds Unit = "nanoseconds" Seconds Unit = "seconds" Bytes Unit = "bytes" Total Unit = "total" )
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/timer.go
vendor/github.com/docker/go-metrics/timer.go
package metrics import ( "time" "github.com/prometheus/client_golang/prometheus" ) // StartTimer begins a timer observation at the callsite. When the target // operation is completed, the caller should call the return done func(). func StartTimer(timer Timer) (done func()) { start := time.Now() return func() { ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/namespace.go
vendor/github.com/docker/go-metrics/namespace.go
package metrics import ( "fmt" "sync" "github.com/prometheus/client_golang/prometheus" ) type Labels map[string]string // NewNamespace returns a namespaces that is responsible for managing a collection of // metrics for a particual namespace and subsystem // // labels allows const labels to be added to all metri...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/register.go
vendor/github.com/docker/go-metrics/register.go
package metrics import "github.com/prometheus/client_golang/prometheus" // Register adds all the metrics in the provided namespace to the global // metrics registry func Register(n *Namespace) { prometheus.MustRegister(n) } // Deregister removes all the metrics in the provided namespace from the // global metrics r...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/counter.go
vendor/github.com/docker/go-metrics/counter.go
package metrics import "github.com/prometheus/client_golang/prometheus" // Counter is a metrics that can only increment its current count type Counter interface { // Inc adds Sum(vs) to the counter. Sum(vs) must be positive. // // If len(vs) == 0, increments the counter by 1. Inc(vs ...float64) } // LabeledCount...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/docs.go
vendor/github.com/docker/go-metrics/docs.go
// This package is small wrapper around the prometheus go client to help enforce convention and best practices for metrics collection in Docker projects. package metrics
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/gauge.go
vendor/github.com/docker/go-metrics/gauge.go
package metrics import "github.com/prometheus/client_golang/prometheus" // Gauge is a metric that allows incrementing and decrementing a value type Gauge interface { Inc(...float64) Dec(...float64) // Add adds the provided value to the gauge's current value Add(float64) // Set replaces the gauge's current valu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/handler.go
vendor/github.com/docker/go-metrics/handler.go
package metrics import ( "net/http" "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp" ) // HTTPHandlerOpts describes a set of configurable options of http metrics type HTTPHandlerOpts struct { DurationBuckets []float64 RequestSizeBuckets []float64 R...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/docker/go-metrics/helpers.go
vendor/github.com/docker/go-metrics/helpers.go
package metrics func sumFloat64(vs ...float64) float64 { var sum float64 for _, v := range vs { sum += v } return sum }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/eax/random_vectors.go
vendor/github.com/ProtonMail/go-crypto/eax/random_vectors.go
// These vectors include key length in {128, 192, 256}, tag size 128, and // random nonce, header, and plaintext lengths. // This file was automatically generated. package eax var randomVectors = []struct { key, nonce, header, plaintext, ciphertext string }{ {"DFDE093F36B0356E5A81F609786982E3", "1D8AC60441900181...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/eax/eax_test_vectors.go
vendor/github.com/ProtonMail/go-crypto/eax/eax_test_vectors.go
package eax // Test vectors from // https://web.cs.ucdavis.edu/~rogaway/papers/eax.pdf var testVectors = []struct { msg, key, nonce, header, ciphertext string }{ {"", "233952DEE4D5ED5F9B9C6D6FF80FF478", "62EC67F9C3A4A407FCB2A8C49031A8B3", "6BFB914FD07EAE6B", "E037830E8389F27B025A2D6527E79D01"}, {"F7FB", "...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/eax/eax.go
vendor/github.com/ProtonMail/go-crypto/eax/eax.go
// Copyright (C) 2019 ProtonTech AG // Package eax provides an implementation of the EAX // (encrypt-authenticate-translate) mode of operation, as described in // Bellare, Rogaway, and Wagner "THE EAX MODE OF OPERATION: A TWO-PASS // AUTHENTICATED-ENCRYPTION SCHEME OPTIMIZED FOR SIMPLICITY AND EFFICIENCY." // In FSE'0...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false