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/tonistiigi/fsutil/copy/copy_windows.go
vendor/github.com/tonistiigi/fsutil/copy/copy_windows.go
package fs import ( "io" "os" "github.com/Microsoft/go-winio" "github.com/pkg/errors" "golang.org/x/sys/windows" ) const ( seTakeOwnershipPrivilege = "SeTakeOwnershipPrivilege" ) func getUIDGID(_ os.FileInfo) (uid, gid int) { return 0, 0 } func getFileSecurityInfo(name string) (*windows.SID, *windows.ACL, 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/tonistiigi/fsutil/copy/stat_sysv.go
vendor/github.com/tonistiigi/fsutil/copy/stat_sysv.go
//go:build dragonfly || linux || solaris // +build dragonfly linux solaris package fs import ( "syscall" ) // Returns the last-accessed time func StatAtime(st *syscall.Stat_t) syscall.Timespec { return st.Atim } // Returns the last-modified time func StatMtime(st *syscall.Stat_t) syscall.Timespec { return st.Mti...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/mkdir.go
vendor/github.com/tonistiigi/fsutil/copy/mkdir.go
package fs import ( "os" "syscall" "time" ) // MkdirAll is forked os.MkdirAll func MkdirAll(path string, perm os.FileMode, user Chowner, tm *time.Time) ([]string, error) { // Fast path: if we can tell whether path is a directory or file, stop with success or error. dir, err := os.Stat(path) if err == nil { if...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/copy_unix.go
vendor/github.com/tonistiigi/fsutil/copy/copy_unix.go
//go:build solaris || darwin || freebsd || openbsd || netbsd // +build solaris darwin freebsd openbsd netbsd package fs import ( "os" "syscall" "github.com/pkg/errors" "golang.org/x/sys/unix" ) func getUIDGID(fi os.FileInfo) (uid, gid int) { st := fi.Sys().(*syscall.Stat_t) return int(st.Uid), int(st.Gid) } ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/copy_freebsd.go
vendor/github.com/tonistiigi/fsutil/copy/copy_freebsd.go
//go:build freebsd // +build freebsd package fs import ( "io" "os" "github.com/pkg/errors" "golang.org/x/sys/unix" ) func copyFile(source, target string) error { src, err := os.Open(source) if err != nil { return errors.Wrapf(err, "failed to open source %s", source) } defer src.Close() tgt, err := os.Cre...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/stat_openbsd.go
vendor/github.com/tonistiigi/fsutil/copy/stat_openbsd.go
//go:build openbsd // +build openbsd package fs import ( "syscall" ) // Returns the last-accessed time func StatAtime(st *syscall.Stat_t) syscall.Timespec { return st.Atim } // Returns the last-modified time func StatMtime(st *syscall.Stat_t) syscall.Timespec { return st.Mtim }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/hardlink_windows.go
vendor/github.com/tonistiigi/fsutil/copy/hardlink_windows.go
package fs import "os" func getLinkInfo(_ os.FileInfo) (uint64, bool) { return 0, false }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/hardlink.go
vendor/github.com/tonistiigi/fsutil/copy/hardlink.go
package fs import "os" // GetLinkInfo returns an identifier representing the node a hardlink is pointing // to. If the file is not hard linked then 0 will be returned. func GetLinkInfo(fi os.FileInfo) (uint64, bool) { return getLinkInfo(fi) } // getLinkSource returns a path for the given name and // file info to it...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go
vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go
//go:build darwin || freebsd || netbsd // +build darwin freebsd netbsd package fs import ( "syscall" ) // Returns the last-accessed time func StatAtime(st *syscall.Stat_t) syscall.Timespec { return st.Atimespec } // Returns the last-modified time func StatMtime(st *syscall.Stat_t) syscall.Timespec { return st.Mt...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/mkdir_unix.go
vendor/github.com/tonistiigi/fsutil/copy/mkdir_unix.go
//go:build !windows // +build !windows package fs import ( "os" "time" "github.com/pkg/errors" "golang.org/x/sys/unix" ) func fixRootDirectory(p string) string { return p } func Utimes(p string, tm *time.Time) error { if tm == nil { return nil } ts, err := unix.TimeToTimespec(*tm) if err != nil { ret...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/copy_linux.go
vendor/github.com/tonistiigi/fsutil/copy/copy_linux.go
package fs import ( "io" "math" "os" "syscall" "github.com/pkg/errors" "golang.org/x/sys/unix" ) func getUIDGID(fi os.FileInfo) (uid, gid int) { st := fi.Sys().(*syscall.Stat_t) return int(st.Uid), int(st.Gid) } func (c *copier) copyFileInfo(fi os.FileInfo, _, name string) error { chown := c.chown uid, gi...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/copy/copy_darwin.go
vendor/github.com/tonistiigi/fsutil/copy/copy_darwin.go
//go:build darwin // +build darwin package fs import ( "io" "os" "github.com/pkg/errors" "golang.org/x/sys/unix" ) func copyFile(source, target string) error { if err := unix.Clonefileat(unix.AT_FDCWD, source, unix.AT_FDCWD, target, unix.CLONE_NOFOLLOW); err != nil { if err != unix.EINVAL && err != unix.EXDE...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/types/wire_vtproto.pb.go
vendor/github.com/tonistiigi/fsutil/types/wire_vtproto.pb.go
// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.6.0 // source: github.com/tonistiigi/fsutil/types/wire.proto package types import ( fmt "fmt" protohelpers "github.com/planetscale/vtprotobuf/protohelpers" proto "google.golang.org/protobuf/proto" protoimpl "google.golan...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/types/wire.go
vendor/github.com/tonistiigi/fsutil/types/wire.go
package types const ( PACKET_STAT = Packet_PACKET_STAT PACKET_REQ = Packet_PACKET_REQ PACKET_DATA = Packet_PACKET_DATA PACKET_FIN = Packet_PACKET_FIN PACKET_ERR = Packet_PACKET_ERR ) func (p *Packet) Marshal() ([]byte, error) { return p.MarshalVTStrict() } func (p *Packet) Unmarshal(dAtA []byte) error { re...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/types/stat.pb.go
vendor/github.com/tonistiigi/fsutil/types/stat.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v3.11.4 // source: github.com/tonistiigi/fsutil/types/stat.proto package types import ( _ "github.com/planetscale/vtprotobuf/vtproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "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/tonistiigi/fsutil/types/stat_vtproto.pb.go
vendor/github.com/tonistiigi/fsutil/types/stat_vtproto.pb.go
// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.6.0 // source: github.com/tonistiigi/fsutil/types/stat.proto package types import ( fmt "fmt" protohelpers "github.com/planetscale/vtprotobuf/protohelpers" proto "google.golang.org/protobuf/proto" protoimpl "google.golan...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/types/stat.go
vendor/github.com/tonistiigi/fsutil/types/stat.go
package types import "os" func (s *Stat) IsDir() bool { return os.FileMode(s.Mode).IsDir() } func (s *Stat) Marshal() ([]byte, error) { return s.MarshalVTStrict() } func (s *Stat) Unmarshal(dAtA []byte) error { return s.UnmarshalVT(dAtA) } func (s *Stat) Clone() *Stat { return s.CloneVT() }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/fsutil/types/wire.pb.go
vendor/github.com/tonistiigi/fsutil/types/wire.pb.go
// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v3.11.4 // source: github.com/tonistiigi/fsutil/types/wire.proto package types import ( _ "github.com/planetscale/vtprotobuf/vtproto" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "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/tonistiigi/vt100/vt100.go
vendor/github.com/tonistiigi/vt100/vt100.go
// package vt100 implements a quick-and-dirty programmable ANSI terminal emulator. // // You could, for example, use it to run a program like nethack that expects // a terminal as a subprocess. It tracks the position of the cursor, // colors, and various other aspects of the terminal's state, and // allows you to inspe...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/vt100/scanner.go
vendor/github.com/tonistiigi/vt100/scanner.go
package vt100 import ( "bytes" "fmt" "io" "unicode" ) // Decode decodes one ANSI terminal command from s. // // s should be connected to a client program that expects an // ANSI terminal on the other end. It will push bytes to us that we are meant // to intepret as terminal control codes, or text to place onto th...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/vt100/command.go
vendor/github.com/tonistiigi/vt100/command.go
package vt100 import ( "errors" "expvar" "fmt" "image/color" "regexp" "strconv" "strings" ) // UnsupportedError indicates that we parsed an operation that this // terminal does not implement. Such errors indicate that the client // program asked us to perform an action that we don't know how to. // It MAY be 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/tonistiigi/units/bytes.go
vendor/github.com/tonistiigi/units/bytes.go
/* Simple byte size formatting. This package implements types that can be used in stdlib formatting functions like `fmt.Printf` to control the output of the expected printed string. Floating point flags %f and %g print the value in using the correct unit suffix. Decimal units are default, # switches to binary 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/tonistiigi/dchapes-mode/bits.go
vendor/github.com/tonistiigi/dchapes-mode/bits.go
package mode import "os" type modet uint16 // Although many of these can be found in the syscall package // we don't use those to avoid the dependency, add some more // values, use non-exported Go names, and use octal for better clarity. // // Note that Go only uses the the nine least significant bits as "Unix // pe...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/dchapes-mode/mode.go
vendor/github.com/tonistiigi/dchapes-mode/mode.go
/* Parts of this file are a heavily modified C to Go translation of BSD's /usr/src/lib/libc/gen/setmode.c that contains the following copyright notice: * Copyright (c) 1989, 1993, 1994 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkel...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/go-archvariant/amd64variant_nodarwin.go
vendor/github.com/tonistiigi/go-archvariant/amd64variant_nodarwin.go
//go:build amd64 && !darwin // +build amd64,!darwin package archvariant func osAVX512Supported(ax uint32) bool { return ax&v4OSSupport == v4OSSupport }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/go-archvariant/amd64variant_darwin.go
vendor/github.com/tonistiigi/go-archvariant/amd64variant_darwin.go
//go:build amd64 && darwin // +build amd64,darwin package archvariant func darwinSupportsAVX512() bool func osAVX512Supported(ax uint32) bool { return ax&v3OSSupport == v3OSSupport && darwinSupportsAVX512() }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/go-archvariant/amd64variant_unsupported.go
vendor/github.com/tonistiigi/go-archvariant/amd64variant_unsupported.go
//go:build !amd64 // +build !amd64 package archvariant func AMD64Variant() string { return "v1" }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/go-archvariant/amd64variant.go
vendor/github.com/tonistiigi/go-archvariant/amd64variant.go
//go:build amd64 // +build amd64 package archvariant import ( "fmt" "sync" ) var cacheOnce sync.Once var amdVariantCache string func cpuid(ax, cx uint32) (eax, ebx, ecx, edx uint32) func xgetbv() (eax uint32) const ( sse3 = 0 ssse3 = 9 cx16 = 13 sse4_1 = 19 sse4_2 = 20 popcnt = 23 fma = 12 ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/tonistiigi/go-csvvalue/csvvalue.go
vendor/github.com/tonistiigi/go-csvvalue/csvvalue.go
// Package csvvalue provides an efficient parser for a single line CSV value. // It is more efficient than the standard library csv package for parsing many // small values. For multi-line CSV parsing, the standard library is recommended. package csvvalue import ( "encoding/csv" "errors" "io" "strings" "unicode" ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/RackSec/srslog/constants.go
vendor/github.com/RackSec/srslog/constants.go
package srslog import ( "errors" ) // Priority is a combination of the syslog facility and // severity. For example, LOG_ALERT | LOG_FTP sends an alert severity // message from the FTP facility. The default severity is LOG_EMERG; // the default facility is LOG_KERN. type Priority int const severityMask = 0x07 const...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/RackSec/srslog/dialer.go
vendor/github.com/RackSec/srslog/dialer.go
package srslog import ( "crypto/tls" "net" ) // dialerFunctionWrapper is a simple object that consists of a dialer function // and its name. This is primarily for testing, so we can make sure that the // getDialer method returns the correct dialer function. However, if you ever // find that you need to check which ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/RackSec/srslog/srslog.go
vendor/github.com/RackSec/srslog/srslog.go
package srslog import ( "crypto/tls" "crypto/x509" "errors" "io/ioutil" "log" "net" "os" ) // This interface allows us to work with both local and network connections, // and enables Solaris support (see syslog_unix.go). type serverConn interface { writeString(framer Framer, formatter Formatter, p Priority, 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/RackSec/srslog/srslog_unix.go
vendor/github.com/RackSec/srslog/srslog_unix.go
package srslog import ( "errors" "io" "net" ) // unixSyslog opens a connection to the syslog daemon running on the // local machine using a Unix domain socket. This function exists because of // Solaris support as implemented by gccgo. On Solaris you can not // simply open a TCP connection to the syslog daemon. ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/RackSec/srslog/writer.go
vendor/github.com/RackSec/srslog/writer.go
package srslog import ( "crypto/tls" "strings" "sync" ) // A Writer is a connection to a syslog server. type Writer struct { priority Priority tag string hostname string network string raddr string tlsConfig *tls.Config framer Framer formatter Formatter //non-nil if custom dialer set, 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/RackSec/srslog/formatter.go
vendor/github.com/RackSec/srslog/formatter.go
package srslog import ( "fmt" "os" "time" ) const appNameMaxLength = 48 // limit to 48 chars as per RFC5424 // Formatter is a type of function that takes the consituent parts of a // syslog message and returns a formatted string. A different Formatter is // defined for each different syslog protocol we support. 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/RackSec/srslog/framer.go
vendor/github.com/RackSec/srslog/framer.go
package srslog import ( "fmt" ) // Framer is a type of function that takes an input string (typically an // already-formatted syslog message) and applies "message framing" to it. We // have different framers because different versions of the syslog protocol // and its transport requirements define different framing ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/RackSec/srslog/net_conn.go
vendor/github.com/RackSec/srslog/net_conn.go
package srslog import ( "net" ) // netConn has an internal net.Conn and adheres to the serverConn interface, // allowing us to send syslog messages over the network. type netConn struct { conn net.Conn } // writeString formats syslog messages using time.RFC3339 and includes the // hostname, and sends the message 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/pkg/errors/errors.go
vendor/github.com/pkg/errors/errors.go
// Package errors provides simple error handling primitives. // // The traditional error handling idiom in Go is roughly akin to // // if err != nil { // return err // } // // which when applied recursively up the call stack results in error reports // without context or debugging information. The 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/pkg/errors/go113.go
vendor/github.com/pkg/errors/go113.go
// +build go1.13 package errors import ( stderrors "errors" ) // Is reports whether any error in err's chain matches target. // // The chain consists of err itself followed by the sequence of errors obtained by // repeatedly calling Unwrap. // // An error is considered to match a target if it is equal to that targe...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/pkg/errors/stack.go
vendor/github.com/pkg/errors/stack.go
package errors import ( "fmt" "io" "path" "runtime" "strconv" "strings" ) // Frame represents a program counter inside a stack frame. // For historical reasons if Frame is interpreted as a uintptr // its value represents the program counter + 1. type Frame uintptr // pc returns the program counter for this fra...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ishidawataru/sctp/sctp_linux.go
vendor/github.com/ishidawataru/sctp/sctp_linux.go
//go:build linux && !386 // +build linux,!386 // Copyright 2019 Wataru Ishida. All rights reserved. // // 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/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/ishidawataru/sctp/ipsock_linux.go
vendor/github.com/ishidawataru/sctp/ipsock_linux.go
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the GO_LICENSE file. package sctp import ( "net" "os" "sync" "syscall" ) //from https://github.com/golang/go // Boolean to int. func boolint(b bool) int { if b { 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/ishidawataru/sctp/sctp_unsupported.go
vendor/github.com/ishidawataru/sctp/sctp_unsupported.go
// +build !linux linux,386 // Copyright 2019 Wataru Ishida. All rights reserved. // // 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 // // ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ishidawataru/sctp/sctp.go
vendor/github.com/ishidawataru/sctp/sctp.go
// Copyright 2019 Wataru Ishida. All rights reserved. // // 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 applicab...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/deckarep/golang-set/v2/threadunsafe.go
vendor/github.com/deckarep/golang-set/v2/threadunsafe.go
/* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2013 - 2022 Ralph Caraveo (deckarep@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/deckarep/golang-set/v2/iterator.go
vendor/github.com/deckarep/golang-set/v2/iterator.go
/* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2013 - 2022 Ralph Caraveo (deckarep@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/deckarep/golang-set/v2/sorted.go
vendor/github.com/deckarep/golang-set/v2/sorted.go
//go:build go1.21 // +build go1.21 /* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2013 - 2023 Ralph Caraveo (deckarep@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/deckarep/golang-set/v2/set.go
vendor/github.com/deckarep/golang-set/v2/set.go
/* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2013 - 2022 Ralph Caraveo (deckarep@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/deckarep/golang-set/v2/threadsafe.go
vendor/github.com/deckarep/golang-set/v2/threadsafe.go
/* Open Source Initiative OSI - The MIT License (MIT):Licensing The MIT License (MIT) Copyright (c) 2013 - 2022 Ralph Caraveo (deckarep@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/petermattis/goid/goid_gccgo.go
vendor/github.com/petermattis/goid/goid_gccgo.go
// Copyright 2018 Peter Mattis. // // 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 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/petermattis/goid/goid.go
vendor/github.com/petermattis/goid/goid.go
// Copyright 2016 Peter Mattis. // // 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 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/petermattis/goid/goid_slow.go
vendor/github.com/petermattis/goid/goid_slow.go
// Copyright 2016 Peter Mattis. // // 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 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/petermattis/goid/runtime_go1.5.go
vendor/github.com/petermattis/goid/runtime_go1.5.go
// Copyright 2016 Peter Mattis. // // 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 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/petermattis/goid/goid_go1.3.go
vendor/github.com/petermattis/goid/goid_go1.3.go
// Copyright 2015 Peter Mattis. // // 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 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/petermattis/goid/runtime_gccgo_go1.8.go
vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go
//go:build gccgo && go1.8 // +build gccgo,go1.8 package goid // https://github.com/gcc-mirror/gcc/blob/releases/gcc-7/libgo/go/runtime/runtime2.go#L329-L354 type g struct { _panic uintptr _defer uintptr m uintptr syscallsp uintptr syscallpc uintptr param uintptr atomicstatu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/petermattis/goid/runtime_go1.6.go
vendor/github.com/petermattis/goid/runtime_go1.6.go
//go:build gc && go1.6 && !go1.9 // +build gc,go1.6,!go1.9 package goid // Just enough of the structs from runtime/runtime2.go to get the offset to goid. // See https://github.com/golang/go/blob/release-branch.go1.6/src/runtime/runtime2.go type stack struct { lo uintptr hi uintptr } type gobuf struct { sp uint...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/petermattis/goid/runtime_go1.9.go
vendor/github.com/petermattis/goid/runtime_go1.9.go
//go:build gc && go1.9 && !go1.23 // +build gc,go1.9,!go1.23 package goid type stack struct { lo uintptr hi uintptr } type gobuf struct { sp uintptr pc uintptr g uintptr ctxt uintptr ret uintptr lr uintptr bp uintptr } type g struct { stack stack stackguard0 uintptr stackguard1 uintptr...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/petermattis/goid/runtime_go1.23.go
vendor/github.com/petermattis/goid/runtime_go1.23.go
//go:build gc && go1.23 // +build gc,go1.23 package goid type stack struct { lo uintptr hi uintptr } type gobuf struct { sp uintptr pc uintptr g uintptr ctxt uintptr ret uintptr lr uintptr bp uintptr } type g struct { stack stack stackguard0 uintptr stackguard1 uintptr _panic 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/petermattis/goid/goid_go1.4.go
vendor/github.com/petermattis/goid/goid_go1.4.go
// Copyright 2015 Peter Mattis. // // 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 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/petermattis/goid/goid_go1.5.go
vendor/github.com/petermattis/goid/goid_go1.5.go
// Copyright 2016 Peter Mattis. // // 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 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/dimchansky/utfbom/utfbom.go
vendor/github.com/dimchansky/utfbom/utfbom.go
// Package utfbom implements the detection of the BOM (Unicode Byte Order Mark) and removing as necessary. // It wraps an io.Reader object, creating another object (Reader) that also implements the io.Reader // interface but provides automatic BOM checking and removing as necessary. package utfbom import ( "errors" ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/match.go
vendor/github.com/in-toto/in-toto-golang/in_toto/match.go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found at https://golang.org/LICENSE. // this is a modified version of path.Match that removes handling of path separators package in_toto import ( "errors" "unicode/utf8" ) // errBad...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/certconstraint.go
vendor/github.com/in-toto/in-toto-golang/in_toto/certconstraint.go
package in_toto import ( "crypto/x509" "fmt" "net/url" ) const ( AllowAllConstraint = "*" ) // CertificateConstraint defines the attributes a certificate must have to act as a functionary. // A wildcard `*` allows any value in the specified attribute, where as an empty array or value // asserts that the certific...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/runlib.go
vendor/github.com/in-toto/in-toto-golang/in_toto/runlib.go
package in_toto import ( "bytes" "errors" "fmt" "io" "os" "os/exec" "path/filepath" "reflect" "strings" "syscall" "github.com/shibumi/go-pathspec" ) // ErrSymCycle signals a detected symlink cycle in our RecordArtifacts() function. var ErrSymCycle = errors.New("symlink cycle detected") // ErrUnsupportedH...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/attestations.go
vendor/github.com/in-toto/in-toto-golang/in_toto/attestations.go
package in_toto import ( "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common" slsa01 "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.1" slsa02 "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.2" slsa1 "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v1" ) const (...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/keylib.go
vendor/github.com/in-toto/in-toto-golang/in_toto/keylib.go
package in_toto import ( "crypto" "crypto/ecdsa" "crypto/ed25519" "crypto/rand" "crypto/rsa" "crypto/sha256" "crypto/x509" "encoding/hex" "encoding/pem" "errors" "fmt" "io" "os" "strings" "github.com/secure-systems-lab/go-securesystemslib/cjson" ) // ErrFailedPEMParsing gets returned when PKCS1, PKCS8...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/envelope.go
vendor/github.com/in-toto/in-toto-golang/in_toto/envelope.go
package in_toto import ( "context" "encoding/base64" "encoding/json" "errors" "fmt" "os" "github.com/secure-systems-lab/go-securesystemslib/cjson" "github.com/secure-systems-lab/go-securesystemslib/dsse" "github.com/secure-systems-lab/go-securesystemslib/signerverifier" ) // PayloadType is the payload type ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/util_unix.go
vendor/github.com/in-toto/in-toto-golang/in_toto/util_unix.go
//go:build linux || darwin || !windows // +build linux darwin !windows package in_toto import "golang.org/x/sys/unix" func isWritable(path string) error { err := unix.Access(path, unix.W_OK) if err != nil { return err } 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/in-toto/in-toto-golang/in_toto/verifylib.go
vendor/github.com/in-toto/in-toto-golang/in_toto/verifylib.go
/* Package in_toto implements types and routines to verify a software supply chain according to the in-toto specification. See https://github.com/in-toto/docs/blob/master/in-toto-spec.md */ package in_toto import ( "crypto/x509" "errors" "fmt" "io" "os" "path" "path/filepath" "reflect" "regexp" "strings" "t...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/model.go
vendor/github.com/in-toto/in-toto-golang/in_toto/model.go
package in_toto import ( "crypto/ecdsa" "crypto/rsa" "crypto/x509" "encoding/json" "errors" "fmt" "os" "reflect" "regexp" "strconv" "strings" "time" "github.com/secure-systems-lab/go-securesystemslib/cjson" "github.com/secure-systems-lab/go-securesystemslib/dsse" ) /* KeyVal contains the actual values ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/util.go
vendor/github.com/in-toto/in-toto-golang/in_toto/util.go
package in_toto import ( "encoding/json" "errors" "fmt" "reflect" "strings" ) var ErrUnknownMetadataType = errors.New("unknown metadata type encountered: not link or layout") /* Set represents a data structure for set operations. See `NewSet` for how to create a Set, and available Set receivers for useful set 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/in-toto/in-toto-golang/in_toto/hashlib.go
vendor/github.com/in-toto/in-toto-golang/in_toto/hashlib.go
package in_toto import ( "crypto/sha256" "crypto/sha512" "hash" ) /* getHashMapping returns a mapping from hash algorithm to supported hash interface. */ func getHashMapping() map[string]func() hash.Hash { return map[string]func() hash.Hash{ "sha256": sha256.New, "sha512": sha512.New, "sha384": sha512.New38...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/util_windows.go
vendor/github.com/in-toto/in-toto-golang/in_toto/util_windows.go
package in_toto import ( "errors" "os" ) func isWritable(path string) error { // get fileInfo info, err := os.Stat(path) if err != nil { return err } // check if path is a directory if !info.IsDir() { return errors.New("not a directory") } // Check if the user bit is enabled in file permission if inf...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/rulelib.go
vendor/github.com/in-toto/in-toto-golang/in_toto/rulelib.go
package in_toto import ( "fmt" "strings" ) // An error message issued in UnpackRule if it receives a malformed rule. var errorMsg = "Wrong rule format, available formats are:\n" + "\tMATCH <pattern> [IN <source-path-prefix>] WITH (MATERIALS|PRODUCTS)" + " [IN <destination-path-prefix>] FROM <step>,\n" + "\tCREAT...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.2/provenance.go
vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.2/provenance.go
package v02 import ( "time" "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common" ) const ( // PredicateSLSAProvenance represents a build provenance for an artifact. PredicateSLSAProvenance = "https://slsa.dev/provenance/v0.2" ) // These are type aliases to common to avoid backwards incompatible 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/in-toto/in-toto-golang/in_toto/slsa_provenance/v1/provenance.go
vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v1/provenance.go
package v1 import ( "time" "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common" ) const ( // PredicateSLSAProvenance represents a build provenance for an artifact. PredicateSLSAProvenance = "https://slsa.dev/provenance/v1" ) // ProvenancePredicate is the provenance predicate definition. type Prove...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.1/provenance.go
vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/v0.1/provenance.go
package v01 import ( "time" "github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common" ) const ( // PredicateSLSAProvenance represents a build provenance for an artifact. PredicateSLSAProvenance = "https://slsa.dev/provenance/v0.1" ) // ProvenancePredicate is the provenance predicate definition. type Pr...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common/common.go
vendor/github.com/in-toto/in-toto-golang/in_toto/slsa_provenance/common/common.go
package common // DigestSet contains a set of digests. It is represented as a map from // algorithm name to lowercase hex-encoded value. type DigestSet map[string]string // ProvenanceBuilder idenfifies the entity that executed the build steps. type ProvenanceBuilder struct { ID string `json:"id"` } // ProvenanceMat...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/beorn7/perks/quantile/stream.go
vendor/github.com/beorn7/perks/quantile/stream.go
// Package quantile computes approximate quantiles over an unbounded data // stream within low memory and CPU bounds. // // A small amount of accuracy is traded to achieve the above properties. // // Multiple streams can be merged before calling Query to generate a single set // of results. This is meaningful when the ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/fuzz.go
vendor/github.com/miekg/dns/fuzz.go
//go:build fuzz // +build fuzz package dns import "strings" func Fuzz(data []byte) int { msg := new(Msg) if err := msg.Unpack(data); err != nil { return 0 } if _, err := msg.Pack(); err != nil { return 0 } return 1 } func FuzzNewRR(data []byte) int { str := string(data) // Do not fuzz lines that inclu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/listen_socket_options.go
vendor/github.com/miekg/dns/listen_socket_options.go
//go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd // +build aix darwin dragonfly freebsd linux netbsd openbsd package dns import ( "context" "net" "syscall" "golang.org/x/sys/unix" ) const supportsReusePort = true func reuseportControl(network, address string, c syscall.RawConn) er...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/nsecx.go
vendor/github.com/miekg/dns/nsecx.go
package dns import ( "crypto/sha1" "encoding/hex" "strings" ) // HashName hashes a string (label) according to RFC 5155. It returns the hashed string in uppercase. func HashName(label string, ha uint8, iter uint16, salt string) string { if ha != SHA1 { return "" } wireSalt := make([]byte, hex.DecodedLen(len(...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/reverse.go
vendor/github.com/miekg/dns/reverse.go
package dns // StringToType is the reverse of TypeToString, needed for string parsing. var StringToType = reverseInt16(TypeToString) // StringToClass is the reverse of ClassToString, needed for string parsing. var StringToClass = reverseInt16(ClassToString) // StringToOpcode is a map of opcodes to strings. var Strin...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/smimea.go
vendor/github.com/miekg/dns/smimea.go
package dns import ( "crypto/sha256" "crypto/x509" "encoding/hex" ) // Sign creates a SMIMEA record from an SSL certificate. func (r *SMIMEA) Sign(usage, selector, matchingType int, cert *x509.Certificate) (err error) { r.Hdr.Rrtype = TypeSMIMEA r.Usage = uint8(usage) r.Selector = uint8(selector) r.MatchingTyp...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/tools.go
vendor/github.com/miekg/dns/tools.go
//go:build tools // +build tools // We include our tool dependencies for `go generate` here to ensure they're // properly tracked by the go tool. See the Go Wiki for the rationale behind this: // https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module. package dns import _ "golang.or...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/duplicate.go
vendor/github.com/miekg/dns/duplicate.go
package dns //go:generate go run duplicate_generate.go // IsDuplicate checks of r1 and r2 are duplicates of each other, excluding the TTL. // So this means the header data is equal *and* the RDATA is the same. Returns true // if so, otherwise false. It's a protocol violation to have identical RRs in a message. func 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/miekg/dns/msg.go
vendor/github.com/miekg/dns/msg.go
// DNS packet assembly, see RFC 1035. Converting from - Unpack() - // and to - Pack() - wire format. // All the packers and unpackers take a (msg []byte, off int) // and return (off1 int, ok bool). If they return ok==false, they // also return off1==len(msg), so that the next unpacker will // also fail. This lets us ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/xfr.go
vendor/github.com/miekg/dns/xfr.go
package dns import ( "crypto/tls" "fmt" "time" ) // Envelope is used when doing a zone transfer with a remote server. type Envelope struct { RR []RR // The set of RRs in the answer section of the xfr reply message. Error error // If something went wrong, this contains the error. } // A Transfer defines para...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/privaterr.go
vendor/github.com/miekg/dns/privaterr.go
package dns import "strings" // PrivateRdata is an interface used for implementing "Private Use" RR types, see // RFC 6895. This allows one to experiment with new RR types, without requesting an // official type code. Also see dns.PrivateHandle and dns.PrivateHandleRemove. type PrivateRdata interface { // String ret...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/client.go
vendor/github.com/miekg/dns/client.go
package dns // A client implementation. import ( "context" "crypto/tls" "encoding/binary" "io" "net" "strings" "time" ) const ( dnsTimeout time.Duration = 2 * time.Second tcpIdleTimeout time.Duration = 8 * time.Second ) func isPacketConn(c net.Conn) bool { if _, ok := c.(net.PacketConn); !ok { 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/miekg/dns/types.go
vendor/github.com/miekg/dns/types.go
package dns import ( "bytes" "fmt" "net" "strconv" "strings" "time" ) type ( // Type is a DNS type. Type uint16 // Class is a DNS class. Class uint16 // Name is a DNS domain name. Name string ) // Packet formats // Wire constants and supported types. const ( // valid RR_Header.Rrtype and Question.qtype...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/listen_no_socket_options.go
vendor/github.com/miekg/dns/listen_no_socket_options.go
//go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd package dns import ( "fmt" "net" ) const ( supportsReusePort = false supportsReuseAddr = false ) func listenTCP(network, addr string, reuseport, reuseaddr bool...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/hash.go
vendor/github.com/miekg/dns/hash.go
package dns import ( "bytes" "crypto" "hash" ) // identityHash will not hash, it only buffers the data written into it and returns it as-is. type identityHash struct { b *bytes.Buffer } // Implement the hash.Hash interface. func (i identityHash) Write(b []byte) (int, error) { return i.b.Write(b) } func (i ident...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/ztypes.go
vendor/github.com/miekg/dns/ztypes.go
// Code generated by "go run types_generate.go"; DO NOT EDIT. package dns import ( "encoding/base64" "net" ) // TypeToRR is a map of constructors for each RR type. var TypeToRR = map[uint16]func() RR{ TypeA: func() RR { return new(A) }, TypeAAAA: func() RR { return new(AAAA) }, TypeAFSDB: fu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/scan.go
vendor/github.com/miekg/dns/scan.go
package dns import ( "bufio" "fmt" "io" "io/fs" "os" "path" "path/filepath" "strconv" "strings" ) const maxTok = 512 // Token buffer start size, and growth size amount. // The maximum depth of $INCLUDE directives supported by the // ZoneParser API. const maxIncludeDepth = 7 // Tokenize a RFC 1035 zone file...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/dns.go
vendor/github.com/miekg/dns/dns.go
package dns import ( "encoding/hex" "strconv" ) const ( year68 = 1 << 31 // For RFC1982 (Serial Arithmetic) calculations in 32 bits. defaultTtl = 3600 // Default internal TTL. // DefaultMsgSize is the standard default for messages larger than 512 bytes. DefaultMsgSize = 4096 // MinMsgSize is the minima...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/defaults.go
vendor/github.com/miekg/dns/defaults.go
package dns import ( "errors" "net" "strconv" "strings" ) const hexDigit = "0123456789abcdef" // Everything is assumed in ClassINET. // SetReply creates a reply message from a request message. func (dns *Msg) SetReply(request *Msg) *Msg { dns.Id = request.Id dns.Response = true dns.Opcode = request.Opcode 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/miekg/dns/dane.go
vendor/github.com/miekg/dns/dane.go
package dns import ( "crypto/sha256" "crypto/sha512" "crypto/x509" "encoding/hex" "errors" ) // CertificateToDANE converts a certificate to a hex string as used in the TLSA or SMIMEA records. func CertificateToDANE(selector, matchingType uint8, cert *x509.Certificate) (string, error) { switch matchingType { ca...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/miekg/dns/labels.go
vendor/github.com/miekg/dns/labels.go
package dns // Holds a bunch of helper functions for dealing with labels. // SplitDomainName splits a name string into it's labels. // www.miek.nl. returns []string{"www", "miek", "nl"} // .www.miek.nl. returns []string{"", "www", "miek", "nl"}, // The root label (.) returns nil. Note that using // strings.Split(s) 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/miekg/dns/format.go
vendor/github.com/miekg/dns/format.go
package dns import ( "net" "reflect" "strconv" ) // NumField returns the number of rdata fields r has. func NumField(r RR) int { return reflect.ValueOf(r).Elem().NumField() - 1 // Remove RR_Header } // Field returns the rdata field i as a string. Fields are indexed starting from 1. // RR types that holds slice d...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false