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/opencontainers/runtime-tools/generate/seccomp/seccomp_default_linux.go | vendor/github.com/opencontainers/runtime-tools/generate/seccomp/seccomp_default_linux.go | //go:build linux
package seccomp
import "golang.org/x/sys/unix"
// System values passed through on linux
const (
CloneNewIPC = unix.CLONE_NEWIPC
CloneNewNet = unix.CLONE_NEWNET
CloneNewNS = unix.CLONE_NEWNS
CloneNewPID = unix.CLONE_NEWPID
CloneNewUser = unix.CLONE_NEWUSER
CloneNewUTS = unix.C... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-tools/generate/seccomp/syscall_compare.go | vendor/github.com/opencontainers/runtime-tools/generate/seccomp/syscall_compare.go | package seccomp
import (
"fmt"
"reflect"
"strconv"
"strings"
rspec "github.com/opencontainers/runtime-spec/specs-go"
)
// Determine if a new syscall rule should be appended, overwrite an existing rule
// or if no action should be taken at all
func decideCourseOfAction(newSyscall *rspec.LinuxSyscall, syscalls []... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-tools/generate/seccomp/parse_architecture.go | vendor/github.com/opencontainers/runtime-tools/generate/seccomp/parse_architecture.go | package seccomp
import (
"fmt"
rspec "github.com/opencontainers/runtime-spec/specs-go"
)
// ParseArchitectureFlag takes the raw string passed with the --arch flag, parses it
// and updates the Seccomp config accordingly
func ParseArchitectureFlag(architectureArg string, config *rspec.LinuxSeccomp) error {
correct... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-tools/generate/seccomp/parse_arguments.go | vendor/github.com/opencontainers/runtime-tools/generate/seccomp/parse_arguments.go | package seccomp
import (
"fmt"
"strconv"
rspec "github.com/opencontainers/runtime-spec/specs-go"
)
// parseArguments takes a list of arguments (delimArgs). It parses and fills out
// the argument information and returns a slice of arg structs
func parseArguments(delimArgs []string) ([]rspec.LinuxSeccompArg, 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/opencontainers/runtime-tools/generate/seccomp/seccomp_default.go | vendor/github.com/opencontainers/runtime-tools/generate/seccomp/seccomp_default.go | package seccomp
import (
"runtime"
rspec "github.com/opencontainers/runtime-spec/specs-go"
)
func arches() []rspec.Arch {
native := runtime.GOARCH
switch native {
case "amd64":
return []rspec.Arch{rspec.ArchX86_64, rspec.ArchX86, rspec.ArchX32}
case "arm64":
return []rspec.Arch{rspec.ArchARM, rspec.ArchAA... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-tools/validate/capabilities/validate.go | vendor/github.com/opencontainers/runtime-tools/validate/capabilities/validate.go | package capabilities
import (
"fmt"
"strings"
"sync"
"github.com/moby/sys/capability"
)
// CapValid checks whether a capability is valid. If hostSpecific is set,
// it also checks that the capability is supported on the current host.
func CapValid(c string, hostSpecific bool) error {
if !strings.HasPrefix(c, "C... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-tools/validate/capabilities/lastcap.go | vendor/github.com/opencontainers/runtime-tools/validate/capabilities/lastcap.go | package capabilities
import (
"github.com/moby/sys/capability"
)
// LastCap returns last cap of system.
//
// Deprecated: use github.com/moby/sys/capability.LastCap instead.
func LastCap() capability.Cap {
last, err := capability.LastCap()
if err != nil {
return -1
}
return 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/opencontainers/image-spec/specs-go/versioned.go | vendor/github.com/opencontainers/image-spec/specs-go/versioned.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/version.go | vendor/github.com/opencontainers/image-spec/specs-go/version.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/descriptor.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/descriptor.go | // Copyright 2016-2022 The Linux Foundation
//
// 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... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/index.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/index.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/manifest.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/manifest.go | // Copyright 2016-2022 The Linux Foundation
//
// 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... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/annotations.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/annotations.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/config.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/config.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/layout.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/layout.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/specs-go/v1/mediatype.go | vendor/github.com/opencontainers/image-spec/specs-go/v1/mediatype.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/identity/chainid.go | vendor/github.com/opencontainers/image-spec/identity/chainid.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/image-spec/identity/helpers.go | vendor/github.com/opencontainers/image-spec/identity/helpers.go | // Copyright 2016 The Linux Foundation
//
// 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 agre... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-spec/specs-go/config.go | vendor/github.com/opencontainers/runtime-spec/specs-go/config.go | package specs
import "os"
// Spec is the base configuration for the container.
type Spec struct {
// Version of the Open Container Initiative Runtime Specification with which the bundle complies.
Version string `json:"ociVersion"`
// Process configures the container process.
Process *Process `json:"process,omitem... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | true |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-spec/specs-go/state.go | vendor/github.com/opencontainers/runtime-spec/specs-go/state.go | package specs
// ContainerState represents the state of a container.
type ContainerState string
const (
// StateCreating indicates that the container is being created
StateCreating ContainerState = "creating"
// StateCreated indicates that the runtime has finished the create operation
StateCreated ContainerState... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-spec/specs-go/version.go | vendor/github.com/opencontainers/runtime-spec/specs-go/version.go | package specs
import "fmt"
const (
// VersionMajor is for an API incompatible changes
VersionMajor = 1
// VersionMinor is for functionality in a backwards-compatible manner
VersionMinor = 3
// VersionPatch is for backwards-compatible bug fixes
VersionPatch = 0
// VersionDev indicates development branch. Relea... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/runtime-spec/specs-go/features/features.go | vendor/github.com/opencontainers/runtime-spec/specs-go/features/features.go | // Package features provides the Features struct.
package features
// Features represents the supported features of the runtime.
type Features struct {
// OCIVersionMin is the minimum OCI Runtime Spec version recognized by the runtime, e.g., "1.0.0".
OCIVersionMin string `json:"ociVersionMin,omitempty"`
// OCIVers... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/verifiers.go | vendor/github.com/opencontainers/go-digest/verifiers.go | // Copyright 2019, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/digest.go | vendor/github.com/opencontainers/go-digest/digest.go | // Copyright 2019, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/digester.go | vendor/github.com/opencontainers/go-digest/digester.go | // Copyright 2019, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/algorithm.go | vendor/github.com/opencontainers/go-digest/algorithm.go | // Copyright 2019, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/doc.go | vendor/github.com/opencontainers/go-digest/doc.go | // Copyright 2019, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/go-digest/digestset/set.go | vendor/github.com/opencontainers/go-digest/digestset/set.go | // Copyright 2020, 2020 OCI Contributors
// Copyright 2017 Docker, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/file.go | vendor/github.com/opencontainers/cgroups/file.go | package cgroups
import (
"bytes"
"errors"
"fmt"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
)
// OpenFile opens a cgroup file in a given dir with given flags.
// It is supposed to be used for cgroup files only, and returns
// an error if the file is ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/config_hugepages.go | vendor/github.com/opencontainers/cgroups/config_hugepages.go | package cgroups
type HugepageLimit struct {
// which type of hugepage to limit.
Pagesize string `json:"page_size"`
// usage limit for hugepage.
Limit uint64 `json:"limit"`
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/stats.go | vendor/github.com/opencontainers/cgroups/stats.go | package cgroups
type ThrottlingData struct {
// Number of periods with throttling active
Periods uint64 `json:"periods,omitempty"`
// Number of periods when the container hit its throttling limit.
ThrottledPeriods uint64 `json:"throttled_periods,omitempty"`
// Aggregate time the container was throttled for in nan... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/config_linux.go | vendor/github.com/opencontainers/cgroups/config_linux.go | package cgroups
import (
systemdDbus "github.com/coreos/go-systemd/v22/dbus"
devices "github.com/opencontainers/cgroups/devices/config"
)
type FreezerState string
const (
Undefined FreezerState = ""
Frozen FreezerState = "FROZEN"
Thawed FreezerState = "THAWED"
)
// Cgroup holds properties of a cgroup 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/opencontainers/cgroups/config_blkio_device.go | vendor/github.com/opencontainers/cgroups/config_blkio_device.go | package cgroups
import "fmt"
// BlockIODevice holds major:minor format supported in blkio cgroup.
type BlockIODevice struct {
// Major is the device's major number
Major int64 `json:"major"`
// Minor is the device's minor number
Minor int64 `json:"minor"`
}
// WeightDevice struct holds a `major:minor weight`|`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/opencontainers/cgroups/utils.go | vendor/github.com/opencontainers/cgroups/utils.go | package cgroups
import (
"bufio"
"errors"
"fmt"
"io"
"math"
"os"
"path/filepath"
"strconv"
"strings"
"sync"
"time"
"github.com/moby/sys/userns"
"github.com/sirupsen/logrus"
"golang.org/x/sys/unix"
)
const (
CgroupProcesses = "cgroup.procs"
unifiedMountpoint = "/sys/fs/cgroup"
hybridMountpoint = "... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/config_rdma.go | vendor/github.com/opencontainers/cgroups/config_rdma.go | package cgroups
// LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11)
type LinuxRdma struct {
// Maximum number of HCA handles that can be opened. Default is "no limit".
HcaHandles *uint32 `json:"hca_handles,omitempty"`
// Maximum number of HCA objects that can be created. Default is "no limit".
Hc... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/v1_utils.go | vendor/github.com/opencontainers/cgroups/v1_utils.go | package cgroups
import (
"errors"
"fmt"
"os"
"path/filepath"
"slices"
"strings"
"sync"
"syscall"
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/moby/sys/mountinfo"
"golang.org/x/sys/unix"
)
// Code in this source file are specific to cgroup v1,
// and must not be used from any cgroup v2 co... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/cgroups.go | vendor/github.com/opencontainers/cgroups/cgroups.go | package cgroups
import (
"errors"
)
var (
// ErrDevicesUnsupported is an error returned when a cgroup manager
// is not configured to set device rules.
ErrDevicesUnsupported = errors.New("cgroup manager is not configured to set device rules")
// ErrRootless is returned by [Manager.Apply] when there is an 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/opencontainers/cgroups/config_ifprio_map.go | vendor/github.com/opencontainers/cgroups/config_ifprio_map.go | package cgroups
import (
"fmt"
)
type IfPrioMap struct {
Interface string `json:"interface"`
Priority int64 `json:"priority"`
}
func (i *IfPrioMap) CgroupString() string {
return fmt.Sprintf("%s %d", i.Interface, i.Priority)
}
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/getallpids.go | vendor/github.com/opencontainers/cgroups/getallpids.go | package cgroups
import (
"io/fs"
"path/filepath"
)
// GetAllPids returns all pids from the cgroup identified by path, and all its
// sub-cgroups.
func GetAllPids(path string) ([]int, error) {
var pids []int
err := filepath.WalkDir(path, func(p string, d fs.DirEntry, iErr error) error {
if iErr != nil {
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/opencontainers/cgroups/config_unsupported.go | vendor/github.com/opencontainers/cgroups/config_unsupported.go | //go:build !linux
package cgroups
// Cgroup holds properties of a cgroup on Linux
// TODO Windows: This can ultimately be entirely factored out on Windows as
// cgroups are a Unix-specific construct.
type Cgroup 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/opencontainers/cgroups/devices/config/device.go | vendor/github.com/opencontainers/cgroups/devices/config/device.go | package config
import (
"fmt"
"os"
"strconv"
)
const (
Wildcard = -1
)
type Device struct {
Rule
// Path to the device.
Path string `json:"path"`
// FileMode permission bits for the device.
FileMode os.FileMode `json:"file_mode"`
// Uid of the device.
Uid uint32 `json:"uid,omitempty"` //nolint:revive /... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/opencontainers/cgroups/devices/config/mknod_unix.go | vendor/github.com/opencontainers/cgroups/devices/config/mknod_unix.go | package config
import (
"errors"
"golang.org/x/sys/unix"
)
func mkDev(d *Rule) (uint64, error) {
if d.Major == Wildcard || d.Minor == Wildcard {
return 0, errors.New("cannot mkdev() device with wildcards")
}
return unix.Mkdev(uint32(d.Major), uint32(d.Minor)), 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/knqyf263/go-plugin/wasm/plugin_tinygo.go | vendor/github.com/knqyf263/go-plugin/wasm/plugin_tinygo.go | //go:build tinygo.wasm
// This file is designed to be imported by plugins.
package wasm
// #include <stdlib.h>
import "C"
import (
"unsafe"
)
func PtrToByte(ptr, size uint32) []byte {
b := unsafe.Slice((*byte)(unsafe.Pointer(uintptr(ptr))), size)
return b
}
func ByteToPtr(buf []byte) (uint32, uint32) {
if le... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/knqyf263/go-plugin/wasm/host.go | vendor/github.com/knqyf263/go-plugin/wasm/host.go | //go:build !wasip1
// This file is designed to be imported by hosts.
package wasm
import (
"context"
"errors"
"fmt"
"github.com/tetratelabs/wazero/api"
)
func ReadMemory(mem api.Memory, offset, size uint32) ([]byte, error) {
buf, ok := mem.Read(offset, size)
if !ok {
return nil, fmt.Errorf("Memory.Read(%d,... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/knqyf263/go-plugin/wasm/plugin.go | vendor/github.com/knqyf263/go-plugin/wasm/plugin.go | //go:build wasip1 && !tinygo.wasm
// This file is designed to be imported by plugins.
package wasm
import (
"unsafe"
)
// allocations keeps track of each allocated byte slice, keyed by a fake pointer.
// This map ensures the GC will not collect these slices while still in use.
var allocations = make(map[uint32][]b... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/zsyscall_windows.go | vendor/github.com/Microsoft/go-winio/zsyscall_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package winio
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_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/Microsoft/go-winio/file.go | vendor/github.com/Microsoft/go-winio/file.go | //go:build windows
// +build windows
package winio
import (
"errors"
"io"
"runtime"
"sync"
"sync/atomic"
"syscall"
"time"
"golang.org/x/sys/windows"
)
//sys cancelIoEx(file windows.Handle, o *windows.Overlapped) (err error) = CancelIoEx
//sys createIoCompletionPort(file windows.Handle, port windows.Handle, ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/sd.go | vendor/github.com/Microsoft/go-winio/sd.go | //go:build windows
// +build windows
package winio
import (
"errors"
"fmt"
"unsafe"
"golang.org/x/sys/windows"
)
//sys lookupAccountName(systemName *uint16, accountName string, sid *byte, sidSize *uint32, refDomain *uint16, refDomainSize *uint32, sidNameUse *uint32) (err error) = advapi32.LookupAccountNameW
//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/Microsoft/go-winio/privilege.go | vendor/github.com/Microsoft/go-winio/privilege.go | //go:build windows
// +build windows
package winio
import (
"bytes"
"encoding/binary"
"fmt"
"runtime"
"sync"
"unicode/utf16"
"golang.org/x/sys/windows"
)
//sys adjustTokenPrivileges(token windows.Token, releaseAll bool, input *byte, outputSize uint32, output *byte, requiredSize *uint32) (success bool, err 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/Microsoft/go-winio/hvsock.go | vendor/github.com/Microsoft/go-winio/hvsock.go | //go:build windows
// +build windows
package winio
import (
"context"
"errors"
"fmt"
"io"
"net"
"os"
"time"
"unsafe"
"golang.org/x/sys/windows"
"github.com/Microsoft/go-winio/internal/socket"
"github.com/Microsoft/go-winio/pkg/guid"
)
const afHVSock = 34 // AF_HYPERV
// Well known Service and VM IDs
//... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/fileinfo.go | vendor/github.com/Microsoft/go-winio/fileinfo.go | //go:build windows
// +build windows
package winio
import (
"os"
"runtime"
"unsafe"
"golang.org/x/sys/windows"
)
// FileBasicInfo contains file access time and file attributes information.
type FileBasicInfo struct {
CreationTime, LastAccessTime, LastWriteTime, ChangeTime windows.Filetime
FileAttributes ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/reparse.go | vendor/github.com/Microsoft/go-winio/reparse.go | //go:build windows
// +build windows
package winio
import (
"bytes"
"encoding/binary"
"fmt"
"strings"
"unicode/utf16"
"unsafe"
)
const (
reparseTagMountPoint = 0xA0000003
reparseTagSymlink = 0xA000000C
)
type reparseDataBuffer struct {
ReparseTag uint32
ReparseDataLength uint16
Reserved ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/syscall.go | vendor/github.com/Microsoft/go-winio/syscall.go | //go:build windows
package winio
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go ./*.go
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/backup.go | vendor/github.com/Microsoft/go-winio/backup.go | //go:build windows
// +build windows
package winio
import (
"encoding/binary"
"errors"
"fmt"
"io"
"os"
"runtime"
"unicode/utf16"
"github.com/Microsoft/go-winio/internal/fs"
"golang.org/x/sys/windows"
)
//sys backupRead(h windows.Handle, b []byte, bytesRead *uint32, abort bool, processSecurity bool, context... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/ea.go | vendor/github.com/Microsoft/go-winio/ea.go | package winio
import (
"bytes"
"encoding/binary"
"errors"
)
type fileFullEaInformation struct {
NextEntryOffset uint32
Flags uint8
NameLength uint8
ValueLength uint16
}
var (
fileFullEaInformationSize = binary.Size(&fileFullEaInformation{})
errInvalidEaBuffer = errors.New("invalid extend... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/doc.go | vendor/github.com/Microsoft/go-winio/doc.go | // This package provides utilities for efficiently performing Win32 IO operations in Go.
// Currently, this package is provides support for genreal IO and management of
// - named pipes
// - files
// - [Hyper-V sockets]
//
// This code is similar to Go's [net] package, and uses IO completion ports to avoid
// blo... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pipe.go | vendor/github.com/Microsoft/go-winio/pipe.go | //go:build windows
// +build windows
package winio
import (
"context"
"errors"
"fmt"
"io"
"net"
"os"
"runtime"
"time"
"unsafe"
"golang.org/x/sys/windows"
"github.com/Microsoft/go-winio/internal/fs"
)
//sys connectNamedPipe(pipe windows.Handle, o *windows.Overlapped) (err error) = ConnectNamedPipe
//sys ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etwlogrus/hook.go | vendor/github.com/Microsoft/go-winio/pkg/etwlogrus/hook.go | //go:build windows
// +build windows
package etwlogrus
import (
"errors"
"sort"
"github.com/sirupsen/logrus"
"github.com/Microsoft/go-winio/pkg/etw"
)
const defaultEventName = "LogrusEntry"
// ErrNoProvider is returned when a hook is created without a provider being configured.
var ErrNoProvider = errors.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/Microsoft/go-winio/pkg/etwlogrus/opts.go | vendor/github.com/Microsoft/go-winio/pkg/etwlogrus/opts.go | //go:build windows
package etwlogrus
import (
"github.com/sirupsen/logrus"
"github.com/Microsoft/go-winio/pkg/etw"
)
// etw provider
// WithNewETWProvider registers a new ETW provider and sets the hook to log using it.
// The provider will be closed when the hook is closed.
func WithNewETWProvider(n string) Hook... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/fieldopt.go | vendor/github.com/Microsoft/go-winio/pkg/etw/fieldopt.go | //go:build windows
// +build windows
package etw
import (
"fmt"
"math"
"reflect"
"time"
"unsafe"
"golang.org/x/sys/windows"
)
// FieldOpt defines the option function type that can be passed to
// Provider.WriteEvent to add fields to the event.
type FieldOpt func(em *eventMetadata, ed *eventData)
// WithField... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/newprovider.go | vendor/github.com/Microsoft/go-winio/pkg/etw/newprovider.go | //go:build windows && (amd64 || arm64 || 386)
// +build windows
// +build amd64 arm64 386
package etw
import (
"bytes"
"encoding/binary"
"unsafe"
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
// NewProviderWithOptions creates and registers a new ETW provider, allowing
// the provider ID... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/zsyscall_windows.go | vendor/github.com/Microsoft/go-winio/pkg/etw/zsyscall_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package etw
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_PEN... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_64.go | vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_64.go | //go:build windows && (amd64 || arm64)
// +build windows
// +build amd64 arm64
package etw
import (
"unsafe"
)
// byteptr64 defines a struct containing a pointer. The struct is guaranteed to
// be 64 bits, regardless of the actual size of a pointer on the platform. This
// is intended for use with certain Windows 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/Microsoft/go-winio/pkg/etw/eventopt.go | vendor/github.com/Microsoft/go-winio/pkg/etw/eventopt.go | //go:build windows
// +build windows
package etw
import (
"github.com/Microsoft/go-winio/pkg/guid"
)
type eventOptions struct {
descriptor *eventDescriptor
activityID guid.GUID
relatedActivityID guid.GUID
tags uint32
}
// EventOpt defines the option function type that can be passed 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/Microsoft/go-winio/pkg/etw/eventdatadescriptor.go | vendor/github.com/Microsoft/go-winio/pkg/etw/eventdatadescriptor.go | //go:build windows
package etw
import (
"unsafe"
)
type eventDataDescriptorType uint8
const (
eventDataDescriptorTypeUserData eventDataDescriptorType = iota
eventDataDescriptorTypeEventMetadata
eventDataDescriptorTypeProviderMetadata
)
type eventDataDescriptor struct {
ptr ptr64
size uint32
dataTyp... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/opcode_string.go | vendor/github.com/Microsoft/go-winio/pkg/etw/opcode_string.go | // Code generated by "stringer -type=Opcode -trimprefix=Opcode"; DO NOT EDIT.
package etw
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[OpcodeInfo-0]
_ = x[Opc... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/newprovider_unsupported.go | vendor/github.com/Microsoft/go-winio/pkg/etw/newprovider_unsupported.go | //go:build windows && arm
// +build windows,arm
package etw
// NewProviderWithID returns a nil provider on unsupported platforms.
func NewProviderWithOptions(name string, options ...ProviderOpt) (provider *Provider, err error) {
return nil, 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/Microsoft/go-winio/pkg/etw/level_string.go | vendor/github.com/Microsoft/go-winio/pkg/etw/level_string.go | // Code generated by "stringer -type=Level -trimprefix=Level"; DO NOT EDIT.
package etw
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[LevelAlways-0]
_ = x[Leve... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/eventdescriptor.go | vendor/github.com/Microsoft/go-winio/pkg/etw/eventdescriptor.go | package etw
import "fmt"
// Channel represents the ETW logging channel that is used. It can be used by
// event consumers to give an event special treatment.
type Channel uint8
const (
// ChannelTraceLogging is the default channel for TraceLogging events. It is
// not required to be used for TraceLogging, but will... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_32.go | vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_32.go | //go:build windows && (386 || arm)
// +build windows
// +build 386 arm
package etw
import (
"unsafe"
)
// byteptr64 defines a struct containing a pointer. The struct is guaranteed to
// be 64 bits, regardless of the actual size of a pointer on the platform. This
// is intended for use with certain Windows APIs that... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/syscall.go | vendor/github.com/Microsoft/go-winio/pkg/etw/syscall.go | //go:build windows
package etw
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go syscall.go
//sys eventRegister(providerId *windows.GUID, callback uintptr, callbackContext uintptr, providerHandle *providerHandle) (win32err error) = advapi32.EventRegister
//sys eventUn... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/providerglobal.go | vendor/github.com/Microsoft/go-winio/pkg/etw/providerglobal.go | //go:build windows
// +build windows
package etw
import (
"sync"
)
// Because the provider callback function needs to be able to access the
// provider data when it is invoked by ETW, we need to keep provider data stored
// in a global map based on an index. The index is passed as the callback
// context to ETW.
ty... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/wrapper_64.go | vendor/github.com/Microsoft/go-winio/pkg/etw/wrapper_64.go | //go:build windows && (amd64 || arm64)
// +build windows
// +build amd64 arm64
package etw
import (
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
func eventUnregister(providerHandle providerHandle) (win32err error) {
return eventUnregister_64(providerHandle)
}
func eventWriteTransfer(
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/Microsoft/go-winio/pkg/etw/eventdata.go | vendor/github.com/Microsoft/go-winio/pkg/etw/eventdata.go | //go:build windows
// +build windows
package etw
import (
"bytes"
"encoding/binary"
"golang.org/x/sys/windows"
)
// eventData maintains a buffer which builds up the data for an ETW event. It
// needs to be paired with EventMetadata which describes the event.
type eventData struct {
buffer bytes.Buffer
}
// toB... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/eventmetadata.go | vendor/github.com/Microsoft/go-winio/pkg/etw/eventmetadata.go | //go:build windows
package etw
import (
"bytes"
"encoding/binary"
)
// inType indicates the type of data contained in the ETW event.
type inType byte
// Various inType definitions for TraceLogging. These must match the definitions
// found in TraceLoggingProvider.h in the Windows SDK.
//
//nolint:deadcode,varchec... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/provider.go | vendor/github.com/Microsoft/go-winio/pkg/etw/provider.go | //go:build windows
// +build windows
package etw
import (
"crypto/sha1" //nolint:gosec // not used for secure application
"encoding/binary"
"strings"
"unicode/utf16"
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
// Provider represents an ETW event provider. It is identified by a provid... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/doc.go | vendor/github.com/Microsoft/go-winio/pkg/etw/doc.go | // Package etw provides support for TraceLogging-based ETW (Event Tracing
// for Windows). TraceLogging is a format of ETW events that are self-describing
// (the event contains information on its own schema). This allows them to be
// decoded without needing a separate manifest with event information. The
// implement... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/etw/wrapper_32.go | vendor/github.com/Microsoft/go-winio/pkg/etw/wrapper_32.go | //go:build windows && (386 || arm)
// +build windows
// +build 386 arm
package etw
import (
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
func low(v providerHandle) uint32 {
return uint32(v & 0xffffffff)
}
func high(v providerHandle) uint32 {
return low(v >> 32)
}
func eventUnregister(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/Microsoft/go-winio/pkg/guid/guid_nonwindows.go | vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.go | //go:build !windows
// +build !windows
package guid
// GUID represents a GUID/UUID. It has the same structure as
// golang.org/x/sys/windows.GUID so that it can be used with functions expecting
// that type. It is defined as its own type as that is only available to builds
// targeted at `windows`. The representation... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go | vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go | //go:build windows
// +build windows
package guid
import "golang.org/x/sys/windows"
// GUID represents a GUID/UUID. It has the same structure as
// golang.org/x/sys/windows.GUID so that it can be used with functions expecting
// that type. It is defined as its own type so that stringification and
// marshaling can b... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/guid/variant_string.go | vendor/github.com/Microsoft/go-winio/pkg/guid/variant_string.go | // Code generated by "stringer -type=Variant -trimprefix=Variant -linecomment"; DO NOT EDIT.
package guid
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[VariantU... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/guid/guid.go | vendor/github.com/Microsoft/go-winio/pkg/guid/guid.go | // Package guid provides a GUID type. The backing structure for a GUID is
// identical to that used by the golang.org/x/sys/windows GUID type.
// There are two main binary encodings used for a GUID, the big-endian encoding,
// and the Windows (mixed-endian) encoding. See here for details:
// https://en.wikipedia.org/wi... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/bindfilter/zsyscall_windows.go | vendor/github.com/Microsoft/go-winio/pkg/bindfilter/zsyscall_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package bindfilter
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/bindfilter/bind_filter.go | vendor/github.com/Microsoft/go-winio/pkg/bindfilter/bind_filter.go | //go:build windows
// +build windows
package bindfilter
import (
"bytes"
"encoding/binary"
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"unsafe"
"golang.org/x/sys/windows"
)
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go ./bind_filter.go
//sys bfSetupFilt... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/fs/resolve.go | vendor/github.com/Microsoft/go-winio/pkg/fs/resolve.go | //go:build windows
package fs
import (
"errors"
"os"
"strings"
"golang.org/x/sys/windows"
"github.com/Microsoft/go-winio/internal/fs"
)
// ResolvePath returns the final path to a file or directory represented, resolving symlinks,
// handling mount points, etc.
// The resolution works by using the Windows API ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/fs/fs_windows.go | vendor/github.com/Microsoft/go-winio/pkg/fs/fs_windows.go | package fs
import (
"errors"
"path/filepath"
"golang.org/x/sys/windows"
"github.com/Microsoft/go-winio/internal/stringbuffer"
)
var (
// ErrInvalidPath is returned when the location of a file path doesn't begin with a driver letter.
ErrInvalidPath = errors.New("the path provided to GetFileSystemType must star... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/pkg/fs/doc.go | vendor/github.com/Microsoft/go-winio/pkg/fs/doc.go | // This package contains Win32 filesystem functionality.
package fs
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/stringbuffer/wstring.go | vendor/github.com/Microsoft/go-winio/internal/stringbuffer/wstring.go | package stringbuffer
import (
"sync"
"unicode/utf16"
)
// TODO: worth exporting and using in mkwinsyscall?
// Uint16BufferSize is the buffer size in the pool, chosen somewhat arbitrarily to accommodate
// large path strings:
// MAX_PATH (260) + size of volume GUID prefix (49) + null terminator = 310.
const MinWStr... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/socket/rawaddr.go | vendor/github.com/Microsoft/go-winio/internal/socket/rawaddr.go | package socket
import (
"unsafe"
)
// RawSockaddr allows structs to be used with [Bind] and [ConnectEx]. The
// struct must meet the Win32 sockaddr requirements specified here:
// https://docs.microsoft.com/en-us/windows/win32/winsock/sockaddr-2
//
// Specifically, the struct size must be least larger than an int16 ... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/socket/zsyscall_windows.go | vendor/github.com/Microsoft/go-winio/internal/socket/zsyscall_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package socket
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/socket/socket.go | vendor/github.com/Microsoft/go-winio/internal/socket/socket.go | //go:build windows
package socket
import (
"errors"
"fmt"
"net"
"sync"
"syscall"
"unsafe"
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go socket.go
//sys getsockname(s windows.Handle, 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/Microsoft/go-winio/internal/fs/zsyscall_windows.go | vendor/github.com/Microsoft/go-winio/internal/fs/zsyscall_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package fs
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_PEND... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/fs/security.go | vendor/github.com/Microsoft/go-winio/internal/fs/security.go | package fs
// https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-security_impersonation_level
type SecurityImpersonationLevel int32 // C default enums underlying type is `int`, which is Go `int32`
// Impersonation levels
const (
SecurityAnonymous SecurityImpersonationLevel = 0
SecurityIdentific... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/fs/doc.go | vendor/github.com/Microsoft/go-winio/internal/fs/doc.go | // This package contains Win32 filesystem functionality.
package fs
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/internal/fs/fs.go | vendor/github.com/Microsoft/go-winio/internal/fs/fs.go | //go:build windows
package fs
import (
"golang.org/x/sys/windows"
"github.com/Microsoft/go-winio/internal/stringbuffer"
)
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zsyscall_windows.go fs.go
// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew
/... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/backuptar/strconv.go | vendor/github.com/Microsoft/go-winio/backuptar/strconv.go | //go:build windows
package backuptar
import (
"archive/tar"
"fmt"
"strconv"
"strings"
"time"
)
// Functions copied from https://github.com/golang/go/blob/master/src/archive/tar/strconv.go
// as we need to manage the LIBARCHIVE.creationtime PAXRecord manually.
// Idea taken from containerd which did the same thi... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/backuptar/doc.go | vendor/github.com/Microsoft/go-winio/backuptar/doc.go | // This file only exists to allow go get on non-Windows platforms.
package backuptar
| go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/backuptar/tar.go | vendor/github.com/Microsoft/go-winio/backuptar/tar.go | //go:build windows
// +build windows
package backuptar
import (
"archive/tar"
"encoding/base64"
"fmt"
"io"
"path/filepath"
"strconv"
"strings"
"time"
"github.com/Microsoft/go-winio"
"golang.org/x/sys/windows"
)
//nolint:deadcode,varcheck // keep unused constants for potential future use
const (
cISUID =... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
moby/moby | https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/Microsoft/go-winio/vhd/vhd.go | vendor/github.com/Microsoft/go-winio/vhd/vhd.go | //go:build windows
// +build windows
package vhd
import (
"fmt"
"syscall"
"github.com/Microsoft/go-winio/pkg/guid"
"golang.org/x/sys/windows"
)
//go:generate go run github.com/Microsoft/go-winio/tools/mkwinsyscall -output zvhd_windows.go vhd.go
//sys createVirtualDisk(virtualStorageType *VirtualStorageType, 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/Microsoft/go-winio/vhd/zvhd_windows.go | vendor/github.com/Microsoft/go-winio/vhd/zvhd_windows.go | //go:build windows
// Code generated by 'go generate' using "github.com/Microsoft/go-winio/tools/mkwinsyscall"; DO NOT EDIT.
package vhd
import (
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
var _ unsafe.Pointer
// Do the interface allocations only once for common
// Errno values.
const (
errnoERROR_IO_PEN... | go | Apache-2.0 | 015cd3d3fdf4a1ad9f27f132013bea7838da721b | 2026-01-07T08:35:43.425641Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.