├── doc.go ├── util ├── network │ ├── cniprovider │ │ ├── allowempty.s │ │ └── cni_unsafe.go │ ├── network.go │ ├── netproviders │ │ ├── network_windows.go │ │ └── network_unix.go │ └── none.go ├── archutil │ ├── Makefile │ ├── fixtures │ │ ├── exit.s390x.s │ │ ├── exit.arm64.s │ │ ├── exit.mips64.s │ │ ├── exit.riscv64.s │ │ ├── exit.arm.s │ │ ├── exit.mips64le.s │ │ ├── exit.386.s │ │ └── exit.ppc64le.s │ ├── 386_check_386.go │ ├── arm_check_arm.go │ ├── arm64_check_arm64.go │ ├── s390x_check_s390x.go │ ├── 386_check.go │ ├── arm_check.go │ ├── mips64_check_mips64.go │ ├── ppc64le_check_ppc64le.go │ ├── riscv64_check_riscv64.go │ ├── amd64_check.go │ ├── arm64_check.go │ ├── mips64le_check_mips64le.go │ ├── s390x_check.go │ ├── mips64_check.go │ ├── ppc64le_check.go │ ├── riscv64_check.go │ ├── mips64le_check.go │ ├── amd64_check_amd64.go │ └── check_windows.go ├── appcontext │ ├── appcontext_windows.go │ ├── appcontext_unix.go │ └── register.go ├── stack │ ├── generate.go │ └── stack.proto ├── apicaps │ └── pb │ │ └── generate.go ├── testutil │ └── integration │ │ ├── sandbox_windows.go │ │ └── sandbox_unix.go ├── progress │ └── progressui │ │ ├── term.go │ │ └── term_windows.go ├── sshutil │ └── transport_validation.go ├── system │ └── path_unix.go ├── winlayers │ └── context.go ├── tracing │ └── transform │ │ └── instrumentation.go └── resolver │ └── config │ └── config.go ├── .dockerignore ├── frontend ├── dockerfile │ ├── release │ │ ├── mainline │ │ │ └── tags │ │ └── labs │ │ │ └── tags │ ├── dockerfile.go │ ├── parser │ │ ├── testfiles-negative │ │ │ ├── empty_dockerfile │ │ │ │ └── Dockerfile │ │ │ ├── env_no_value │ │ │ │ └── Dockerfile │ │ │ ├── shykes-nested-json │ │ │ │ └── Dockerfile │ │ │ └── only_comments │ │ │ │ └── Dockerfile │ │ └── testfiles │ │ │ ├── escape-with-syntax │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── continue-at-eof │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── args │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── jeztah-invalid-json-unterminated-string │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── jeztah-invalid-json-single-quotes │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── escape │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── escape-after-comment │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── escape-nonewline │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── jeztah-invalid-json-json-inside-string │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── jeztah-invalid-json-unterminated-bracket │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── jeztah-invalid-json-json-inside-string-double │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── multiple-volumes │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── json │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── mumble │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── znc │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── weechat │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── escapes │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── trailing-backslash │ │ │ ├── result │ │ │ └── Dockerfile │ │ │ ├── flags │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── kartar-entrypoint-oddities │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── health │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── ADD-COPY-with-JSON │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── nginx │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ ├── continueIndent │ │ │ └── result │ │ │ ├── influxdb │ │ │ ├── Dockerfile │ │ │ └── result │ │ │ └── mail │ │ │ └── Dockerfile │ ├── instructions │ │ ├── commands_ssh.go │ │ ├── commands_secrets.go │ │ └── errors_unix.go │ ├── docs │ │ └── experimental.md │ ├── dockerfile2llb │ │ ├── defaultshell.go │ │ └── convert_norunsecurity.go │ ├── shell │ │ ├── equal_env_unix.go │ │ └── equal_env_windows.go │ └── cmd │ │ └── dockerfile-frontend │ │ └── version.go └── gateway │ └── pb │ └── generate.go ├── vendor ├── github.com │ ├── felixge │ │ └── httpsnoop │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ └── docs.go │ ├── klauspost │ │ └── compress │ │ │ ├── s2sx.sum │ │ │ ├── huff0 │ │ │ ├── .gitignore │ │ │ └── autogen.go │ │ │ ├── .gitattributes │ │ │ ├── s2sx.mod │ │ │ ├── gen.sh │ │ │ ├── zstd │ │ │ ├── fuzz.go │ │ │ ├── internal │ │ │ │ └── xxhash │ │ │ │ │ ├── xxhash_safe.go │ │ │ │ │ └── xxhash_asm.go │ │ │ └── fuzz_none.go │ │ │ └── .gitignore │ ├── Microsoft │ │ ├── go-winio │ │ │ ├── .gitignore │ │ │ ├── CODEOWNERS │ │ │ ├── backuptar │ │ │ │ └── noop.go │ │ │ ├── syscall.go │ │ │ └── pkg │ │ │ │ └── guid │ │ │ │ └── guid_windows.go │ │ └── hcsshim │ │ │ ├── .gitattributes │ │ │ ├── CODEOWNERS │ │ │ ├── internal │ │ │ ├── winapi │ │ │ │ ├── net.go │ │ │ │ ├── memory.go │ │ │ │ ├── iocp.go │ │ │ │ ├── process.go │ │ │ │ ├── processor.go │ │ │ │ ├── winapi.go │ │ │ │ ├── path.go │ │ │ │ └── errors.go │ │ │ └── hcs │ │ │ │ └── schema2 │ │ │ │ ├── mouse.go │ │ │ │ ├── battery.go │ │ │ │ ├── keyboard.go │ │ │ │ ├── guest_os.go │ │ │ │ ├── memory.go │ │ │ │ ├── plan9.go │ │ │ │ ├── close_handle.go │ │ │ │ ├── version.go │ │ │ │ ├── shared_memory_configuration.go │ │ │ │ ├── console_size.go │ │ │ │ ├── enhanced_mode_video.go │ │ │ │ ├── delete_group_operation.go │ │ │ │ ├── guest_crash_reporting.go │ │ │ │ ├── topology.go │ │ │ │ ├── container_credential_guard_remove_instance_request.go │ │ │ │ └── model_container_definition_device.go │ │ │ ├── hnssupport.go │ │ │ └── hnsglobals.go │ ├── docker │ │ ├── go-connections │ │ │ ├── sockets │ │ │ │ └── README.md │ │ │ └── tlsconfig │ │ │ │ └── certpool_other.go │ │ ├── docker │ │ │ ├── pkg │ │ │ │ ├── archive │ │ │ │ │ ├── README.md │ │ │ │ │ ├── copy_windows.go │ │ │ │ │ ├── archive_other.go │ │ │ │ │ ├── copy_unix.go │ │ │ │ │ ├── time_unsupported.go │ │ │ │ │ └── time_linux.go │ │ │ │ ├── chrootarchive │ │ │ │ │ ├── init_windows.go │ │ │ │ │ └── chroot_unix.go │ │ │ │ ├── fileutils │ │ │ │ │ └── fileutils_windows.go │ │ │ │ ├── system │ │ │ │ │ ├── umask_windows.go │ │ │ │ │ ├── image_os.go │ │ │ │ │ ├── meminfo_unsupported.go │ │ │ │ │ ├── utimes_unsupported.go │ │ │ │ │ ├── mknod_windows.go │ │ │ │ │ ├── stat_solaris.go │ │ │ │ │ ├── umask.go │ │ │ │ │ ├── stat_openbsd.go │ │ │ │ │ ├── lstat_windows.go │ │ │ │ │ ├── stat_darwin.go │ │ │ │ │ ├── chtimes_nowindows.go │ │ │ │ │ ├── mknod_freebsd.go │ │ │ │ │ ├── mknod_unix.go │ │ │ │ │ ├── args_windows.go │ │ │ │ │ ├── errors.go │ │ │ │ │ ├── process_windows.go │ │ │ │ │ └── stat_bsd.go │ │ │ │ ├── reexec │ │ │ │ │ ├── README.md │ │ │ │ │ └── command_unsupported.go │ │ │ │ └── ioutils │ │ │ │ │ └── temp_unix.go │ │ │ ├── api │ │ │ │ ├── types │ │ │ │ │ ├── error_response_ext.go │ │ │ │ │ ├── swarm │ │ │ │ │ │ └── runtime │ │ │ │ │ │ │ └── gen.go │ │ │ │ │ ├── error_response.go │ │ │ │ │ ├── id_response.go │ │ │ │ │ ├── service_update_response.go │ │ │ │ │ ├── time │ │ │ │ │ │ └── duration_convert.go │ │ │ │ │ └── container │ │ │ │ │ │ └── container_wait_o_k_body_error.go │ │ │ │ ├── common_unix.go │ │ │ │ ├── common.go │ │ │ │ ├── swagger-gen.yaml │ │ │ │ └── common_windows.go │ │ │ ├── profiles │ │ │ │ └── seccomp │ │ │ │ │ └── seccomp_unsupported.go │ │ │ ├── client │ │ │ │ ├── interface_stable.go │ │ │ │ ├── client_windows.go │ │ │ │ ├── service_remove.go │ │ │ │ ├── network_remove.go │ │ │ │ ├── plugin_set.go │ │ │ │ ├── swarm_join.go │ │ │ │ ├── container_unpause.go │ │ │ │ ├── container_pause.go │ │ │ │ ├── swarm_unlock.go │ │ │ │ ├── config_remove.go │ │ │ │ ├── secret_remove.go │ │ │ │ ├── swarm_leave.go │ │ │ │ └── transport.go │ │ │ ├── libnetwork │ │ │ │ └── resolvconf │ │ │ │ │ └── utils.go │ │ │ └── opts │ │ │ │ └── hosts_unix.go │ │ ├── cli │ │ │ └── cli │ │ │ │ ├── config │ │ │ │ ├── credentials │ │ │ │ │ ├── default_store_windows.go │ │ │ │ │ ├── default_store_darwin.go │ │ │ │ │ ├── default_store_unsupported.go │ │ │ │ │ └── default_store_linux.go │ │ │ │ └── configfile │ │ │ │ │ └── file_windows.go │ │ │ │ └── connhelper │ │ │ │ └── commandconn │ │ │ │ ├── session_windows.go │ │ │ │ ├── pdeathsig_nolinux.go │ │ │ │ ├── pdeathsig_linux.go │ │ │ │ └── session_unix.go │ │ ├── docker-credential-helpers │ │ │ └── credentials │ │ │ │ └── version.go │ │ ├── go-metrics │ │ │ ├── docs.go │ │ │ ├── helpers.go │ │ │ ├── unit.go │ │ │ └── register.go │ │ ├── go-units │ │ │ └── circle.yml │ │ └── go-events │ │ │ ├── errors.go │ │ │ └── .gitignore │ ├── tonistiigi │ │ ├── vt100 │ │ │ └── .travis.yml │ │ ├── units │ │ │ └── .travis.yml │ │ ├── fsutil │ │ │ ├── types │ │ │ │ ├── generate.go │ │ │ │ ├── stat.go │ │ │ │ ├── stat.proto │ │ │ │ └── wire.proto │ │ │ ├── copy │ │ │ │ ├── hardlink_windows.go │ │ │ │ ├── hardlink_unix.go │ │ │ │ ├── stat_bsd.go │ │ │ │ ├── stat_sysv.go │ │ │ │ └── mkdir_windows.go │ │ │ ├── stat_windows.go │ │ │ ├── .gitignore │ │ │ ├── chtimes_nolinux.go │ │ │ └── diskwriter_freebsd.go │ │ └── go-archvariant │ │ │ ├── amd64variant_unsupported.go │ │ │ ├── amd64variant_nodarwin.go │ │ │ ├── amd64variant_darwin.go │ │ │ ├── .golangci.yml │ │ │ └── amd64variant.s │ ├── prometheus │ │ ├── procfs │ │ │ ├── .gitignore │ │ │ ├── .golangci.yml │ │ │ ├── MAINTAINERS.md │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── SECURITY.md │ │ │ └── NOTICE │ │ ├── client_golang │ │ │ └── prometheus │ │ │ │ ├── .gitignore │ │ │ │ └── README.md │ │ ├── client_model │ │ │ └── NOTICE │ │ └── common │ │ │ └── NOTICE │ ├── containerd │ │ ├── containerd │ │ │ ├── .gitattributes │ │ │ ├── codecov.yml │ │ │ ├── .gitignore │ │ │ ├── code-of-conduct.md │ │ │ └── .golangci.yml │ │ ├── fifo │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ └── .golangci.yml │ │ ├── typeurl │ │ │ └── .gitignore │ │ ├── fuse-overlayfs-snapshotter │ │ │ ├── .dockerignore │ │ │ ├── .gitignore │ │ │ └── MAINTAINERS │ │ ├── go-cni │ │ │ ├── .gitignore │ │ │ └── .golangci.yml │ │ ├── continuity │ │ │ ├── sysx │ │ │ │ └── README.md │ │ │ ├── .golangci.yml │ │ │ └── .gitignore │ │ ├── ttrpc │ │ │ └── .gitignore │ │ └── console │ │ │ └── .golangci.yml │ ├── hanwen │ │ └── go-fuse │ │ │ └── v2 │ │ │ ├── fuse │ │ │ ├── .gitignore │ │ │ ├── typeprint.go │ │ │ ├── constants_freebsd.go │ │ │ ├── constants_linux.go │ │ │ ├── request_darwin.go │ │ │ ├── request_linux.go │ │ │ └── splice_darwin.go │ │ │ ├── fs │ │ │ ├── default.go │ │ │ ├── files_darwin.go │ │ │ ├── constants_linux.go │ │ │ └── constants_darwin.go │ │ │ └── internal │ │ │ └── utimens │ │ │ └── utimens_linux.go │ ├── pkg │ │ ├── profile │ │ │ ├── AUTHORS │ │ │ └── .travis.yml │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── urfave │ │ └── cli │ │ │ ├── .flake8 │ │ │ └── .gitignore │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_js.go │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── appveyor.yml │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ └── .travis.yml │ ├── golang-jwt │ │ └── jwt │ │ │ └── v4 │ │ │ ├── .gitignore │ │ │ ├── staticcheck.conf │ │ │ └── doc.go │ ├── matttproud │ │ └── golang_protobuf_extensions │ │ │ ├── pbutil │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ │ └── NOTICE │ ├── agext │ │ └── levenshtein │ │ │ ├── MAINTAINERS │ │ │ ├── NOTICE │ │ │ └── test.sh │ ├── hashicorp │ │ ├── go-retryablehttp │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ └── go-immutable-radix │ │ │ ├── edges.go │ │ │ └── .gitignore │ ├── pelletier │ │ └── go-toml │ │ │ ├── .dockerignore │ │ │ ├── .gitignore │ │ │ ├── PULL_REQUEST_TEMPLATE.md │ │ │ ├── fuzz.sh │ │ │ ├── Dockerfile │ │ │ └── tomltree_writepub.go │ ├── opencontainers │ │ ├── go-digest │ │ │ ├── .travis.yml │ │ │ ├── .mailmap │ │ │ └── MAINTAINERS │ │ └── selinux │ │ │ └── go-selinux │ │ │ └── doc.go │ ├── russross │ │ └── blackfriday │ │ │ └── v2 │ │ │ └── .gitignore │ ├── morikuni │ │ └── aec │ │ │ └── sample.gif │ ├── google │ │ ├── shlex │ │ │ └── README │ │ ├── uuid │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTORS │ │ │ ├── CONTRIBUTING.md │ │ │ └── doc.go │ │ └── go-cmp │ │ │ └── cmp │ │ │ └── internal │ │ │ └── flags │ │ │ └── flags.go │ ├── grpc-ecosystem │ │ ├── grpc-gateway │ │ │ ├── utilities │ │ │ │ └── doc.go │ │ │ └── runtime │ │ │ │ └── doc.go │ │ └── go-grpc-middleware │ │ │ ├── slack.png │ │ │ ├── .travis.yml │ │ │ └── makefile │ ├── coreos │ │ └── go-systemd │ │ │ └── v22 │ │ │ └── NOTICE │ ├── go-logr │ │ ├── logr │ │ │ └── CHANGELOG.md │ │ └── stdr │ │ │ └── README.md │ ├── ishidawataru │ │ └── sctp │ │ │ ├── NOTICE │ │ │ └── .gitignore │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── moby │ │ └── sys │ │ │ ├── mount │ │ │ ├── doc.go │ │ │ └── mounter_unsupported.go │ │ │ ├── mountinfo │ │ │ └── mountinfo_windows.go │ │ │ └── signal │ │ │ └── signal_unsupported.go │ ├── gofrs │ │ └── flock │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── stretchr │ │ └── testify │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ └── require.go.tmpl │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ └── errors.go │ ├── cenkalti │ │ └── backoff │ │ │ └── v4 │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── cespare │ │ └── xxhash │ │ │ └── v2 │ │ │ ├── xxhash_amd64.go │ │ │ └── xxhash_safe.go │ ├── armon │ │ └── circbuf │ │ │ └── .gitignore │ ├── cpuguy83 │ │ └── go-md2man │ │ │ └── v2 │ │ │ └── md2man │ │ │ └── md2man.go │ └── shurcooL │ │ └── sanitized_anchor_name │ │ └── .travis.yml ├── go.opencensus.io │ ├── AUTHORS │ └── .gitignore ├── google.golang.org │ ├── grpc │ │ ├── AUTHORS │ │ ├── GOVERNANCE.md │ │ ├── CODE-OF-CONDUCT.md │ │ └── SECURITY.md │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ ├── flags │ │ │ ├── proto_legacy_disable.go │ │ │ └── proto_legacy_enable.go │ │ ├── impl │ │ │ └── codec_map_go112.go │ │ └── errors │ │ │ └── is_go113.go │ │ ├── encoding │ │ └── prototext │ │ │ └── doc.go │ │ └── runtime │ │ └── protoiface │ │ └── legacy.go ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ └── Makefile │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ └── endian_big.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── cpu │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_riscv64.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_linux.go │ │ │ └── cpu_ppc64x.go │ │ └── windows │ │ │ ├── empty.s │ │ │ ├── aliases.go │ │ │ ├── registry │ │ │ └── mksyscall.go │ │ │ └── mksyscall.go │ │ ├── crypto │ │ ├── curve25519 │ │ │ └── internal │ │ │ │ └── field │ │ │ │ ├── sync.checkpoint │ │ │ │ ├── README │ │ │ │ ├── fe_arm64_noasm.go │ │ │ │ ├── fe_amd64_noasm.go │ │ │ │ ├── fe_arm64.go │ │ │ │ └── fe_amd64.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ └── internal │ │ │ └── poly1305 │ │ │ └── mac_noasm.go │ │ ├── sync │ │ ├── AUTHORS │ │ └── CONTRIBUTORS │ │ ├── text │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ └── secure │ │ │ └── bidirule │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ └── time │ │ ├── AUTHORS │ │ └── CONTRIBUTORS ├── go.etcd.io │ └── bbolt │ │ ├── .gitignore │ │ ├── boltsync_unix.go │ │ ├── bolt_linux.go │ │ ├── bolt_386.go │ │ ├── bolt_arm.go │ │ ├── bolt_amd64.go │ │ ├── bolt_ppc.go │ │ ├── bolt_arm64.go │ │ ├── bolt_mipsx.go │ │ ├── bolt_ppc64.go │ │ ├── bolt_s390x.go │ │ ├── bolt_ppc64le.go │ │ ├── bolt_riscv64.go │ │ ├── bolt_mips64x.go │ │ ├── mlock_windows.go │ │ └── .travis.yml └── go.opentelemetry.io │ └── otel │ ├── .gitattributes │ ├── .gitmodules │ ├── exporters │ └── jaeger │ │ └── internal │ │ ├── gen-go │ │ ├── agent │ │ │ └── GoUnusedProtection__.go │ │ ├── jaeger │ │ │ └── GoUnusedProtection__.go │ │ └── zipkincore │ │ │ └── GoUnusedProtection__.go │ │ └── third_party │ │ └── thrift │ │ └── NOTICE │ ├── .markdown-link.json │ ├── .gitignore │ └── .markdownlint.yaml ├── examples ├── kube-consistent-hash ├── systemd │ ├── system │ │ ├── buildkit.socket │ │ └── buildkit.service │ └── user │ │ ├── buildkit-proxy.socket │ │ ├── buildkit.service │ │ └── buildkit-proxy.service └── kubernetes │ └── consistenthash │ └── show-running-pods.sh ├── .gitignore ├── session ├── auth │ └── generate.go ├── secrets │ ├── generate.go │ └── secrets.proto ├── upload │ ├── generate.go │ └── upload.proto ├── sshforward │ ├── generate.go │ └── sshprovider │ │ └── agentprovider_unix.go ├── filesync │ └── generate.go └── grpchijack │ └── hijack.go ├── solver ├── pb │ └── generate.go ├── errdefs │ ├── generate.go │ ├── context.go │ └── op.go ├── testutil │ └── memorycachestorage_test.go └── llbsolver │ └── file │ └── user_nolinux.go ├── cache ├── contenthash │ ├── generate.go │ └── filehash_windows.go └── config │ └── config.go ├── cmd ├── buildctl │ ├── build │ │ ├── opt.go │ │ ├── local.go │ │ ├── build.go │ │ └── allow.go │ ├── main_unix.go │ ├── prune_test.go │ ├── diskusage_test.go │ └── debug.go └── buildkitd │ ├── config │ ├── gcpolicy_windows.go │ └── gcpolicy_unix.go │ ├── main_windows.go │ └── util_unsupported.go ├── hack ├── lint ├── shfmt ├── validate-shfmt ├── fixtures │ └── cni.json ├── update-vendor ├── dockerfiles │ └── shfmt.Dockerfile ├── generate-authors └── cross ├── api ├── types │ └── generate.go └── services │ └── control │ └── generate.go ├── docs └── experimental-syntaxes.md ├── client ├── exporters.go ├── filter.go └── client_unix.go ├── .yamllint.yml ├── source ├── types │ └── types.go └── git │ └── gitsource_windows.go ├── .github └── CODE_OF_CONDUCT.md ├── control └── init.go └── codecov.yml /doc.go: -------------------------------------------------------------------------------- 1 | package buildkit 2 | -------------------------------------------------------------------------------- /util/network/cniprovider/allowempty.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | bin 2 | .certs 3 | .tmp 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/release/mainline/tags: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.sum: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /examples/kube-consistent-hash: -------------------------------------------------------------------------------- 1 | kubernetes/consistenthash -------------------------------------------------------------------------------- /frontend/dockerfile/dockerfile.go: -------------------------------------------------------------------------------- 1 | package dockerfile 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/release/labs/tags: -------------------------------------------------------------------------------- 1 | dfrunsecurity 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/sockets/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/vt100/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.gitignore: -------------------------------------------------------------------------------- 1 | /fixtures/ 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | coverage 3 | release-out 4 | .certs 5 | .tmp 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles-negative/empty_dockerfile/Dockerfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/codecov.yml: -------------------------------------------------------------------------------- 1 | comment: false 2 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fifo/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go text eol=lf 2 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fifo/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.txt 2 | vendor/ 3 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/.gitignore: -------------------------------------------------------------------------------- 1 | version.gen.go 2 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/huff0/.gitignore: -------------------------------------------------------------------------------- 1 | /huff0-fuzz.zip 2 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/profile/AUTHORS: -------------------------------------------------------------------------------- 1 | Dave Cheney 2 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/typeurl/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.flake8: -------------------------------------------------------------------------------- 1 | [flake8] 2 | max-line-length = 120 3 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-with-syntax/result: -------------------------------------------------------------------------------- 1 | (from "image") 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat 2 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fuse-overlayfs-snapshotter/.dockerignore: -------------------------------------------------------------------------------- 1 | *.test 2 | bin 3 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v4/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin 3 | .idea/ 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | *.bin -text -diff 3 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/.gitignore: -------------------------------------------------------------------------------- 1 | cover.dat 2 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/go-cni/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | coverage.txt 3 | profile.out 4 | -------------------------------------------------------------------------------- /vendor/github.com/urfave/cli/.gitignore: -------------------------------------------------------------------------------- 1 | *.coverprofile 2 | node_modules/ 3 | vendor 4 | .idea -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Alex Bucataru (@AlexBucataru) 2 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fuse-overlayfs-snapshotter/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | bin 3 | /_output 4 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | *.test 4 | .vscode/ -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/.dockerignore: -------------------------------------------------------------------------------- 1 | cmd/tomll/tomll 2 | cmd/tomljson/tomljson 3 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/.gitignore: -------------------------------------------------------------------------------- 1 | command-line-arguments.test 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/continue-at-eof/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.5 2 | 3 | RUN something \ -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/.golangci.yml: -------------------------------------------------------------------------------- 1 | --- 2 | linters: 3 | enable: 4 | - golint 5 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles-negative/env_no_value/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM busybox 2 | 3 | ENV PATH 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/continue-at-eof/result: -------------------------------------------------------------------------------- 1 | (from "alpine:3.5") 2 | (run "something") 3 | -------------------------------------------------------------------------------- /util/archutil/Makefile: -------------------------------------------------------------------------------- 1 | generate: 2 | DOCKER_BUILDKIT=1 docker build -o . . 3 | 4 | .PHONY: generate 5 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.s390x.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | lghi %r2, 0 5 | svc 1 6 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.mod: -------------------------------------------------------------------------------- 1 | module github.com/klauspost/compress 2 | 3 | go 1.16 4 | 5 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles-negative/shykes-nested-json/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD [ "echo", [ "nested json" ] ] 2 | -------------------------------------------------------------------------------- /session/auth/generate.go: -------------------------------------------------------------------------------- 1 | package auth 2 | 3 | //go:generate protoc --gogoslick_out=plugins=grpc:. auth.proto 4 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.6 5 | - 1.7 6 | - 1.8 7 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd s2/cmd/_s2sx/ || exit 1 4 | go generate . 5 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/.gitignore: -------------------------------------------------------------------------------- 1 | *.prof 2 | *.test 3 | *.swp 4 | /bin/ 5 | cover.out 6 | /.idea 7 | *.iml 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/sync.checkpoint: -------------------------------------------------------------------------------- 1 | b0c49ae9f59d233526f8934262c5bbbe14d4358d 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles-negative/only_comments/Dockerfile: -------------------------------------------------------------------------------- 1 | # Hello 2 | # These are just comments 3 | 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/args/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG foo bar=baz 2 | FROM ubuntu 3 | ARG abc="123 456" def 4 | -------------------------------------------------------------------------------- /solver/pb/generate.go: -------------------------------------------------------------------------------- 1 | package pb 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ --gogofaster_out=. ops.proto 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v4/staticcheck.conf: -------------------------------------------------------------------------------- 1 | checks = ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1023"] 2 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Matt T. Proud (matt.proud@gmail.com) 2 | -------------------------------------------------------------------------------- /session/secrets/generate.go: -------------------------------------------------------------------------------- 1 | package secrets 2 | 3 | //go:generate protoc --gogoslick_out=plugins=grpc:. secrets.proto 4 | -------------------------------------------------------------------------------- /session/upload/generate.go: -------------------------------------------------------------------------------- 1 | package upload 2 | 3 | //go:generate protoc --gogoslick_out=plugins=grpc:. upload.proto 4 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.arm64.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | mov x0, #0 5 | mov x8, #93 6 | svc #0 7 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.mips64.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | li $a0,0 5 | li $v0,5058 6 | syscall 7 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.riscv64.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | li a0, 0 5 | li a7, 93 6 | ecall 7 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/args/result: -------------------------------------------------------------------------------- 1 | (arg "foo" "bar=baz") 2 | (from "ubuntu") 3 | (arg "abc=\"123 456\"" "def") 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-unterminated-string/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD ["echo", "look ma, no quote!] 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-unterminated-string/result: -------------------------------------------------------------------------------- 1 | (cmd "[\"echo\", \"look ma, no quote!]") 2 | -------------------------------------------------------------------------------- /session/sshforward/generate.go: -------------------------------------------------------------------------------- 1 | package sshforward 2 | 3 | //go:generate protoc --gogoslick_out=plugins=grpc:. ssh.proto 4 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.arm.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | mov %r0, $0x0 5 | mov %r7, $0x01 6 | swi 0x0 7 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.mips64le.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | li $a0,0 5 | li $v0,5058 6 | syscall 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/README.md: -------------------------------------------------------------------------------- 1 | This code provides helper functions for dealing with archive files. 2 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.12.x 4 | - 1.13.x 5 | - master 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-single-quotes/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD ['echo','single quotes are invalid JSON'] 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-single-quotes/result: -------------------------------------------------------------------------------- 1 | (cmd "['echo','single quotes are invalid JSON']") 2 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.386.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | _start: 4 | mov $1, %eax 5 | xor %ebx, %ebx 6 | int $0x80 7 | -------------------------------------------------------------------------------- /vendor/github.com/russross/blackfriday/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/units/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 5 | - 1.9 6 | 7 | script: 8 | - go test -v ./ -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape/result: -------------------------------------------------------------------------------- 1 | (from "image") 2 | (label "maintainer" "foo@bar.com") 3 | (env "GOPATH" "\\go") 4 | -------------------------------------------------------------------------------- /util/archutil/fixtures/exit.ppc64le.s: -------------------------------------------------------------------------------- 1 | .global _start 2 | .text 3 | .abiversion 2 4 | _start: 5 | li %r0, 1 6 | li %r3, 0 7 | sc 8 | -------------------------------------------------------------------------------- /vendor/github.com/morikuni/aec/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeStory/buildkit/master/vendor/github.com/morikuni/aec/sample.gif -------------------------------------------------------------------------------- /cache/contenthash/generate.go: -------------------------------------------------------------------------------- 1 | package contenthash 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ --gogofaster_out=. checksum.proto 4 | -------------------------------------------------------------------------------- /cmd/buildctl/build/opt.go: -------------------------------------------------------------------------------- 1 | package build 2 | 3 | func ParseOpt(opts []string) (map[string]string, error) { 4 | return attrMap(opts) 5 | } 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/instructions/commands_ssh.go: -------------------------------------------------------------------------------- 1 | package instructions 2 | 3 | func isSSHMountsSupported() bool { 4 | return true 5 | } 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape/Dockerfile: -------------------------------------------------------------------------------- 1 | #escape = ` 2 | 3 | FROM image 4 | LABEL maintainer foo@bar.com 5 | ENV GOPATH ` 6 | \go -------------------------------------------------------------------------------- /hack/lint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | . $(dirname $0)/util 4 | set -e 5 | 6 | buildxCmd build --file ./hack/dockerfiles/lint.Dockerfile . 7 | -------------------------------------------------------------------------------- /vendor/github.com/google/shlex/README: -------------------------------------------------------------------------------- 1 | go-shlex is a simple lexer for go that supports shell-style quoting, 2 | commenting, and escaping. 3 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/types/generate.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | //go:generate protoc --gogoslick_out=. stat.proto wire.proto 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/instructions/commands_secrets.go: -------------------------------------------------------------------------------- 1 | package instructions 2 | 3 | func isSecretMountsSupported() bool { 4 | return true 5 | } 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-after-comment/result: -------------------------------------------------------------------------------- 1 | (from "image") 2 | (label "maintainer" "foo@bar.com") 3 | (env "GOPATH" "\\go") 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-nonewline/result: -------------------------------------------------------------------------------- 1 | (from "image") 2 | (label "maintainer" "foo@bar.com") 3 | (env "GOPATH" "\\go") 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-with-syntax/Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax = docker/dockerfile 2 | # escape = ` 3 | 4 | FROM ` 5 | image 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-json-inside-string/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD '["echo", "Well, JSON in a string is JSON too?"]' 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-json-inside-string/result: -------------------------------------------------------------------------------- 1 | (cmd "'[\"echo\", \"Well, JSON in a string is JSON too?\"]'") 2 | -------------------------------------------------------------------------------- /solver/errdefs/generate.go: -------------------------------------------------------------------------------- 1 | package errdefs 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ -I=../../../../../ --gogo_out=. errdefs.proto 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | *.{cmd,[cC][mM][dD]} text eol=crlf 3 | *.{bat,[bB][aA][tT]} text eol=crlf 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-unterminated-bracket/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD ["echo", "Please, close the brackets when you're done" 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-unterminated-bracket/result: -------------------------------------------------------------------------------- 1 | (cmd "[\"echo\", \"Please, close the brackets when you're done\"") 2 | -------------------------------------------------------------------------------- /util/appcontext/appcontext_windows.go: -------------------------------------------------------------------------------- 1 | package appcontext 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | var terminationSignals = []os.Signal{os.Interrupt} 8 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/utilities/doc.go: -------------------------------------------------------------------------------- 1 | // Package utilities provides members for internal use in grpc-gateway. 2 | package utilities 3 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | * Johannes 'fish' Ziemke @discordianfish 2 | * Paul Gier @pgier 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /util/archutil/386_check_386.go: -------------------------------------------------------------------------------- 1 | //go:build 386 2 | // +build 386 3 | 4 | package archutil 5 | 6 | func i386Supported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/arm_check_arm.go: -------------------------------------------------------------------------------- 1 | //go:build arm 2 | // +build arm 3 | 4 | package archutil 5 | 6 | func armSupported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/.gitignore: -------------------------------------------------------------------------------- 1 | test_program/test_program_bin 2 | fuzz/ 3 | cmd/tomll/tomll 4 | cmd/tomljson/tomljson 5 | cmd/tomltestgen/tomltestgen 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-json-inside-string-double/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD "[\"echo\", \"Phew, I just managed to escaped those double quotes\"]" 2 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/types/stat.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import "os" 4 | 5 | func (s Stat) IsDir() bool { 6 | return os.FileMode(s.Mode).IsDir() 7 | } 8 | -------------------------------------------------------------------------------- /util/archutil/arm64_check_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build arm64 2 | // +build arm64 3 | 4 | package archutil 5 | 6 | func arm64Supported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/s390x_check_s390x.go: -------------------------------------------------------------------------------- 1 | //go:build s390x 2 | // +build s390x 3 | 4 | package archutil 5 | 6 | func s390xSupported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/backuptar/noop.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // This file only exists to allow go get on non-Windows platforms. 3 | 4 | package backuptar 5 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_windows.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func defaultCredentialsStore() string { 4 | return "wincred" 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/chrootarchive/init_windows.go: -------------------------------------------------------------------------------- 1 | package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" 2 | 3 | func init() { 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/go-grpc-middleware/slack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CodeStory/buildkit/master/vendor/github.com/grpc-ecosystem/go-grpc-middleware/slack.png -------------------------------------------------------------------------------- /api/types/generate.go: -------------------------------------------------------------------------------- 1 | package moby_buildkit_v1_types //nolint:revive 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ -I=../../../../../ --gogo_out=plugins=grpc:. worker.proto 4 | -------------------------------------------------------------------------------- /cmd/buildctl/build/local.go: -------------------------------------------------------------------------------- 1 | package build 2 | 3 | // ParseLocal parses --local 4 | func ParseLocal(locals []string) (map[string]string, error) { 5 | return attrMap(locals) 6 | } 7 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/jeztah-invalid-json-json-inside-string-double/result: -------------------------------------------------------------------------------- 1 | (cmd "\"[\\\"echo\\\", \\\"Phew, I just managed to escaped those double quotes\\\"]\"") 2 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/multiple-volumes/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM foo 2 | 3 | VOLUME /opt/nagios/var /opt/nagios/etc /opt/nagios/libexec /var/log/apache2 /usr/share/snmp/mibs 4 | -------------------------------------------------------------------------------- /util/archutil/386_check.go: -------------------------------------------------------------------------------- 1 | //go:build !386 2 | // +build !386 3 | 4 | package archutil 5 | 6 | func i386Supported() (string, error) { 7 | return check("386", Binary386) 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/arm_check.go: -------------------------------------------------------------------------------- 1 | //go:build !arm 2 | // +build !arm 3 | 4 | package archutil 5 | 6 | func armSupported() (string, error) { 7 | return check("arm", Binaryarm) 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/mips64_check_mips64.go: -------------------------------------------------------------------------------- 1 | //go:build mips64 2 | // +build mips64 3 | 4 | package archutil 5 | 6 | func mips64Supported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /util/stack/generate.go: -------------------------------------------------------------------------------- 1 | package stack 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ --go_out=. --go_opt=paths=source_relative --go_opt=Mstack.proto=/util/stack stack.proto 4 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/configfile/file_windows.go: -------------------------------------------------------------------------------- 1 | package configfile 2 | 3 | func copyFilePermissions(src, dst string) { 4 | // TODO implement for Windows 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_darwin.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func defaultCredentialsStore() string { 4 | return "osxkeychain" 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/copy/hardlink_windows.go: -------------------------------------------------------------------------------- 1 | package fs 2 | 3 | import "os" 4 | 5 | func getLinkInfo(fi os.FileInfo) (uint64, bool) { 6 | return 0, false 7 | } 8 | -------------------------------------------------------------------------------- /frontend/dockerfile/docs/experimental.md: -------------------------------------------------------------------------------- 1 | # Dockerfile frontend syntaxes 2 | 3 | This page has moved to 4 | [Dockerfile frontend documentation](/frontend/dockerfile/docs/syntax.md) 5 | -------------------------------------------------------------------------------- /util/archutil/ppc64le_check_ppc64le.go: -------------------------------------------------------------------------------- 1 | //go:build ppc64le 2 | // +build ppc64le 3 | 4 | package archutil 5 | 6 | func ppc64leSupported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/riscv64_check_riscv64.go: -------------------------------------------------------------------------------- 1 | //go:build riscv64 2 | // +build riscv64 3 | 4 | package archutil 5 | 6 | func riscv64Supported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/session_windows.go: -------------------------------------------------------------------------------- 1 | package commandconn 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | func createSession(cmd *exec.Cmd) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/GOVERNANCE.md: -------------------------------------------------------------------------------- 1 | This repository is governed by the gRPC organization's [governance rules](https://github.com/grpc/grpc-community/blob/master/governance.md). 2 | -------------------------------------------------------------------------------- /cmd/buildkitd/config/gcpolicy_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package config 5 | 6 | func DetectDefaultGCCap(root string) int64 { 7 | return defaultCap 8 | } 9 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/multiple-volumes/result: -------------------------------------------------------------------------------- 1 | (from "foo") 2 | (volume "/opt/nagios/var" "/opt/nagios/etc" "/opt/nagios/libexec" "/var/log/apache2" "/usr/share/snmp/mibs") 3 | -------------------------------------------------------------------------------- /util/archutil/amd64_check.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 2 | // +build !amd64 3 | 4 | package archutil 5 | 6 | func amd64Supported() (string, error) { 7 | return check("amd64", Binaryamd64) 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/arm64_check.go: -------------------------------------------------------------------------------- 1 | //go:build !arm64 2 | // +build !arm64 3 | 4 | package archutil 5 | 6 | func arm64Supported() (string, error) { 7 | return check("arm64", Binaryarm64) 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/mips64le_check_mips64le.go: -------------------------------------------------------------------------------- 1 | //go:build mips64le 2 | // +build mips64le 3 | 4 | package archutil 5 | 6 | func mips64leSupported() (string, error) { 7 | return "", nil 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/s390x_check.go: -------------------------------------------------------------------------------- 1 | //go:build !s390x 2 | // +build !s390x 3 | 4 | package archutil 5 | 6 | func s390xSupported() (string, error) { 7 | return check("390x", Binarys390x) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-systemd/v22/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker-credential-helpers/credentials/version.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | // Version holds a string describing the current version 4 | const Version = "0.6.4" 5 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /api/services/control/generate.go: -------------------------------------------------------------------------------- 1 | package moby_buildkit_v1 //nolint:revive 2 | 3 | //go:generate protoc -I=. -I=../../../vendor/ -I=../../../../../../ --gogo_out=plugins=grpc:. control.proto 4 | -------------------------------------------------------------------------------- /cmd/buildctl/main_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package main 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | func init() { 11 | syscall.Umask(0) 12 | } 13 | -------------------------------------------------------------------------------- /util/apicaps/pb/generate.go: -------------------------------------------------------------------------------- 1 | package moby_buildkit_v1_apicaps //nolint:revive 2 | 3 | //go:generate protoc -I=. -I=../../../vendor/ -I=../../../../../../ --gogo_out=plugins=grpc:. caps.proto 4 | -------------------------------------------------------------------------------- /util/archutil/mips64_check.go: -------------------------------------------------------------------------------- 1 | //go:build !mips64 2 | // +build !mips64 3 | 4 | package archutil 5 | 6 | func mips64Supported() (string, error) { 7 | return check("mips64", Binarymips64) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response_ext.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // Error returns the error message 4 | func (e ErrorResponse) Error() string { 5 | return e.Message 6 | } 7 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Community Code of Conduct 2 | 3 | gRPC follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /frontend/gateway/pb/generate.go: -------------------------------------------------------------------------------- 1 | package moby_buildkit_v1_frontend //nolint:revive 2 | 3 | //go:generate protoc -I=. -I=../../../vendor/ -I=../../../../../../ --gogo_out=plugins=grpc:. gateway.proto 4 | -------------------------------------------------------------------------------- /session/filesync/generate.go: -------------------------------------------------------------------------------- 1 | package filesync 2 | 3 | //go:generate protoc -I=. -I=../../vendor/ -I=../../vendor/github.com/tonistiigi/fsutil/types/ --gogoslick_out=plugins=grpc:. filesync.proto 4 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "opentelemetry-proto"] 2 | path = exporters/otlp/internal/opentelemetry-proto 3 | url = https://github.com/open-telemetry/opentelemetry-proto 4 | -------------------------------------------------------------------------------- /docs/experimental-syntaxes.md: -------------------------------------------------------------------------------- 1 | # Dockerfile frontend syntaxes 2 | 3 | Documentation for Dockerfile syntaxes can be found in the 4 | [Dockerfile frontend documentation](/frontend/dockerfile/docs/syntax.md) 5 | -------------------------------------------------------------------------------- /util/archutil/ppc64le_check.go: -------------------------------------------------------------------------------- 1 | //go:build !ppc64le 2 | // +build !ppc64le 3 | 4 | package archutil 5 | 6 | func ppc64leSupported() (string, error) { 7 | return check("ppc64le", Binaryppc64le) 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/riscv64_check.go: -------------------------------------------------------------------------------- 1 | //go:build !riscv64 2 | // +build !riscv64 3 | 4 | package archutil 5 | 6 | func riscv64Supported() (string, error) { 7 | return check("riscv64", Binaryriscv64) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/net.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys SetJobCompartmentId(handle windows.Handle, compartmentId uint32) (win32Err error) = iphlpapi.SetJobCompartmentId 4 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | 3 | cover: 4 | go test -cover -v -coverprofile=cover.dat ./... 5 | go tool cover -func cover.dat 6 | 7 | .PHONY: cover 8 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/go-archvariant/amd64variant_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 2 | // +build !amd64 3 | 4 | package archvariant 5 | 6 | func AMD64Variant() string { 7 | return "v1" 8 | } 9 | -------------------------------------------------------------------------------- /util/archutil/mips64le_check.go: -------------------------------------------------------------------------------- 1 | //go:build !mips64le 2 | // +build !mips64le 3 | 4 | package archutil 5 | 6 | func mips64leSupported() (string, error) { 7 | return check("mips64le", Binarymips64le) 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package runtime contains runtime helper functions used by 3 | servers which protoc-gen-grpc-gateway generates. 4 | */ 5 | package runtime 6 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/huff0/autogen.go: -------------------------------------------------------------------------------- 1 | package huff0 2 | 3 | //go:generate go run generate.go 4 | //go:generate asmfmt -w decompress_amd64.s 5 | //go:generate asmfmt -w decompress_8b_amd64.s 6 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /client/exporters.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | const ( 4 | ExporterImage = "image" 5 | ExporterLocal = "local" 6 | ExporterTar = "tar" 7 | ExporterOCI = "oci" 8 | ExporterDocker = "docker" 9 | ) 10 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/json/result: -------------------------------------------------------------------------------- 1 | (cmd) 2 | (cmd "") 3 | (cmd "a") 4 | (cmd "a" "b") 5 | (cmd "a" "b") 6 | (cmd "a" "b") 7 | (cmd "a" "b") 8 | (cmd "abc 123" "♥" "☃" "\" \\ / \b \f \n \r \t \x00") 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!darwin,!linux 2 | 3 | package credentials 4 | 5 | func defaultCredentialsStore() string { 6 | return "" 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: ci generate clean 2 | 3 | ci: clean generate 4 | go test -v ./... 5 | 6 | generate: 7 | go generate . 8 | 9 | clean: 10 | rm -rf *_generated*.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/ishidawataru/sctp/NOTICE: -------------------------------------------------------------------------------- 1 | This source code includes following third party code 2 | 3 | - ipsock_linux.go : licensed by the Go authors, see GO_LICENSE file for the license which applies to the code 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /cache/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import "github.com/moby/buildkit/util/compression" 4 | 5 | type RefConfig struct { 6 | Compression compression.Config 7 | PreferNonDistributable bool 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys LocalAlloc(flags uint32, size int) (ptr uintptr) = kernel32.LocalAlloc 4 | //sys LocalFree(ptr uintptr) = kernel32.LocalFree 5 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/NOTICE: -------------------------------------------------------------------------------- 1 | Alrux Go EXTensions (AGExt) - package levenshtein 2 | Copyright 2016 ALRUX Inc. 3 | 4 | This product includes software developed at ALRUX Inc. 5 | (http://www.alrux.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/profile/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/profile 3 | go: 4 | - 1.13.x 5 | - 1.14.x 6 | - tip 7 | 8 | script: 9 | - go test -race github.com/pkg/profile 10 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Prometheus Community Code of Conduct 2 | 3 | Prometheus follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | package winio 2 | 3 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go hvsock.go 4 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /man/ 3 | coverage.txt 4 | profile.out 5 | containerd.test 6 | _site/ 7 | releases/*.tar.gz 8 | releases/*.tar.gz.sha256sum 9 | _output/ 10 | .vagrant/ 11 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/code-of-conduct.md: -------------------------------------------------------------------------------- 1 | ## containerd Community Code of Conduct 2 | 3 | containerd follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/master/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/pdeathsig_nolinux.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package commandconn 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func setPdeathsig(cmd *exec.Cmd) { 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-metrics/docs.go: -------------------------------------------------------------------------------- 1 | // This package is small wrapper around the prometheus go client to help enforce convention and best practices for metrics collection in Docker projects. 2 | 3 | package metrics 4 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-metrics/helpers.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | func sumFloat64(vs ...float64) float64 { 4 | var sum float64 5 | for _, v := range vs { 6 | sum += v 7 | } 8 | 9 | return sum 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/golang-jwt/jwt/v4/doc.go: -------------------------------------------------------------------------------- 1 | // Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html 2 | // 3 | // See README.md for more info. 4 | package jwt 5 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/exporters/jaeger/internal/gen-go/agent/GoUnusedProtection__.go: -------------------------------------------------------------------------------- 1 | // Code generated by Thrift Compiler (0.14.1). DO NOT EDIT. 2 | 3 | package agent 4 | 5 | var GoUnusedProtection__ int; 6 | 7 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/exporters/jaeger/internal/gen-go/jaeger/GoUnusedProtection__.go: -------------------------------------------------------------------------------- 1 | // Code generated by Thrift Compiler (0.14.1). DO NOT EDIT. 2 | 3 | package jaeger 4 | 5 | var GoUnusedProtection__ int; 6 | 7 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /.yamllint.yml: -------------------------------------------------------------------------------- 1 | ignore: | 2 | /vendor 3 | 4 | extends: default 5 | 6 | yaml-files: 7 | - '*.yaml' 8 | - '*.yml' 9 | 10 | rules: 11 | truthy: disable 12 | line-length: disable 13 | document-start: disable 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/iocp.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys GetQueuedCompletionStatus(cphandle windows.Handle, qty *uint32, key *uintptr, overlapped **windows.Overlapped, timeout uint32) (err error) 4 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/json/Dockerfile: -------------------------------------------------------------------------------- 1 | CMD [] 2 | CMD [""] 3 | CMD ["a"] 4 | CMD ["a","b"] 5 | CMD [ "a", "b" ] 6 | CMD [ "a", "b" ] 7 | CMD [ "a", "b" ] 8 | CMD ["abc 123", "♥", "☃", "\" \\ \/ \b \f \n \r \t \u0000"] 9 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/mumble/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (run "apt-get update && apt-get install libcap2-bin mumble-server -y") 3 | (add "./mumble-server.ini" "/etc/mumble-server.ini") 4 | (cmd "/usr/sbin/murmurd") 5 | -------------------------------------------------------------------------------- /hack/shfmt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | . $(dirname $0)/util 4 | set -e 5 | 6 | buildxCmd build \ 7 | --target "update" \ 8 | --output "type=local,dest=." \ 9 | --file "./hack/dockerfiles/shfmt.Dockerfile" \ 10 | . 11 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_golang/prometheus/README.md: -------------------------------------------------------------------------------- 1 | See [![Go Reference](https://pkg.go.dev/badge/github.com/prometheus/client_golang/prometheus.svg)](https://pkg.go.dev/github.com/prometheus/client_golang/prometheus). 2 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/client_model/NOTICE: -------------------------------------------------------------------------------- 1 | Data model artifacts for Prometheus. 2 | Copyright 2012-2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/exporters/jaeger/internal/gen-go/zipkincore/GoUnusedProtection__.go: -------------------------------------------------------------------------------- 1 | // Code generated by Thrift Compiler (0.14.1). DO NOT EDIT. 2 | 3 | package zipkincore 4 | 5 | var GoUnusedProtection__ int; 6 | 7 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/mumble/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update && apt-get install libcap2-bin mumble-server -y 4 | 5 | ADD ./mumble-server.ini /etc/mumble-server.ini 6 | 7 | CMD /usr/sbin/murmurd 8 | -------------------------------------------------------------------------------- /hack/validate-shfmt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | . $(dirname $0)/util 4 | set -e 5 | 6 | buildxCmd build \ 7 | --target validate \ 8 | --output "type=cacheonly" \ 9 | --file ./hack/dockerfiles/shfmt.Dockerfile \ 10 | . 11 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/continuity/sysx/README.md: -------------------------------------------------------------------------------- 1 | This package is for internal use only. It is intended to only have 2 | temporary changes before they are upstreamed to golang.org/x/sys/ 3 | (a.k.a. https://github.com/golang/sys). 4 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/doc.go: -------------------------------------------------------------------------------- 1 | // Package mount provides a set of functions to mount and unmount mounts. 2 | // 3 | // Currently it supports Linux. For historical reasons, there is also some support for FreeBSD. 4 | package mount 5 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/common/NOTICE: -------------------------------------------------------------------------------- 1 | Common libraries shared by Prometheus Go components. 2 | Copyright 2015 The Prometheus Authors 3 | 4 | This product includes software developed at 5 | SoundCloud Ltd. (http://soundcloud.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Reporting a security issue 2 | 3 | The Prometheus security policy, including how to report vulnerabilities, can be 4 | found here: 5 | 6 | https://prometheus.io/docs/operating/security/ 7 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/boltsync_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!plan9,!linux,!openbsd 2 | 3 | package bbolt 4 | 5 | // fdatasync flushes written data to a file descriptor. 6 | func fdatasync(db *DB) error { 7 | return db.file.Sync() 8 | } 9 | -------------------------------------------------------------------------------- /frontend/dockerfile/dockerfile2llb/defaultshell.go: -------------------------------------------------------------------------------- 1 | package dockerfile2llb 2 | 3 | func defaultShell(os string) []string { 4 | if os == "windows" { 5 | return []string{"cmd", "/S", "/C"} 6 | } 7 | return []string{"/bin/sh", "-c"} 8 | } 9 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/znc/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | LABEL maintainer Erik Hollensbe 3 | 4 | RUN apt-get update && apt-get install znc -y 5 | ADD conf /.znc 6 | 7 | CMD [ "/usr/bin/znc", "-f", "-r" ] 8 | -------------------------------------------------------------------------------- /source/types/types.go: -------------------------------------------------------------------------------- 1 | package srctypes 2 | 3 | const ( 4 | DockerImageScheme = "docker-image" 5 | GitScheme = "git" 6 | LocalScheme = "local" 7 | HTTPScheme = "http" 8 | HTTPSScheme = "https" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fs/default.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fs 6 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/znc/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (label "maintainer" "Erik Hollensbe ") 3 | (run "apt-get update && apt-get install znc -y") 4 | (add "conf" "/.znc") 5 | (cmd "/usr/bin/znc" "-f" "-r") 6 | -------------------------------------------------------------------------------- /util/testutil/integration/sandbox_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package integration 5 | 6 | import "syscall" 7 | 8 | func getSysProcAttr() *syscall.SysProcAttr { 9 | return &syscall.SysProcAttr{} 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/gofrs/flock/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.10.x 4 | - 1.11.x 5 | script: go test -v -check.vv -race ./... 6 | sudo: false 7 | notifications: 8 | email: 9 | on_success: never 10 | on_failure: always 11 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | 3 | # go.opencensus.io/exporter/aws 4 | /exporter/aws/ 5 | 6 | # Exclude vendor, use dep ensure after checkout: 7 | /vendor/github.com/ 8 | /vendor/golang.org/ 9 | /vendor/google.golang.org/ 10 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # BuildKit code of conduct 2 | 3 | - [Moby community guidelines](https://github.com/moby/moby/blob/master/CONTRIBUTING.md#moby-community-guidelines) 4 | - [Docker Code of Conduct](https://github.com/docker/code-of-conduct) 5 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/process.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | const PROCESS_ALL_ACCESS uint32 = 2097151 4 | 5 | const ( 6 | PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = 0x20016 7 | PROC_THREAD_ATTRIBUTE_JOB_LIST = 0x2000D 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/common_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package api // import "github.com/docker/docker/api" 5 | 6 | // MinVersion represents Minimum REST API version supported 7 | const MinVersion = "1.12" 8 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-retryablehttp/Makefile: -------------------------------------------------------------------------------- 1 | default: test 2 | 3 | test: 4 | go vet ./... 5 | go test -race ./... 6 | 7 | updatedeps: 8 | go get -f -t -u ./... 9 | go get -f -u ./... 10 | 11 | .PHONY: default test updatedeps 12 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/go-archvariant/amd64variant_nodarwin.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !darwin 2 | // +build amd64,!darwin 3 | 4 | package archvariant 5 | 6 | func osAVX512Supported(ax uint32) bool { 7 | return ax&v4OSSupport == v4OSSupport 8 | } 9 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | For information on gRPC Security Policy and reporting potentional security issues, please see [gRPC CVE Process](https://github.com/grpc/proposal/blob/master/P4-grpc-cve-process.md). 4 | -------------------------------------------------------------------------------- /util/appcontext/appcontext_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package appcontext 5 | 6 | import ( 7 | "os" 8 | 9 | "golang.org/x/sys/unix" 10 | ) 11 | 12 | var terminationSignals = []os.Signal{unix.SIGTERM, unix.SIGINT} 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/pdeathsig_linux.go: -------------------------------------------------------------------------------- 1 | package commandconn 2 | 3 | import ( 4 | "os/exec" 5 | "syscall" 6 | ) 7 | 8 | func setPdeathsig(cmd *exec.Cmd) { 9 | cmd.SysProcAttr.Pdeathsig = syscall.SIGKILL 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_linux.go: -------------------------------------------------------------------------------- 1 | package bbolt 2 | 3 | import ( 4 | "syscall" 5 | ) 6 | 7 | // fdatasync flushes written data to a file descriptor. 8 | func fdatasync(db *DB) error { 9 | return syscall.Fdatasync(int(db.file.Fd())) 10 | } 11 | -------------------------------------------------------------------------------- /examples/systemd/system/buildkit.socket: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=BuildKit 3 | Documentation=https://github.com/moby/buildkit 4 | 5 | [Socket] 6 | ListenStream=%t/buildkit/buildkitd.sock 7 | SocketMode=0660 8 | 9 | [Install] 10 | WantedBy=sockets.target 11 | -------------------------------------------------------------------------------- /examples/systemd/user/buildkit-proxy.socket: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=BuildKit 3 | Documentation=https://github.com/moby/buildkit 4 | 5 | [Socket] 6 | ListenStream=%t/buildkit/buildkitd.sock 7 | SocketMode=0660 8 | 9 | [Install] 10 | WantedBy=sockets.target 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-nonewline/Dockerfile: -------------------------------------------------------------------------------- 1 | # escape = ` 2 | # There is no white space line after the directives. This still succeeds, but goes 3 | # against best practices. 4 | FROM image 5 | LABEL maintainer foo@bar.com 6 | ENV GOPATH ` 7 | \go 8 | -------------------------------------------------------------------------------- /util/progress/progressui/term.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package progressui 5 | 6 | import "github.com/morikuni/aec" 7 | 8 | var ( 9 | colorRun = aec.BlueF 10 | colorCancel = aec.YellowF 11 | colorError = aec.RedF 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/gen.go: -------------------------------------------------------------------------------- 1 | //go:generate protoc -I . --gogofast_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto 2 | 3 | package runtime // import "github.com/docker/docker/api/types/swarm/runtime" 4 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /util/progress/progressui/term_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package progressui 5 | 6 | import "github.com/morikuni/aec" 7 | 8 | var ( 9 | colorRun = aec.CyanF 10 | colorCancel = aec.YellowF 11 | colorError = aec.RedF 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_windows.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | func normalizePath(path string) string { 8 | return filepath.FromSlash(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_386.go: -------------------------------------------------------------------------------- 1 | package bbolt 2 | 3 | // maxMapSize represents the largest mmap size supported by Bolt. 4 | const maxMapSize = 0x7FFFFFFF // 2GB 5 | 6 | // maxAllocSize is the size used when creating array pointers. 7 | const maxAllocSize = 0xFFFFFFF 8 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_arm.go: -------------------------------------------------------------------------------- 1 | package bbolt 2 | 3 | // maxMapSize represents the largest mmap size supported by Bolt. 4 | const maxMapSize = 0x7FFFFFFF // 2GB 5 | 6 | // maxAllocSize is the size used when creating array pointers. 7 | const maxAllocSize = 0xFFFFFFF 8 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/exporters/jaeger/internal/third_party/thrift/NOTICE: -------------------------------------------------------------------------------- 1 | Apache Thrift 2 | Copyright (C) 2006 - 2019, The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /control/init.go: -------------------------------------------------------------------------------- 1 | package control 2 | 3 | import controlapi "github.com/moby/buildkit/api/services/control" 4 | 5 | var emptyLogVertexSize int 6 | 7 | func init() { 8 | emptyLogVertex := controlapi.VertexLog{} 9 | emptyLogVertexSize = emptyLogVertex.Size() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Issue:** add link to pelletier/go-toml issue here 2 | 3 | Explanation of what this pull request does. 4 | 5 | More detailed description of the decisions being made and the reasons why (if the patch is non-trivial). 6 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/ttrpc/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_amd64.go: -------------------------------------------------------------------------------- 1 | package bbolt 2 | 3 | // maxMapSize represents the largest mmap size supported by Bolt. 4 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 5 | 6 | // maxAllocSize is the size used when creating array pointers. 7 | const maxAllocSize = 0x7FFFFFFF 8 | -------------------------------------------------------------------------------- /util/archutil/amd64_check_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 2 | // +build amd64 3 | 4 | package archutil 5 | 6 | import ( 7 | archvariant "github.com/tonistiigi/go-archvariant" 8 | ) 9 | 10 | func amd64Supported() (string, error) { 11 | return archvariant.AMD64Variant(), nil 12 | } 13 | -------------------------------------------------------------------------------- /util/sshutil/transport_validation.go: -------------------------------------------------------------------------------- 1 | package sshutil 2 | 3 | import ( 4 | "regexp" 5 | ) 6 | 7 | var gitSSHRegex = regexp.MustCompile("^[a-zA-Z0-9-_]+@[a-zA-Z0-9-.]+:.*$") 8 | 9 | func IsImplicitSSHTransport(s string) bool { 10 | return gitSSHRegex.MatchString(s) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mountinfo/mountinfo_windows.go: -------------------------------------------------------------------------------- 1 | package mountinfo 2 | 3 | func parseMountTable(_ FilterFunc) ([]*Info, error) { 4 | // Do NOT return an error! 5 | return nil, nil 6 | } 7 | 8 | func mounted(_ string) (bool, error) { 9 | return false, nil 10 | } 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/instructions/errors_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package instructions 5 | 6 | import "fmt" 7 | 8 | func errNotJSON(command, _ string) error { 9 | return fmt.Errorf("%s requires the arguments to be in JSON form", command) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/v4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13 4 | - 1.x 5 | - tip 6 | before_install: 7 | - go get github.com/mattn/goveralls 8 | - go get golang.org/x/tools/cmd/cover 9 | script: 10 | - $HOME/gopath/bin/goveralls -service=travis-ci 11 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Aaron Lehmann 2 | Derek McGowan 3 | Stephen J Day 4 | Haibing Zhou 5 | -------------------------------------------------------------------------------- /examples/kubernetes/consistenthash/show-running-pods.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -eu 3 | selector="app=buildkitd" 4 | kubectl get pods --selector=$selector --field-selector=status.phase=Running -o=go-template --template="{{range .items}}{{.metadata.name}}{{\"\n\"}}{{end}}" --sort-by="{.metadata.name}" 5 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/weechat/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update -qy && apt-get install tmux zsh weechat-curses -y 4 | 5 | ADD .weechat /.weechat 6 | ADD .tmux.conf / 7 | RUN echo "export TERM=screen-256color" >/.zshenv 8 | 9 | CMD zsh -c weechat 10 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/weechat/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (run "apt-get update -qy && apt-get install tmux zsh weechat-curses -y") 3 | (add ".weechat" "/.weechat") 4 | (add ".tmux.conf" "/") 5 | (run "echo \"export TERM=screen-256color\" >/.zshenv") 6 | (cmd "zsh -c weechat") 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/fileutils/fileutils_windows.go: -------------------------------------------------------------------------------- 1 | package fileutils // import "github.com/docker/docker/pkg/fileutils" 2 | 3 | // GetTotalUsedFds Returns the number of used File Descriptors. Not supported 4 | // on Windows. 5 | func GetTotalUsedFds() int { 6 | return -1 7 | } 8 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escapes/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (label "maintainer" "Erik \\\\Hollensbe \\\"") 3 | (run "apt-get \\update && apt-get \\\"install znc -y") 4 | (add "\\conf\\\\\"" "/.znc") 5 | (run "foo bar baz") 6 | (cmd "/usr\\\"/bin/znc" "-f" "-r") 7 | -------------------------------------------------------------------------------- /vendor/github.com/prometheus/procfs/NOTICE: -------------------------------------------------------------------------------- 1 | procfs provides functions to retrieve system, kernel and process 2 | metrics from the pseudo-filesystem proc. 3 | 4 | Copyright 2014-2015 The Prometheus Authors 5 | 6 | This product includes software developed at 7 | SoundCloud Ltd. (http://soundcloud.com/). 8 | -------------------------------------------------------------------------------- /vendor/github.com/agext/levenshtein/test.sh: -------------------------------------------------------------------------------- 1 | set -ev 2 | 3 | if [[ "$1" == "goveralls" ]]; then 4 | echo "Testing with goveralls..." 5 | go get github.com/mattn/goveralls 6 | $HOME/gopath/bin/goveralls -service=travis-ci 7 | else 8 | echo "Testing with go test..." 9 | go test -v ./... 10 | fi 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/archive_other.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | // +build !linux 3 | 4 | package archive // import "github.com/docker/docker/pkg/archive" 5 | 6 | func getWhiteoutConverter(format WhiteoutFormat, inUserNS bool) (tarWhiteoutConverter, error) { 7 | return nil, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_ppc.go: -------------------------------------------------------------------------------- 1 | // +build ppc 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0x7FFFFFFF // 2GB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0xFFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/trailing-backslash/result: -------------------------------------------------------------------------------- 1 | (from "hello-world") 2 | (env "A" "path") 3 | (env "B" "another\\\\path") 4 | (env "C" "trailing\\\\backslash\\\\") 5 | (env "D" "This should not be appended to C") 6 | (env "E" "helloworld") 7 | (env "F" "hello world") 8 | (env "G" "hello world") 9 | -------------------------------------------------------------------------------- /util/testutil/integration/sandbox_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package integration 5 | 6 | import "syscall" 7 | 8 | func getSysProcAttr() *syscall.SysProcAttr { 9 | return &syscall.SysProcAttr{ 10 | Setsid: true, // stretch sudo needs this for sigterm 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /cache/contenthash/filehash_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package contenthash 5 | 6 | import ( 7 | "os" 8 | 9 | fstypes "github.com/tonistiigi/fsutil/types" 10 | ) 11 | 12 | func setUnixOpt(path string, fi os.FileInfo, stat *fstypes.Stat) error { 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/config/credentials/default_store_linux.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import ( 4 | "os/exec" 5 | ) 6 | 7 | func defaultCredentialsStore() string { 8 | if _, err := exec.LookPath("pass"); err == nil { 9 | return "pass" 10 | } 11 | 12 | return "secretservice" 13 | } 14 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_arm64.go: -------------------------------------------------------------------------------- 1 | // +build arm64 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_mipsx.go: -------------------------------------------------------------------------------- 1 | // +build mips mipsle 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0x40000000 // 1GB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0xFFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_ppc64.go: -------------------------------------------------------------------------------- 1 | // +build ppc64 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_s390x.go: -------------------------------------------------------------------------------- 1 | // +build s390x 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package archive // import "github.com/docker/docker/pkg/archive" 5 | 6 | import ( 7 | "path/filepath" 8 | ) 9 | 10 | func normalizePath(path string) string { 11 | return filepath.ToSlash(path) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/go-grpc-middleware/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.13.x 5 | - 1.14.x 6 | - 1.15.x 7 | 8 | env: 9 | global: 10 | - GO111MODULE=on 11 | 12 | script: 13 | - make test 14 | 15 | after_success: 16 | - bash <(curl -s https://codecov.io/bash) 17 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Derek McGowan (@dmcgowan) 2 | Stephen Day (@stevvooe) 3 | Vincent Batts (@vbatts) 4 | Akihiro Suda (@AkihiroSuda) 5 | Sebastiaan van Stijn (@thaJeztah) 6 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_ppc64le.go: -------------------------------------------------------------------------------- 1 | // +build ppc64le 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_riscv64.go: -------------------------------------------------------------------------------- 1 | // +build riscv64 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0xFFFFFFFFFFFF // 256TB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /examples/systemd/system/buildkit.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=BuildKit 3 | Requires=buildkit.socket 4 | After=buildkit.socket 5 | Documentation=https://github.com/moby/buildkit 6 | 7 | [Service] 8 | Type=notify 9 | ExecStart=/usr/local/bin/buildkitd --addr fd:// 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/umask_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | // Umask is not supported on the windows platform. 4 | func Umask(newmask int) (oldmask int, err error) { 5 | // should not be called on cli code path 6 | return 0, ErrNotSupportedPlatform 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/typeprint.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | func (a *Attr) String() string { 8 | return Print(a) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/go-archvariant/amd64variant_darwin.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && darwin 2 | // +build amd64,darwin 3 | 4 | package archvariant 5 | 6 | func darwinSupportsAVX512() bool 7 | 8 | func osAVX512Supported(ax uint32) bool { 9 | return ax&v3OSSupport == v3OSSupport && darwinSupportsAVX512() 10 | } 11 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/bolt_mips64x.go: -------------------------------------------------------------------------------- 1 | // +build mips64 mips64le 2 | 3 | package bbolt 4 | 5 | // maxMapSize represents the largest mmap size supported by Bolt. 6 | const maxMapSize = 0x8000000000 // 512GB 7 | 8 | // maxAllocSize is the size used when creating array pointers. 9 | const maxAllocSize = 0x7FFFFFFF 10 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escapes/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | LABEL maintainer Erik \\Hollensbe \" 3 | 4 | RUN apt-get \update && \ 5 | apt-get \"install znc -y 6 | ADD \conf\\" /.znc 7 | 8 | RUN foo \ 9 | 10 | bar \ 11 | 12 | baz 13 | 14 | CMD [ "\/usr\\\"/bin/znc", "-f", "-r" ] 15 | -------------------------------------------------------------------------------- /solver/errdefs/context.go: -------------------------------------------------------------------------------- 1 | package errdefs 2 | 3 | import ( 4 | "context" 5 | "errors" 6 | 7 | "github.com/moby/buildkit/util/grpcerrors" 8 | "google.golang.org/grpc/codes" 9 | ) 10 | 11 | func IsCanceled(err error) bool { 12 | return errors.Is(err, context.Canceled) || grpcerrors.Code(err) == codes.Canceled 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_amd64.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | // +build gc 3 | // +build !purego 4 | 5 | package xxhash 6 | 7 | // Sum64 computes the 64-bit xxHash digest of b. 8 | // 9 | //go:noescape 10 | func Sum64(b []byte) uint64 11 | 12 | //go:noescape 13 | func writeBlocks(d *Digest, b []byte) int 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && arm 6 | // +build !linux,arm 7 | 8 | package cpu 9 | 10 | func archInit() {} 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/flags/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | COPY foo /tmp/ 3 | COPY --user=me foo /tmp/ 4 | COPY --doit=true foo /tmp/ 5 | COPY --user=me --doit=true foo /tmp/ 6 | COPY --doit=true -- foo /tmp/ 7 | COPY -- foo /tmp/ 8 | CMD --doit [ "a", "b" ] 9 | CMD --doit=true -- [ "a", "b" ] 10 | CMD --doit -- [ ] 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | LABEL maintainer James Turnbull "james@example.com" 3 | ENV REFRESHED_AT 2014-06-01 4 | RUN apt-get update 5 | RUN apt-get --no-install-recommends install -y redis-server redis-tools 6 | EXPOSE 6379 7 | ENTRYPOINT [ "/usr/bin/redis-server" ] 8 | -------------------------------------------------------------------------------- /session/upload/upload.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package moby.upload.v1; 4 | 5 | option go_package = "upload"; 6 | 7 | service Upload { 8 | rpc Pull(stream BytesMessage) returns (stream BytesMessage); 9 | } 10 | 11 | // BytesMessage contains a chunk of byte data 12 | message BytesMessage{ 13 | bytes data = 1; 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/internal/utimens/utimens_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package utimens 6 | 7 | // placeholder file so this package exists on all platforms. 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = false 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = true 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | post: 3 | # install golint 4 | - go get golang.org/x/lint/golint 5 | 6 | test: 7 | pre: 8 | # run analysis before tests 9 | - go vet ./... 10 | - test -z "$(golint ./... | tee /dev/stderr)" 11 | - test -z "$(gofmt -s -l . | tee /dev/stderr)" 12 | -------------------------------------------------------------------------------- /cmd/buildctl/prune_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/moby/buildkit/util/testutil/integration" 7 | "github.com/stretchr/testify/assert" 8 | ) 9 | 10 | func testPrune(t *testing.T, sb integration.Sandbox) { 11 | cmd := sb.Cmd("prune") 12 | err := cmd.Run() 13 | assert.NoError(t, err) 14 | } 15 | -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | comment: false 2 | 3 | coverage: 4 | status: 5 | project: # settings affecting project coverage 6 | default: 7 | target: auto # auto % coverage target 8 | threshold: 1% # allow for 1% reduction of coverage without failing 9 | patch: off 10 | 11 | github_checks: 12 | annotations: false 13 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/escape-after-comment/Dockerfile: -------------------------------------------------------------------------------- 1 | # Comment here. Should not be looking for the following parser directive. 2 | # Hence the following line will be ignored, and the subsequent backslash 3 | # continuation will be the default. 4 | # escape = ` 5 | 6 | FROM image 7 | LABEL maintainer foo@bar.com 8 | ENV GOPATH \ 9 | \go -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /cmd/buildctl/diskusage_test.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/moby/buildkit/util/testutil/integration" 7 | "github.com/stretchr/testify/assert" 8 | ) 9 | 10 | func testDiskUsage(t *testing.T, sb integration.Sandbox) { 11 | cmd := sb.Cmd("du") 12 | err := cmd.Run() 13 | assert.NoError(t, err) 14 | } 15 | -------------------------------------------------------------------------------- /solver/testutil/memorycachestorage_test.go: -------------------------------------------------------------------------------- 1 | package testutil 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/moby/buildkit/solver" 7 | ) 8 | 9 | func TestMemoryCacheStorage(t *testing.T) { 10 | RunCacheStorageTests(t, func() (solver.CacheKeyStorage, func()) { 11 | return solver.NewInMemoryCacheStorage(), func() {} 12 | }) 13 | } 14 | -------------------------------------------------------------------------------- /util/archutil/check_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package archutil 5 | 6 | import ( 7 | "errors" 8 | "os/exec" 9 | ) 10 | 11 | func withChroot(cmd *exec.Cmd, dir string) { 12 | } 13 | 14 | func check(arch, bin string) (string, error) { 15 | return "", errors.New("binfmt is not supported on Windows") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/profiles/seccomp/seccomp_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build linux && !seccomp 2 | // +build linux,!seccomp 3 | 4 | package seccomp // import "github.com/docker/docker/profiles/seccomp" 5 | 6 | // DefaultProfile returns a nil pointer on unsupported systems. 7 | func DefaultProfile() *Seccomp { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/signal/signal_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux && !darwin && !freebsd && !windows 2 | // +build !linux,!darwin,!freebsd,!windows 3 | 4 | package signal 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // SignalMap is an empty map of signals for unsupported platform. 11 | var SignalMap = map[string]syscall.Signal{} 12 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/mlock_windows.go: -------------------------------------------------------------------------------- 1 | package bbolt 2 | 3 | // mlock locks memory of db file 4 | func mlock(_ *DB, _ int) error { 5 | panic("mlock is supported only on UNIX systems") 6 | } 7 | 8 | //munlock unlocks memory of db file 9 | func munlock(_ *DB, _ int) error { 10 | panic("munlock is supported only on UNIX systems") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && !netbsd && arm64 6 | // +build !linux,!netbsd,arm64 7 | 8 | package cpu 9 | 10 | func doinit() {} 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/health/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian 2 | ADD check.sh main.sh /app/ 3 | CMD /app/main.sh 4 | HEALTHCHECK 5 | HEALTHCHECK --interval=5s --timeout=3s --retries=3 \ 6 | CMD /app/check.sh --quiet 7 | HEALTHCHECK CMD 8 | HEALTHCHECK CMD a b 9 | HEALTHCHECK --timeout=3s CMD ["foo"] 10 | HEALTHCHECK CONNECT TCP 7000 11 | -------------------------------------------------------------------------------- /util/appcontext/register.go: -------------------------------------------------------------------------------- 1 | package appcontext 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | type Initializer func(context.Context) context.Context 8 | 9 | var inits []Initializer 10 | 11 | // Register stores a new context initializer that runs on app context creation 12 | func Register(f Initializer) { 13 | inits = append(inits, f) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/reexec/README.md: -------------------------------------------------------------------------------- 1 | # reexec 2 | 3 | The `reexec` package facilitates the busybox style reexec of the docker binary that we require because 4 | of the forking limitations of using Go. Handlers can be registered with a name and the argv 0 of 5 | the exec of the binary will be used to find and execute custom init paths. 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/image_os.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | import ( 3 | "runtime" 4 | "strings" 5 | ) 6 | 7 | // IsOSSupported determines if an operating system is supported by the host. 8 | func IsOSSupported(os string) bool { 9 | return strings.EqualFold(runtime.GOOS, os) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fs/files_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fs 6 | 7 | import "github.com/hanwen/go-fuse/v2/fuse" 8 | 9 | func setBlocks(out *fuse.Attr) { 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build riscv64 6 | // +build riscv64 7 | 8 | package cpu 9 | 10 | const cacheLineSize = 32 11 | 12 | func initOptions() {} 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/encoding/prototext/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package prototext marshals and unmarshals protocol buffer messages as the 6 | // textproto format. 7 | package prototext 8 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/kartar-entrypoint-oddities/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (label "maintainer" "James Turnbull \"james@example.com\"") 3 | (env "REFRESHED_AT" "2014-06-01") 4 | (run "apt-get update") 5 | (run "apt-get --no-install-recommends install -y redis-server redis-tools") 6 | (expose "6379") 7 | (entrypoint "/usr/bin/redis-server") 8 | -------------------------------------------------------------------------------- /util/system/path_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package system 5 | 6 | // CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, 7 | // is the system drive. This is a no-op on Linux. 8 | func CheckSystemDriveAndRemoveDriveLetter(path string) (string, error) { 9 | return path, nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/processor.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // Get count from all processor groups. 4 | // https://docs.microsoft.com/en-us/windows/win32/procthread/processor-groups 5 | const ALL_PROCESSOR_GROUPS = 0xFFFF 6 | 7 | //sys GetActiveProcessorCount(groupNumber uint16) (amount uint32) = kernel32.GetActiveProcessorCount 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-events/errors.go: -------------------------------------------------------------------------------- 1 | package events 2 | 3 | import "fmt" 4 | 5 | var ( 6 | // ErrSinkClosed is returned if a write is issued to a sink that has been 7 | // closed. If encountered, the error should be considered terminal and 8 | // retries will not be successful. 9 | ErrSinkClosed = fmt.Errorf("events: sink closed") 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/stat_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package fsutil 4 | 5 | import ( 6 | "os" 7 | 8 | "github.com/tonistiigi/fsutil/types" 9 | ) 10 | 11 | func loadXattr(_ string, _ *types.Stat) error { 12 | return nil 13 | } 14 | 15 | func setUnixOpt(_ os.FileInfo, _ *types.Stat, _ string, _ map[uint64]string) { 16 | } 17 | -------------------------------------------------------------------------------- /util/stack/stack.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package stack; 4 | 5 | message Stack { 6 | repeated Frame frames = 1; 7 | repeated string cmdline = 2; 8 | int32 pid = 3; 9 | string version = 4; 10 | string revision = 5; 11 | } 12 | 13 | message Frame { 14 | string Name = 1; 15 | string File = 2; 16 | int32 Line = 3; 17 | } -------------------------------------------------------------------------------- /vendor/github.com/containerd/continuity/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - ineffassign 10 | - revive 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | timeout: 3m 19 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fuse-overlayfs-snapshotter/MAINTAINERS: -------------------------------------------------------------------------------- 1 | # fuse-overlayfs-snapshotter maintainers 2 | # 3 | # As a containerd sub-project, containerd maintainers are also included from https://github.com/containerd/project/blob/master/MAINTAINERS. 4 | # See https://github.com/containerd/project/blob/master/GOVERNANCE.md for description of maintainer role 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | package cpu 9 | 10 | func getisar0() uint64 11 | func getisar1() uint64 12 | func getpfr0() uint64 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips || mipsle 6 | // +build mips mipsle 7 | 8 | package cpu 9 | 10 | const cacheLineSize = 32 11 | 12 | func initOptions() {} 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/cli/cli/connhelper/commandconn/session_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package commandconn 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func createSession(cmd *exec.Cmd) { 10 | // for supporting ssh connection helper with ProxyCommand 11 | // https://github.com/docker/cli/issues/1707 12 | cmd.SysProcAttr.Setsid = true 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package ioutils // import "github.com/docker/docker/pkg/ioutils" 5 | 6 | import "os" 7 | 8 | // TempDir on Unix systems is equivalent to os.MkdirTemp. 9 | func TempDir(dir, prefix string) (string, error) { 10 | return os.MkdirTemp(dir, prefix) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-metrics/unit.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | // Unit represents the type or precision of a metric that is appended to 4 | // the metrics fully qualified name 5 | type Unit string 6 | 7 | const ( 8 | Nanoseconds Unit = "nanoseconds" 9 | Seconds Unit = "seconds" 10 | Bytes Unit = "bytes" 11 | Total Unit = "total" 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/constants_freebsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | // arbitrary values 8 | const syscall_O_LARGEFILE = 1 << 29 9 | const syscall_O_NOATIME = 1 << 30 10 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/trailing-backslash/Dockerfile: -------------------------------------------------------------------------------- 1 | # https://github.com/docker/for-win/issues/5254 2 | 3 | FROM hello-world 4 | 5 | ENV A path 6 | ENV B another\\path 7 | ENV C trailing\\backslash\\ 8 | ENV D This should not be appended to C 9 | ENV E hello\ 10 | \ 11 | world 12 | ENV F hello\ 13 | \ 14 | world 15 | ENV G hello \ 16 | \ 17 | world 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/hnssupport.go: -------------------------------------------------------------------------------- 1 | package hcsshim 2 | 3 | import ( 4 | "github.com/Microsoft/hcsshim/internal/hns" 5 | ) 6 | 7 | type HNSSupportedFeatures = hns.HNSSupportedFeatures 8 | 9 | type HNSAclFeatures = hns.HNSAclFeatures 10 | 11 | func GetHNSSupportedFeatures() HNSSupportedFeatures { 12 | return hns.GetHNSSupportedFeatures() 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-connections/tlsconfig/certpool_other.go: -------------------------------------------------------------------------------- 1 | // +build !go1.7 2 | 3 | package tlsconfig 4 | 5 | import ( 6 | "crypto/x509" 7 | ) 8 | 9 | // SystemCertPool returns an new empty cert pool, 10 | // accessing system cert pool is supported in go 1.7 11 | func SystemCertPool() (*x509.CertPool, error) { 12 | return x509.NewCertPool(), nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/stdr/README.md: -------------------------------------------------------------------------------- 1 | # Minimal Go logging using logr and Go's standard library 2 | 3 | [![Go Reference](https://pkg.go.dev/badge/github.com/go-logr/stdr.svg)](https://pkg.go.dev/github.com/go-logr/stdr) 4 | 5 | This package implements the [logr interface](https://github.com/go-logr/logr) 6 | in terms of Go's standard log package(https://pkg.go.dev/log). 7 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/.gitignore: -------------------------------------------------------------------------------- 1 | # if you want to ignore files created by your editor/tools, consider using a 2 | # global .gitignore or .git/info/exclude see https://help.github.com/articles/ignoring-files 3 | .* 4 | !.github 5 | !.gitignore 6 | !.travis.yml 7 | *.prof 8 | # support running go modules in vendor mode for local development 9 | vendor/ 10 | -------------------------------------------------------------------------------- /examples/systemd/user/buildkit.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=BuildKit 3 | Documentation=https://github.com/moby/buildkit 4 | 5 | [Service] 6 | Type=notify 7 | NotifyAccess=all 8 | ExecStart=rootlesskit --net=slirp4netns --copy-up=/etc --disable-host-loopback /usr/local/bin/buildkitd --addr unix://%t/buildkit/rootless 9 | 10 | [Install] 11 | WantedBy=multi-user.target 12 | -------------------------------------------------------------------------------- /frontend/dockerfile/shell/equal_env_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package shell 5 | 6 | // EqualEnvKeys compare two strings and returns true if they are equal. 7 | // On Unix this comparison is case sensitive. 8 | // On Windows this comparison is case insensitive. 9 | func EqualEnvKeys(from, to string) bool { 10 | return from == to 11 | } 12 | -------------------------------------------------------------------------------- /hack/fixtures/cni.json: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "1.0.0", 3 | "name": "buildkit", 4 | "type": "bridge", 5 | "bridge": "buildkit0", 6 | "isDefaultGateway": true, 7 | "forceAddress": false, 8 | "ipMasq": true, 9 | "hairpinMode": true, 10 | "ipam": { 11 | "type": "host-local", 12 | "ranges": [ 13 | [{ 14 | "subnet": "10.10.0.0/16" 15 | }] 16 | ] 17 | } 18 | } -------------------------------------------------------------------------------- /hack/update-vendor: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | . $(dirname $0)/util 4 | set -eu 5 | 6 | output=$(mktemp -d -t buildx-output.XXXXXXXXXX) 7 | 8 | buildxCmd build \ 9 | --target "update" \ 10 | --output "type=local,dest=$output" \ 11 | --file "./hack/dockerfiles/vendor.Dockerfile" \ 12 | . 13 | 14 | rm -rf ./vendor 15 | cp -R "$output"/out/* . 16 | rm -rf $output 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/meminfo_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux && !windows 2 | // +build !linux,!windows 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | // ReadMemInfo is not supported on platforms other than linux and windows. 7 | func ReadMemInfo() (*MemInfo, error) { 8 | return nil, ErrNotSupportedPlatform 9 | } 10 | -------------------------------------------------------------------------------- /vendor/go.etcd.io/bbolt/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: go.etcd.io/bbolt 3 | 4 | sudo: false 5 | 6 | go: 7 | - 1.15 8 | 9 | before_install: 10 | - go get -v golang.org/x/sys/unix 11 | - go get -v honnef.co/go/tools/... 12 | - go get -v github.com/kisielk/errcheck 13 | 14 | script: 15 | - make fmt 16 | - make test 17 | - make race 18 | # - make errcheck 19 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/flags/result: -------------------------------------------------------------------------------- 1 | (from "scratch") 2 | (copy "foo" "/tmp/") 3 | (copy ["--user=me"] "foo" "/tmp/") 4 | (copy ["--doit=true"] "foo" "/tmp/") 5 | (copy ["--user=me" "--doit=true"] "foo" "/tmp/") 6 | (copy ["--doit=true"] "foo" "/tmp/") 7 | (copy "foo" "/tmp/") 8 | (cmd ["--doit"] "a" "b") 9 | (cmd ["--doit=true"] "a" "b") 10 | (cmd ["--doit"]) 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/hnsglobals.go: -------------------------------------------------------------------------------- 1 | package hcsshim 2 | 3 | import ( 4 | "github.com/Microsoft/hcsshim/internal/hns" 5 | ) 6 | 7 | type HNSGlobals = hns.HNSGlobals 8 | type HNSVersion = hns.HNSVersion 9 | 10 | var ( 11 | HNSVersion1803 = hns.HNSVersion1803 12 | ) 13 | 14 | func GetHNSGlobals() (*HNSGlobals, error) { 15 | return hns.GetHNSGlobals() 16 | } 17 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | LABEL maintainer Seongyeol Lim 3 | 4 | COPY . /go/src/github.com/docker/docker 5 | ADD . / 6 | ADD null / 7 | COPY nullfile /tmp 8 | ADD [ "vimrc", "/tmp" ] 9 | COPY [ "bashrc", "/tmp" ] 10 | COPY [ "test file", "/tmp" ] 11 | ADD [ "test file", "/tmp/test file" ] 12 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/health/result: -------------------------------------------------------------------------------- 1 | (from "debian") 2 | (add "check.sh" "main.sh" "/app/") 3 | (cmd "/app/main.sh") 4 | (healthcheck) 5 | (healthcheck ["--interval=5s" "--timeout=3s" "--retries=3"] "CMD" "/app/check.sh --quiet") 6 | (healthcheck "CMD") 7 | (healthcheck "CMD" "a b") 8 | (healthcheck ["--timeout=3s"] "CMD" "foo") 9 | (healthcheck "CONNECT" "TCP 7000") 10 | -------------------------------------------------------------------------------- /frontend/dockerfile/shell/equal_env_windows.go: -------------------------------------------------------------------------------- 1 | package shell 2 | 3 | import "strings" 4 | 5 | // EqualEnvKeys compare two strings and returns true if they are equal. 6 | // On Unix this comparison is case sensitive. 7 | // On Windows this comparison is case insensitive. 8 | func EqualEnvKeys(from, to string) bool { 9 | return strings.ToUpper(from) == strings.ToUpper(to) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fs/constants_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fs 6 | 7 | import "syscall" 8 | 9 | // ENOATTR indicates that an extended attribute was not present. 10 | var ENOATTR = syscall.ENODATA 11 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/mounter_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build (!linux && !freebsd && !openbsd && !windows) || (freebsd && !cgo) || (openbsd && !cgo) 2 | // +build !linux,!freebsd,!openbsd,!windows freebsd,!cgo openbsd,!cgo 3 | 4 | package mount 5 | 6 | func mount(device, target, mType string, flag uintptr, data string) error { 7 | panic("cgo required on freebsd and openbsd") 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/ADD-COPY-with-JSON/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (label "maintainer" "Seongyeol Lim ") 3 | (copy "." "/go/src/github.com/docker/docker") 4 | (add "." "/") 5 | (add "null" "/") 6 | (copy "nullfile" "/tmp") 7 | (add "vimrc" "/tmp") 8 | (copy "bashrc" "/tmp") 9 | (copy "test file" "/tmp") 10 | (add "test file" "/tmp/test file") 11 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/fifo/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - golint 10 | - ineffassign 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | timeout: 3m 19 | skip-dirs: 20 | - vendor 21 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fs/constants_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fs 6 | 7 | import "syscall" 8 | 9 | // ENOATTR indicates that an extended attribute was not present. 10 | var ENOATTR = syscall.ENOATTR 11 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/copy/hardlink_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package fs 5 | 6 | import ( 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | func getLinkInfo(fi os.FileInfo) (uint64, bool) { 12 | s, ok := fi.Sys().(*syscall.Stat_t) 13 | if !ok { 14 | return 0, false 15 | } 16 | 17 | return uint64(s.Ino), !fi.IsDir() && s.Nlink > 1 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /examples/systemd/user/buildkit-proxy.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Requires=buildkit.service 3 | After=buildkit.service 4 | Requires=buildkit-proxy.socket 5 | After=buildkit-proxy.socket 6 | 7 | [Service] 8 | # need to use proxy because rootlesskit does not forward the fd://3 9 | ExecStart=/usr/lib/systemd/systemd-socket-proxyd %t/buildkit/rootless 10 | 11 | [Install] 12 | WantedBy=multi-user.target 13 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/mouse.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Mouse struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/armon/circbuf/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/console/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - golint 10 | - ineffassign 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | timeout: 3m 19 | skip-dirs: 20 | - vendor 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/interface_stable.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // APIClient is an interface that clients that talk with a docker server must implement. 4 | type APIClient interface { 5 | CommonAPIClient 6 | apiClientExperimental 7 | } 8 | 9 | // Ensure that Client always implements APIClient. 10 | var _ APIClient = &Client{} 11 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/impl/codec_map_go112.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.12 6 | 7 | package impl 8 | 9 | import "reflect" 10 | 11 | func mapRange(v reflect.Value) *reflect.MapIter { return v.MapRange() } 12 | -------------------------------------------------------------------------------- /frontend/dockerfile/dockerfile2llb/convert_norunsecurity.go: -------------------------------------------------------------------------------- 1 | //go:build !dfrunsecurity 2 | // +build !dfrunsecurity 3 | 4 | package dockerfile2llb 5 | 6 | import ( 7 | "github.com/moby/buildkit/client/llb" 8 | "github.com/moby/buildkit/frontend/dockerfile/instructions" 9 | ) 10 | 11 | func dispatchRunSecurity(c *instructions.RunCommand) (llb.RunOption, error) { 12 | return nil, nil 13 | } 14 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | LABEL maintainer Erik Hollensbe 3 | 4 | RUN apt-get update && apt-get install nginx-full -y 5 | RUN rm -rf /etc/nginx 6 | ADD etc /etc/nginx 7 | RUN chown -R root:root /etc/nginx 8 | RUN /usr/sbin/nginx -qt 9 | RUN mkdir /www 10 | 11 | CMD ["/usr/sbin/nginx"] 12 | 13 | VOLUME /www 14 | EXPOSE 80 15 | -------------------------------------------------------------------------------- /session/sshforward/sshprovider/agentprovider_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package sshprovider 5 | 6 | import ( 7 | "github.com/pkg/errors" 8 | ) 9 | 10 | func getFallbackAgentPath() (string, error) { 11 | return "", errors.Errorf("make sure SSH_AUTH_SOCK is set") 12 | } 13 | 14 | func getWindowsPipeDialer(path string) *socketDialer { 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/battery.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Battery struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/utimes_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux && !freebsd 2 | // +build !linux,!freebsd 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import "syscall" 7 | 8 | // LUtimesNano is only supported on linux and freebsd. 9 | func LUtimesNano(path string, ts []syscall.Timespec) error { 10 | return ErrNotSupportedPlatform 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/fuzz.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -eu 3 | 4 | go get github.com/dvyukov/go-fuzz/go-fuzz 5 | go get github.com/dvyukov/go-fuzz/go-fuzz-build 6 | 7 | if [ ! -e toml-fuzz.zip ]; then 8 | go-fuzz-build github.com/pelletier/go-toml 9 | fi 10 | 11 | rm -fr fuzz 12 | mkdir -p fuzz/corpus 13 | cp *.toml fuzz/corpus 14 | 15 | go-fuzz -bin=toml-fuzz.zip -workdir=fuzz 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !linux && (mips64 || mips64le) 6 | // +build !linux 7 | // +build mips64 mips64le 8 | 9 | package cpu 10 | 11 | func archInit() { 12 | Initialized = true 13 | } 14 | -------------------------------------------------------------------------------- /cmd/buildctl/debug.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/moby/buildkit/cmd/buildctl/debug" 5 | "github.com/urfave/cli" 6 | ) 7 | 8 | var debugCommand = cli.Command{ 9 | Name: "debug", 10 | Usage: "debug utilities", 11 | Subcommands: []cli.Command{ 12 | debug.DumpLLBCommand, 13 | debug.DumpMetadataCommand, 14 | debug.WorkersCommand, 15 | debug.InfoCommand, 16 | }, 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/keyboard.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Keyboard struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/client_windows.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | // DefaultDockerHost defines OS-specific default host if the DOCKER_HOST 4 | // (EnvOverrideHost) environment variable is unset or empty. 5 | const DefaultDockerHost = "npipe:////./pipe/docker_engine" 6 | 7 | const defaultProto = "npipe" 8 | const defaultAddr = "//./pipe/docker_engine" 9 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/constants_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | import ( 8 | "syscall" 9 | ) 10 | 11 | const syscall_O_LARGEFILE = syscall.O_LARGEFILE 12 | const syscall_O_NOATIME = syscall.O_NOATIME 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /cmd/buildkitd/main_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package main 5 | 6 | import ( 7 | "crypto/tls" 8 | "net" 9 | 10 | _ "github.com/moby/buildkit/solver/llbsolver/ops" 11 | "github.com/pkg/errors" 12 | ) 13 | 14 | func listenFD(addr string, tlsConfig *tls.Config) (net.Listener, error) { 15 | return nil, errors.New("listening server on fd not supported on windows") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/common.go: -------------------------------------------------------------------------------- 1 | package api // import "github.com/docker/docker/api" 2 | 3 | // Common constants for daemon and client. 4 | const ( 5 | // DefaultVersion of Current REST API 6 | DefaultVersion = "1.42" 7 | 8 | // NoBaseImageSpecifier is the symbol used by the FROM 9 | // command to specify that no base image is to be used. 10 | NoBaseImageSpecifier = "scratch" 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/service_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ServiceRemove kills and removes a service. 6 | func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error { 7 | resp, err := cli.delete(ctx, "/services/"+serviceID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/ishidawataru/sctp/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Test binary, build with `go test -c` 8 | *.test 9 | 10 | # Output of the go coverage tool, specifically when used with LiteIDE 11 | *.out 12 | 13 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 14 | .glide/ 15 | 16 | example/example 17 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/fuzz.go: -------------------------------------------------------------------------------- 1 | //go:build ignorecrc 2 | // +build ignorecrc 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | // Based on work by Yann Collet, released under BSD License. 7 | 8 | package zstd 9 | 10 | // ignoreCRC can be used for fuzz testing to ignore CRC values... 11 | const ignoreCRC = true 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | package xxhash 2 | 3 | // Sum64String computes the 64-bit xxHash digest of s. 4 | func Sum64String(s string) uint64 { 5 | return Sum64([]byte(s)) 6 | } 7 | 8 | // WriteString adds more data to d. It always returns len(s), nil. 9 | func (d *Digest) WriteString(s string) (n int, err error) { 10 | return d.Write([]byte(s)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.12-alpine3.9 as builder 2 | WORKDIR /go/src/github.com/pelletier/go-toml 3 | COPY . . 4 | ENV CGO_ENABLED=0 5 | ENV GOOS=linux 6 | RUN go install ./... 7 | 8 | FROM scratch 9 | COPY --from=builder /go/bin/tomll /usr/bin/tomll 10 | COPY --from=builder /go/bin/tomljson /usr/bin/tomljson 11 | COPY --from=builder /go/bin/jsontoml /usr/bin/jsontoml 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (!amd64 && !ppc64le && !s390x) || !gc || purego 6 | // +build !amd64,!ppc64le,!s390x !gc purego 7 | 8 | package poly1305 9 | 10 | type mac struct{ macGeneric } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo 6 | // +build gccgo 7 | 8 | package cpu 9 | 10 | func getisar0() uint64 { return 0 } 11 | func getisar1() uint64 { return 0 } 12 | func getpfr0() uint64 { return 0 } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package registry 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go 11 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.13 6 | 7 | package errors 8 | 9 | import "errors" 10 | 11 | // Is is errors.Is. 12 | func Is(err, target error) bool { return errors.Is(err, target) } 13 | -------------------------------------------------------------------------------- /client/filter.go: -------------------------------------------------------------------------------- 1 | package client 2 | 3 | func WithFilter(f []string) Filter { 4 | return Filter(f) 5 | } 6 | 7 | type Filter []string 8 | 9 | func (f Filter) SetDiskUsageOption(di *DiskUsageInfo) { 10 | di.Filter = f 11 | } 12 | 13 | func (f Filter) SetPruneOption(pi *PruneInfo) { 14 | pi.Filter = f 15 | } 16 | 17 | func (f Filter) SetListWorkersOption(lwi *ListWorkersInfo) { 18 | lwi.Filter = f 19 | } 20 | -------------------------------------------------------------------------------- /cmd/buildkitd/util_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | // +build !linux 3 | 4 | package main 5 | 6 | import ( 7 | "github.com/docker/docker/pkg/idtools" 8 | "github.com/pkg/errors" 9 | ) 10 | 11 | func parseIdentityMapping(str string) (*idtools.IdentityMapping, error) { 12 | if str == "" { 13 | return nil, nil 14 | } 15 | return nil, errors.New("user namespaces are only supported on linux") 16 | } 17 | -------------------------------------------------------------------------------- /session/secrets/secrets.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package moby.buildkit.secrets.v1; 4 | 5 | option go_package = "secrets"; 6 | 7 | service Secrets{ 8 | rpc GetSecret(GetSecretRequest) returns (GetSecretResponse); 9 | } 10 | 11 | 12 | message GetSecretRequest { 13 | string ID = 1; 14 | map annotations = 2; 15 | } 16 | 17 | message GetSecretResponse { 18 | bytes data = 1; 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/gofrs/flock/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/request_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | const outputHeaderSize = 200 8 | 9 | const ( 10 | _FUSE_KERNEL_VERSION = 7 11 | _MINIMUM_MINOR_VERSION = 8 12 | _OUR_MINOR_VERSION = 8 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/request_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | const outputHeaderSize = 160 8 | 9 | const ( 10 | _FUSE_KERNEL_VERSION = 7 11 | _MINIMUM_MINOR_VERSION = 12 12 | _OUR_MINOR_VERSION = 28 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-immutable-radix/edges.go: -------------------------------------------------------------------------------- 1 | package iradix 2 | 3 | import "sort" 4 | 5 | type edges []edge 6 | 7 | func (e edges) Len() int { 8 | return len(e) 9 | } 10 | 11 | func (e edges) Less(i, j int) bool { 12 | return e[i].label < e[j].label 13 | } 14 | 15 | func (e edges) Swap(i, j int) { 16 | e[i], e[j] = e[j], e[i] 17 | } 18 | 19 | func (e edges) Sort() { 20 | sort.Sort(e) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | // +build !go1.18 9 | 10 | package idna 11 | 12 | const transitionalLookup = true 13 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/continueIndent/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (run "echo hello world goodnight moon lightning") 3 | (run "echo hello world") 4 | (run "echo hello world") 5 | (run "echo hello goodbyefrog") 6 | (run "echo hello world") 7 | (run "echo hi world goodnight") 8 | (run "echo goodbyefrog") 9 | (run "echo goodbyefrog") 10 | (run "echo hello this is some more useful stuff") 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/nginx/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (label "maintainer" "Erik Hollensbe ") 3 | (run "apt-get update && apt-get install nginx-full -y") 4 | (run "rm -rf /etc/nginx") 5 | (add "etc" "/etc/nginx") 6 | (run "chown -R root:root /etc/nginx") 7 | (run "/usr/sbin/nginx -qt") 8 | (run "mkdir /www") 9 | (cmd "/usr/sbin/nginx") 10 | (volume "/www") 11 | (expose "80") 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-events/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/grpc-ecosystem/go-grpc-middleware/makefile: -------------------------------------------------------------------------------- 1 | SHELL=/bin/bash 2 | 3 | GOFILES_NOVENDOR = $(shell go list ./... | grep -v /vendor/) 4 | 5 | all: vet fmt test 6 | 7 | fmt: 8 | go fmt $(GOFILES_NOVENDOR) 9 | 10 | vet: 11 | # do not check lostcancel, they are intentional. 12 | go vet -lostcancel=false $(GOFILES_NOVENDOR) 13 | 14 | test: vet 15 | ./scripts/test_all.sh 16 | 17 | .PHONY: all test 18 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/fuzz_none.go: -------------------------------------------------------------------------------- 1 | //go:build !ignorecrc 2 | // +build !ignorecrc 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | // Based on work by Yann Collet, released under BSD License. 7 | 8 | package zstd 9 | 10 | // ignoreCRC can be used for fuzz testing to ignore CRC values... 11 | const ignoreCRC = false 12 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/tomltree_writepub.go: -------------------------------------------------------------------------------- 1 | package toml 2 | 3 | // ValueStringRepresentation transforms an interface{} value into its toml string representation. 4 | func ValueStringRepresentation(v interface{}, commented string, indent string, ord MarshalOrder, arraysOneElementPerLine bool) (string, error) { 5 | return tomlValueStringRepresentation(v, commented, indent, ord, arraysOneElementPerLine) 6 | } 7 | -------------------------------------------------------------------------------- /solver/errdefs/op.go: -------------------------------------------------------------------------------- 1 | package errdefs 2 | 3 | import "github.com/moby/buildkit/solver/pb" 4 | 5 | type OpError struct { 6 | error 7 | Op *pb.Op 8 | } 9 | 10 | func (e *OpError) Unwrap() error { 11 | return e.error 12 | } 13 | 14 | func WithOp(err error, iface interface{}) error { 15 | op, ok := iface.(*pb.Op) 16 | if err == nil || !ok { 17 | return err 18 | } 19 | return &OpError{error: err, Op: op} 20 | } 21 | -------------------------------------------------------------------------------- /util/network/network.go: -------------------------------------------------------------------------------- 1 | package network 2 | 3 | import ( 4 | "io" 5 | 6 | specs "github.com/opencontainers/runtime-spec/specs-go" 7 | ) 8 | 9 | // Provider interface for Network 10 | type Provider interface { 11 | New() (Namespace, error) 12 | } 13 | 14 | // Namespace of network for workers 15 | type Namespace interface { 16 | io.Closer 17 | // Set the namespace on the spec 18 | Set(*specs.Spec) error 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/selinux/go-selinux/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package selinux provides a high-level interface for interacting with selinux. 3 | 4 | Usage: 5 | 6 | import "github.com/opencontainers/selinux/go-selinux" 7 | 8 | // Ensure that selinux is enforcing mode. 9 | if selinux.EnforceMode() != selinux.Enforcing { 10 | selinux.SetEnforceMode(selinux.Enforcing) 11 | } 12 | 13 | */ 14 | package selinux 15 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/copy/stat_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd netbsd openbsd 2 | 3 | package fs 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // Returns the last-accessed time 10 | func StatAtime(st *syscall.Stat_t) syscall.Timespec { 11 | return st.Atimespec 12 | } 13 | 14 | // Returns the last-modified time 15 | func StatMtime(st *syscall.Stat_t) syscall.Timespec { 16 | return st.Mtimespec 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/go-archvariant/.golangci.yml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 10m 3 | skip-files: 4 | - ".*\\.pb\\.go$" 5 | 6 | linters: 7 | enable: 8 | - gofmt 9 | - govet 10 | - deadcode 11 | - goimports 12 | - ineffassign 13 | - misspell 14 | - unused 15 | - varcheck 16 | - revive 17 | - staticcheck 18 | - typecheck 19 | - structcheck 20 | disable-all: true 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /util/winlayers/context.go: -------------------------------------------------------------------------------- 1 | package winlayers 2 | 3 | import "context" 4 | 5 | type contextKeyT string 6 | 7 | var contextKey = contextKeyT("buildkit/winlayers-on") 8 | 9 | func UseWindowsLayerMode(ctx context.Context) context.Context { 10 | return context.WithValue(ctx, contextKey, true) 11 | } 12 | 13 | func hasWindowsLayerMode(ctx context.Context) bool { 14 | v := ctx.Value(contextKey) 15 | return v != nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/cenkalti/backoff/v4/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | 24 | # IDEs 25 | .idea/ 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/network_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // NetworkRemove removes an existent network from the docker host. 6 | func (cli *Client) NetworkRemove(ctx context.Context, networkID string) error { 7 | resp, err := cli.delete(ctx, "/networks/"+networkID, nil, nil) 8 | defer ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | // Mknod is not implemented on Windows. 4 | func Mknod(path string, mode uint32, dev int) error { 5 | return ErrNotSupportedPlatform 6 | } 7 | 8 | // Mkdev is not implemented on Windows. 9 | func Mkdev(major int64, minor int64) uint32 { 10 | panic("Mkdev not implemented on Windows.") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_solaris.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: s.Mode, 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: s.Rdev, 12 | mtim: s.Mtim}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/umask.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // Umask sets current process's file mode creation mask to newmask 11 | // and returns oldmask. 12 | func Umask(newmask int) (oldmask int, err error) { 13 | return unix.Umask(newmask), nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/continuity/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | bin 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/plugin_set.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // PluginSet modifies settings for an existing plugin 8 | func (cli *Client) PluginSet(ctx context.Context, name string, args []string) error { 9 | resp, err := cli.post(ctx, "/plugins/"+name+"/set", nil, args, nil) 10 | ensureReaderClosed(resp) 11 | return err 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/libnetwork/resolvconf/utils.go: -------------------------------------------------------------------------------- 1 | package resolvconf 2 | 3 | import ( 4 | "crypto/sha256" 5 | "encoding/hex" 6 | "io" 7 | ) 8 | 9 | // hashData returns the sha256 sum of src. 10 | func hashData(src io.Reader) (string, error) { 11 | h := sha256.New() 12 | if _, err := io.Copy(h, src); err != nil { 13 | return "", err 14 | } 15 | return "sha256:" + hex.EncodeToString(h.Sum(nil)), nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | // +build !linux 3 | 4 | package archive // import "github.com/docker/docker/pkg/archive" 5 | 6 | import ( 7 | "syscall" 8 | "time" 9 | ) 10 | 11 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 12 | nsec := int64(0) 13 | if !time.IsZero() { 14 | nsec = time.UnixNano() 15 | } 16 | return syscall.NsecToTimespec(nsec) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-immutable-radix/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /cmd/buildctl/build/build.go: -------------------------------------------------------------------------------- 1 | package build 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/pkg/errors" 7 | ) 8 | 9 | func attrMap(sl []string) (map[string]string, error) { 10 | m := map[string]string{} 11 | for _, v := range sl { 12 | parts := strings.SplitN(v, "=", 2) 13 | if len(parts) != 2 { 14 | return nil, errors.Errorf("invalid value %s", v) 15 | } 16 | m[parts[0]] = parts[1] 17 | } 18 | return m, nil 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/error_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ErrorResponse Represents an error. 7 | // swagger:model ErrorResponse 8 | type ErrorResponse struct { 9 | 10 | // The error message. 11 | // Required: true 12 | Message string `json:"message"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_linux.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | ) 7 | 8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 9 | if time.IsZero() { 10 | // Return UTIME_OMIT special value 11 | ts.Sec = 0 12 | ts.Nsec = (1 << 30) - 2 13 | return 14 | } 15 | return syscall.NsecToTimespec(time.UnixNano()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x 6 | // +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x 7 | 8 | package cpu 9 | 10 | func doinit() {} 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/winapi.go: -------------------------------------------------------------------------------- 1 | // Package winapi contains various low-level bindings to Windows APIs. It can 2 | // be thought of as an extension to golang.org/x/sys/windows. 3 | package winapi 4 | 5 | //go:generate go run ..\..\mksyscall_windows.go -output zsyscall_windows.go console.go system.go net.go path.go thread.go iocp.go jobobject.go logon.go memory.go process.go processor.go devices.go filesystem.go errors.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_openbsd.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: uint32(s.Mode), 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: uint64(s.Rdev), 12 | mtim: s.Mtim}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/README: -------------------------------------------------------------------------------- 1 | This package is kept in sync with crypto/ed25519/internal/edwards25519/field in 2 | the standard library. 3 | 4 | If there are any changes in the standard library that need to be synced to this 5 | package, run sync.sh. It will not overwrite any local changes made since the 6 | previous sync, so it's ok to land changes in this package first, and then sync 7 | to the standard library later. 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !arm64 || !gc || purego 6 | // +build !arm64 !gc purego 7 | 8 | package field 9 | 10 | func (v *Element) carryPropagate() *Element { 11 | return v.carryPropagateGeneric() 12 | } 13 | -------------------------------------------------------------------------------- /util/network/cniprovider/cni_unsafe.go: -------------------------------------------------------------------------------- 1 | //go:build linux 2 | // +build linux 3 | 4 | package cniprovider 5 | 6 | import ( 7 | _ "unsafe" // required for go:linkname. 8 | ) 9 | 10 | //go:linkname beforeFork syscall.runtime_BeforeFork 11 | func beforeFork() 12 | 13 | //go:linkname afterFork syscall.runtime_AfterFork 14 | func afterFork() 15 | 16 | //go:linkname afterForkInChild syscall.runtime_AfterForkInChild 17 | func afterForkInChild() 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_os.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type GuestOs struct { 13 | HostName string `json:"HostName,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/memory.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Memory struct { 13 | SizeInMB uint64 `json:"SizeInMB,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/plan9.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Plan9 struct { 13 | Shares []Plan9Share `json:"Shares,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_join.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmJoin joins the swarm. 10 | func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error { 11 | resp, err := cli.post(ctx, "/swarm/join", nil, req, nil) 12 | ensureReaderClosed(resp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/lstat_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "os" 4 | 5 | // Lstat calls os.Lstat to get a fileinfo interface back. 6 | // This is then copied into our own locally defined structure. 7 | func Lstat(path string) (*StatT, error) { 8 | fi, err := os.Lstat(path) 9 | if err != nil { 10 | return nil, err 11 | } 12 | 13 | return fromStatT(&fi) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_darwin.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: uint32(s.Mode), 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: uint64(s.Rdev), 12 | mtim: s.Mtimespec}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | /s2/cmd/_s2sx/sfx-exe 26 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/go-archvariant/amd64variant.s: -------------------------------------------------------------------------------- 1 | //go:build amd64 2 | // +build amd64 3 | 4 | #include "textflag.h" 5 | 6 | 7 | TEXT ·cpuid(SB),NOSPLIT,$0-24 8 | MOVL ax+0(FP),AX 9 | MOVL cx+4(FP), CX 10 | CPUID 11 | MOVL AX,eax+8(FP) 12 | MOVL BX,ebx+12(FP) 13 | MOVL CX,ecx+16(FP) 14 | MOVL DX,edx+20(FP) 15 | RET 16 | 17 | TEXT ·xgetbv(SB),NOSPLIT,$0-8 18 | XORL CX, CX 19 | XGETBV 20 | MOVL AX, eax+0(FP) 21 | RET 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.10 6 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/close_handle.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CloseHandle struct { 13 | Handle string `json:"Handle,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_unpause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerUnpause resumes the process execution within a container 6 | func (cli *Client) ContainerUnpause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/unpause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/copy/stat_sysv.go: -------------------------------------------------------------------------------- 1 | //go:build dragonfly || linux || solaris 2 | // +build dragonfly linux solaris 3 | 4 | package fs 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // Returns the last-accessed time 11 | func StatAtime(st *syscall.Stat_t) syscall.Timespec { 12 | return st.Atim 13 | } 14 | 15 | // Returns the last-modified time 16 | func StatMtime(st *syscall.Stat_t) syscall.Timespec { 17 | return st.Mtim 18 | } 19 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.markdown-link.json: -------------------------------------------------------------------------------- 1 | { 2 | "ignorePatterns": [ 3 | { 4 | "pattern": "^http(s)?://localhost" 5 | } 6 | ], 7 | "replacementPatterns": [ 8 | { 9 | "pattern": "^/registry", 10 | "replacement": "https://opentelemetry.io/registry" 11 | } 12 | ], 13 | "retryOn429": true, 14 | "retryCount": 5, 15 | "fallbackRetryDelay": "30s" 16 | } 17 | -------------------------------------------------------------------------------- /cmd/buildkitd/config/gcpolicy_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package config 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | func DetectDefaultGCCap(root string) int64 { 11 | var st syscall.Statfs_t 12 | if err := syscall.Statfs(root, &st); err != nil { 13 | return defaultCap 14 | } 15 | diskSize := int64(st.Bsize) * int64(st.Blocks) 16 | avail := diskSize / 10 17 | return (avail/(1<<30) + 1) * 1e9 // round up 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/id_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // IDResponse Response to an API call that returns just an Id 7 | // swagger:model IdResponse 8 | type IDResponse struct { 9 | 10 | // The id of the newly created object. 11 | // Required: true 12 | ID string `json:"Id"` 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/service_update_response.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ServiceUpdateResponse service update response 7 | // swagger:model ServiceUpdateResponse 8 | type ServiceUpdateResponse struct { 9 | 10 | // Optional warning messages 11 | Warnings []string `json:"Warnings"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/time/duration_convert.go: -------------------------------------------------------------------------------- 1 | package time // import "github.com/docker/docker/api/types/time" 2 | 3 | import ( 4 | "strconv" 5 | "time" 6 | ) 7 | 8 | // DurationToSecondsString converts the specified duration to the number 9 | // seconds it represents, formatted as a string. 10 | func DurationToSecondsString(duration time.Duration) string { 11 | return strconv.FormatFloat(duration.Seconds(), 'f', 0, 64) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/types/stat.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package fsutil.types; 4 | 5 | option go_package = "types"; 6 | 7 | message Stat { 8 | string path = 1; 9 | uint32 mode = 2; 10 | uint32 uid = 3; 11 | uint32 gid = 4; 12 | int64 size = 5; 13 | int64 modTime = 6; 14 | // int32 typeflag = 7; 15 | string linkname = 7; 16 | int64 devmajor = 8; 17 | int64 devminor = 9; 18 | map xattrs = 10; 19 | } -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build mips64 || mips64le 6 | // +build mips64 mips64le 7 | 8 | package cpu 9 | 10 | const cacheLineSize = 32 11 | 12 | func initOptions() { 13 | options = []option{ 14 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/container_pause.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ContainerPause pauses the main process of a given container without terminating it. 6 | func (cli *Client) ContainerPause(ctx context.Context, containerID string) error { 7 | resp, err := cli.post(ctx, "/containers/"+containerID+"/pause", nil, nil, nil) 8 | ensureReaderClosed(resp) 9 | return err 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/path.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // DWORD SearchPathW( 4 | // LPCWSTR lpPath, 5 | // LPCWSTR lpFileName, 6 | // LPCWSTR lpExtension, 7 | // DWORD nBufferLength, 8 | // LPWSTR lpBuffer, 9 | // LPWSTR *lpFilePart 10 | // ); 11 | //sys SearchPath(lpPath *uint16, lpFileName *uint16, lpExtension *uint16, nBufferLength uint32, lpBuffer *uint16, lpFilePath *uint16) (size uint32, err error) = kernel32.SearchPathW 12 | -------------------------------------------------------------------------------- /vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go: -------------------------------------------------------------------------------- 1 | package md2man 2 | 3 | import ( 4 | "github.com/russross/blackfriday/v2" 5 | ) 6 | 7 | // Render converts a markdown document into a roff formatted document. 8 | func Render(doc []byte) []byte { 9 | renderer := NewRoffRenderer() 10 | 11 | return blackfriday.Run(doc, 12 | []blackfriday.Option{blackfriday.WithRenderer(renderer), 13 | blackfriday.WithExtensions(renderer.GetExtensions())}...) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_asm.go: -------------------------------------------------------------------------------- 1 | //go:build (amd64 || arm64) && !appengine && gc && !purego && !noasm 2 | // +build amd64 arm64 3 | // +build !appengine 4 | // +build gc 5 | // +build !purego 6 | // +build !noasm 7 | 8 | package xxhash 9 | 10 | // Sum64 computes the 64-bit xxHash digest of b. 11 | // 12 | //go:noescape 13 | func Sum64(b []byte) uint64 14 | 15 | //go:noescape 16 | func writeBlocks(d *Digest, b []byte) int 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !386 && !amd64 && !amd64p32 && !arm64 6 | // +build !386,!amd64,!amd64p32,!arm64 7 | 8 | package cpu 9 | 10 | func archInit() { 11 | if err := readHWCAP(); err != nil { 12 | return 13 | } 14 | doinit() 15 | Initialized = true 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /cmd/buildctl/build/allow.go: -------------------------------------------------------------------------------- 1 | package build 2 | 3 | import ( 4 | "github.com/moby/buildkit/util/entitlements" 5 | ) 6 | 7 | // ParseAllow parses --allow 8 | func ParseAllow(inp []string) ([]entitlements.Entitlement, error) { 9 | ent := make([]entitlements.Entitlement, 0, len(inp)) 10 | for _, v := range inp { 11 | e, err := entitlements.Parse(v) 12 | if err != nil { 13 | return nil, err 14 | } 15 | ent = append(ent, e) 16 | } 17 | return ent, nil 18 | } 19 | -------------------------------------------------------------------------------- /util/network/netproviders/network_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package netproviders 5 | 6 | import ( 7 | "github.com/moby/buildkit/util/network" 8 | "github.com/sirupsen/logrus" 9 | ) 10 | 11 | func getHostProvider() (network.Provider, bool) { 12 | return nil, false 13 | } 14 | 15 | func getFallback() (network.Provider, string) { 16 | logrus.Warn("using null network as the default") 17 | return network.NewNoneProvider(), "" 18 | } 19 | -------------------------------------------------------------------------------- /util/tracing/transform/instrumentation.go: -------------------------------------------------------------------------------- 1 | package transform 2 | 3 | import ( 4 | commonpb "go.opentelemetry.io/proto/otlp/common/v1" 5 | 6 | "go.opentelemetry.io/otel/sdk/instrumentation" 7 | ) 8 | 9 | func instrumentationLibrary(il *commonpb.InstrumentationLibrary) instrumentation.Library { 10 | if il == nil { 11 | return instrumentation.Library{} 12 | } 13 | return instrumentation.Library{ 14 | Name: il.Name, 15 | Version: il.Version, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/go-cni/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - golint 10 | - ineffassign 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | # FIXME: re-enable after fixing GoDoc in this repository 18 | #issues: 19 | # include: 20 | # - EXC0002 21 | 22 | run: 23 | timeout: 2m 24 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/swagger-gen.yaml: -------------------------------------------------------------------------------- 1 | 2 | layout: 3 | models: 4 | - name: definition 5 | source: asset:model 6 | target: "{{ joinFilePath .Target .ModelPackage }}" 7 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 8 | operations: 9 | - name: handler 10 | source: asset:serverOperation 11 | target: "{{ joinFilePath .Target .APIPackage .Package }}" 12 | file_name: "{{ (snakize (pascalize .Name)) }}.go" 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_unlock.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/docker/docker/api/types/swarm" 7 | ) 8 | 9 | // SwarmUnlock unlocks locked swarm. 10 | func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error { 11 | serverResp, err := cli.post(ctx, "/swarm/unlock", nil, req, nil) 12 | ensureReaderClosed(serverResp) 13 | return err 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/felixge/httpsnoop/docs.go: -------------------------------------------------------------------------------- 1 | // Package httpsnoop provides an easy way to capture http related metrics (i.e. 2 | // response time, bytes written, and http status code) from your application's 3 | // http.Handlers. 4 | // 5 | // Doing this requires non-trivial wrapping of the http.ResponseWriter 6 | // interface, which is also exposed for users interested in a more low-level 7 | // API. 8 | package httpsnoop 9 | 10 | //go:generate go run codegen/main.go 11 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/types/wire.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | package fsutil.types; 4 | 5 | option go_package = "types"; 6 | 7 | import "stat.proto"; 8 | 9 | message Packet { 10 | enum PacketType { 11 | PACKET_STAT = 0; 12 | PACKET_REQ = 1; 13 | PACKET_DATA = 2; 14 | PACKET_FIN = 3; 15 | PACKET_ERR = 4; 16 | } 17 | PacketType type = 1; 18 | Stat stat = 2; 19 | uint32 ID = 3; 20 | bytes data = 4; 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !amd64 || !gc || purego 6 | // +build !amd64 !gc purego 7 | 8 | package field 9 | 10 | func feMul(v, x, y *Element) { feMulGeneric(v, x, y) } 11 | 12 | func feSquare(v, x *Element) { feSquareGeneric(v, x) } 13 | -------------------------------------------------------------------------------- /frontend/dockerfile/cmd/dockerfile-frontend/version.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | var ( 4 | // Package is filled at linking time 5 | Package = "github.com/moby/buildkit/frontend/dockerfile/cmd/dockerfile-frontend" 6 | 7 | // Version holds the complete version number. Filled in at linking time. 8 | Version = "0.0.0+unknown" 9 | 10 | // Revision is filled with the VCS (e.g. git) revision being used to build 11 | // the program at linking time. 12 | Revision = "" 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/config_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // ConfigRemove removes a config. 6 | func (cli *Client) ConfigRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError("1.30", "config remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/configs/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/secret_remove.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import "context" 4 | 5 | // SecretRemove removes a secret. 6 | func (cli *Client) SecretRemove(ctx context.Context, id string) error { 7 | if err := cli.NewVersionError("1.25", "secret remove"); err != nil { 8 | return err 9 | } 10 | resp, err := cli.delete(ctx, "/secrets/"+id, nil, nil) 11 | defer ensureReaderClosed(resp) 12 | return err 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/chtimes_nowindows.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import ( 7 | "time" 8 | ) 9 | 10 | // setCTime will set the create time on a file. On Unix, the create 11 | // time is updated as a side effect of setting the modified time, so 12 | // no action is required. 13 | func setCTime(path string, ctime time.Time) error { 14 | return nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | 4 | .tools/ 5 | .idea/ 6 | .vscode/ 7 | *.iml 8 | *.so 9 | coverage.* 10 | 11 | gen/ 12 | 13 | /example/fib/fib 14 | /example/jaeger/jaeger 15 | /example/namedtracer/namedtracer 16 | /example/opencensus/opencensus 17 | /example/passthrough/passthrough 18 | /example/prometheus/prometheus 19 | /example/prom-collector/prom-collector 20 | /example/zipkin/zipkin 21 | /example/otel-collector/otel-collector 22 | -------------------------------------------------------------------------------- /hack/dockerfiles/shfmt.Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax=docker/dockerfile-upstream:master 2 | FROM mvdan/shfmt:v3.1.2-alpine AS shfmt 3 | WORKDIR /src 4 | ARG SHFMT_FLAGS="-i 2 -ci" 5 | 6 | FROM shfmt AS generate 7 | WORKDIR /out/hack 8 | RUN --mount=target=/src \ 9 | cp -a /src/hack/. ./ && \ 10 | shfmt -l -w $SHFMT_FLAGS . 11 | 12 | FROM scratch AS update 13 | COPY --from=generate /out / 14 | 15 | FROM shfmt AS validate 16 | RUN --mount=target=. \ 17 | shfmt $SHFMT_FLAGS -d ./hack 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go: -------------------------------------------------------------------------------- 1 | package guid 2 | 3 | import "golang.org/x/sys/windows" 4 | 5 | // GUID represents a GUID/UUID. It has the same structure as 6 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 7 | // that type. It is defined as its own type so that stringification and 8 | // marshaling can be supported. The representation matches that used by native 9 | // Windows code. 10 | type GUID windows.GUID 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/chrootarchive/chroot_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !linux 2 | // +build !windows,!linux 3 | 4 | package chrootarchive // import "github.com/docker/docker/pkg/chrootarchive" 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | func chroot(path string) error { 9 | if err := unix.Chroot(path); err != nil { 10 | return err 11 | } 12 | return unix.Chdir("/") 13 | } 14 | 15 | func realChroot(path string) error { 16 | return chroot(path) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/errors.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | import "syscall" 4 | 5 | //sys RtlNtStatusToDosError(status uint32) (winerr error) = ntdll.RtlNtStatusToDosError 6 | 7 | const ( 8 | STATUS_REPARSE_POINT_ENCOUNTERED = 0xC000050B 9 | ERROR_NO_MORE_ITEMS = 0x103 10 | ERROR_MORE_DATA syscall.Errno = 234 11 | ) 12 | 13 | func NTSuccess(status uint32) bool { 14 | return status == 0 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/swarm_leave.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "context" 5 | "net/url" 6 | ) 7 | 8 | // SwarmLeave leaves the swarm. 9 | func (cli *Client) SwarmLeave(ctx context.Context, force bool) error { 10 | query := url.Values{} 11 | if force { 12 | query.Set("force", "1") 13 | } 14 | resp, err := cli.post(ctx, "/swarm/leave", query, nil, nil) 15 | ensureReaderClosed(resp) 16 | return err 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/client/transport.go: -------------------------------------------------------------------------------- 1 | package client // import "github.com/docker/docker/client" 2 | 3 | import ( 4 | "crypto/tls" 5 | "net/http" 6 | ) 7 | 8 | // resolveTLSConfig attempts to resolve the TLS configuration from the 9 | // RoundTripper. 10 | func resolveTLSConfig(transport http.RoundTripper) *tls.Config { 11 | switch tr := transport.(type) { 12 | case *http.Transport: 13 | return tr.TLSClientConfig 14 | default: 15 | return nil 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/opts/hosts_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package opts // import "github.com/docker/docker/opts" 5 | 6 | const ( 7 | // DefaultHTTPHost Default HTTP Host used if only port is provided to -H flag e.g. dockerd -H tcp://:8080 8 | DefaultHTTPHost = "localhost" 9 | 10 | // DefaultHost constant defines the default host string used by docker on other hosts than Windows 11 | DefaultHost = "unix://" + DefaultUnixSocket 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_freebsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd 2 | // +build freebsd 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // Mknod creates a filesystem node (file, device special file or named pipe) named path 11 | // with attributes specified by mode and dev. 12 | func Mknod(path string, mode uint32, dev int) error { 13 | return unix.Mknod(path, mode, uint64(dev)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/influxdb/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update && apt-get install wget -y 4 | RUN wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb 5 | RUN dpkg -i influxdb_latest_amd64.deb 6 | RUN rm -r /opt/influxdb/shared 7 | 8 | VOLUME /opt/influxdb/shared 9 | 10 | CMD /usr/bin/influxdb --pidfile /var/run/influxdb.pid -config /opt/influxdb/shared/config.toml 11 | 12 | EXPOSE 8083 13 | EXPOSE 8086 14 | EXPOSE 8090 15 | EXPOSE 8099 16 | -------------------------------------------------------------------------------- /session/grpchijack/hijack.go: -------------------------------------------------------------------------------- 1 | package grpchijack 2 | 3 | import ( 4 | "net" 5 | 6 | controlapi "github.com/moby/buildkit/api/services/control" 7 | "google.golang.org/grpc/metadata" 8 | ) 9 | 10 | // Hijack hijacks session to a connection. 11 | func Hijack(stream controlapi.Control_SessionServer) (net.Conn, <-chan struct{}, map[string][]string) { 12 | md, _ := metadata.FromIncomingContext(stream.Context()) 13 | c, closeCh := streamToConn(stream) 14 | return c, closeCh, md 15 | } 16 | -------------------------------------------------------------------------------- /source/git/gitsource_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package git 5 | 6 | import ( 7 | "context" 8 | "os/exec" 9 | ) 10 | 11 | func runProcessGroup(ctx context.Context, cmd *exec.Cmd) error { 12 | if err := cmd.Start(); err != nil { 13 | return err 14 | } 15 | waitDone := make(chan struct{}) 16 | go func() { 17 | select { 18 | case <-ctx.Done(): 19 | cmd.Process.Kill() 20 | case <-waitDone: 21 | } 22 | }() 23 | return cmd.Wait() 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/version.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Version struct { 13 | Major int32 `json:"Major,omitempty"` 14 | 15 | Minor int32 `json:"Minor,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/common_windows.go: -------------------------------------------------------------------------------- 1 | package api // import "github.com/docker/docker/api" 2 | 3 | // MinVersion represents Minimum REST API version supported 4 | // Technically the first daemon API version released on Windows is v1.25 in 5 | // engine version 1.13. However, some clients are explicitly using downlevel 6 | // APIs (e.g. docker-compose v2.1 file format) and that is just too restrictive. 7 | // Hence also allowing 1.24 on Windows. 8 | const MinVersion string = "1.24" 9 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/copy/mkdir_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package fs 4 | 5 | import ( 6 | "os" 7 | "time" 8 | ) 9 | 10 | func fixRootDirectory(p string) string { 11 | if len(p) == len(`\\?\c:`) { 12 | if os.IsPathSeparator(p[0]) && os.IsPathSeparator(p[1]) && p[2] == '?' && os.IsPathSeparator(p[3]) && p[5] == ':' { 13 | return p + `\` 14 | } 15 | } 16 | return p 17 | } 18 | 19 | func Utimes(p string, tm *time.Time) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opentelemetry.io/otel/.markdownlint.yaml: -------------------------------------------------------------------------------- 1 | # Default state for all rules 2 | default: true 3 | 4 | # ul-style 5 | MD004: false 6 | 7 | # hard-tabs 8 | MD010: false 9 | 10 | # line-length 11 | MD013: false 12 | 13 | # no-duplicate-header 14 | MD024: 15 | siblings_only: true 16 | 17 | #single-title 18 | MD025: false 19 | 20 | # ol-prefix 21 | MD029: 22 | style: ordered 23 | 24 | # no-inline-html 25 | MD033: false 26 | 27 | # fenced-code-language 28 | MD040: false 29 | 30 | -------------------------------------------------------------------------------- /util/network/netproviders/network_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package netproviders 5 | 6 | import ( 7 | "github.com/moby/buildkit/util/network" 8 | "github.com/sirupsen/logrus" 9 | ) 10 | 11 | func getHostProvider() (network.Provider, bool) { 12 | return network.NewHostProvider(), true 13 | } 14 | 15 | func getFallback() (network.Provider, string) { 16 | logrus.Warn("using host network as the default") 17 | return network.NewHostProvider(), "host" 18 | } 19 | -------------------------------------------------------------------------------- /util/resolver/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | type RegistryConfig struct { 4 | Mirrors []string `toml:"mirrors"` 5 | PlainHTTP *bool `toml:"http"` 6 | Insecure *bool `toml:"insecure"` 7 | RootCAs []string `toml:"ca"` 8 | KeyPairs []TLSKeyPair `toml:"keypair"` 9 | TLSConfigDir []string `toml:"tlsconfigdir"` 10 | } 11 | 12 | type TLSKeyPair struct { 13 | Key string `toml:"key"` 14 | Certificate string `toml:"cert"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/shared_memory_configuration.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type SharedMemoryConfiguration struct { 13 | Regions []SharedMemoryRegion `json:"Regions,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/container/container_wait_o_k_body_error.go: -------------------------------------------------------------------------------- 1 | package container 2 | 3 | // This file was generated by the swagger tool. 4 | // Editing this file might prove futile when you re-run the swagger generate command 5 | 6 | // ContainerWaitOKBodyError container waiting error, if any 7 | // swagger:model ContainerWaitOKBodyError 8 | type ContainerWaitOKBodyError struct { 9 | 10 | // Details of an error 11 | Message string `json:"Message,omitempty"` 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/reexec/command_unsupported.go: -------------------------------------------------------------------------------- 1 | //go:build !linux && !windows && !freebsd && !darwin 2 | // +build !linux,!windows,!freebsd,!darwin 3 | 4 | package reexec // import "github.com/docker/docker/pkg/reexec" 5 | 6 | import ( 7 | "os/exec" 8 | ) 9 | 10 | func Self() string { 11 | return "" 12 | } 13 | 14 | // Command is unsupported on operating systems apart from Linux, Windows, and Darwin. 15 | func Command(args ...string) *exec.Cmd { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/docker/go-metrics/register.go: -------------------------------------------------------------------------------- 1 | package metrics 2 | 3 | import "github.com/prometheus/client_golang/prometheus" 4 | 5 | // Register adds all the metrics in the provided namespace to the global 6 | // metrics registry 7 | func Register(n *Namespace) { 8 | prometheus.MustRegister(n) 9 | } 10 | 11 | // Deregister removes all the metrics in the provided namespace from the 12 | // global metrics registry 13 | func Deregister(n *Namespace) { 14 | prometheus.Unregister(n) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/chtimes_nolinux.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package fsutil 4 | 5 | import ( 6 | "os" 7 | "time" 8 | 9 | "github.com/pkg/errors" 10 | ) 11 | 12 | func chtimes(path string, un int64) error { 13 | mtime := time.Unix(0, un) 14 | fi, err := os.Lstat(path) 15 | if err != nil { 16 | return errors.WithStack(err) 17 | } 18 | if fi.Mode()&os.ModeSymlink != 0 { 19 | return nil 20 | } 21 | return errors.WithStack(os.Chtimes(path, mtime, mtime)) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm64 && gc && !purego 6 | // +build arm64,gc,!purego 7 | 8 | package field 9 | 10 | //go:noescape 11 | func carryPropagate(v *Element) 12 | 13 | func (v *Element) carryPropagate() *Element { 14 | carryPropagate(v) 15 | return v 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ppc64 || ppc64le 6 | // +build ppc64 ppc64le 7 | 8 | package cpu 9 | 10 | const cacheLineSize = 128 11 | 12 | func initOptions() { 13 | options = []option{ 14 | {Name: "darn", Feature: &PPC64.HasDARN}, 15 | {Name: "scv", Feature: &PPC64.HasSCV}, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.10 6 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /hack/generate-authors: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -eu -o pipefail -x 4 | 5 | cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.." 6 | 7 | # see also ".mailmap" for how email addresses and names are deduplicated 8 | 9 | { 10 | cat <<-'EOH' 11 | # This file lists all individuals having contributed content to the repository. 12 | # For how it is generated, see `scripts/generate-authors.sh`. 13 | EOH 14 | echo 15 | git log --format='%aN <%aE>' | LC_ALL=C.UTF-8 sort -uf 16 | } >AUTHORS 17 | -------------------------------------------------------------------------------- /util/network/none.go: -------------------------------------------------------------------------------- 1 | package network 2 | 3 | import ( 4 | specs "github.com/opencontainers/runtime-spec/specs-go" 5 | ) 6 | 7 | func NewNoneProvider() Provider { 8 | return &none{} 9 | } 10 | 11 | type none struct { 12 | } 13 | 14 | func (h *none) New() (Namespace, error) { 15 | return &noneNS{}, nil 16 | } 17 | 18 | type noneNS struct { 19 | } 20 | 21 | func (h *noneNS) Set(s *specs.Spec) error { 22 | return nil 23 | } 24 | 25 | func (h *noneNS) Close() error { 26 | return nil 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/console_size.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ConsoleSize struct { 13 | Height int32 `json:"Height,omitempty"` 14 | 15 | Width int32 `json:"Width,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/enhanced_mode_video.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type EnhancedModeVideo struct { 13 | ConnectionOptions *RdpConnectionOptions `json:"ConnectionOptions,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/cespare/xxhash/v2/xxhash_safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | // This file contains the safe implementations of otherwise unsafe-using code. 4 | 5 | package xxhash 6 | 7 | // Sum64String computes the 64-bit xxHash digest of s. 8 | func Sum64String(s string) uint64 { 9 | return Sum64([]byte(s)) 10 | } 11 | 12 | // WriteString adds more data to d. It always returns len(s), nil. 13 | func (d *Digest) WriteString(s string) (n int, err error) { 14 | return d.Write([]byte(s)) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/containerd/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - revive 10 | - ineffassign 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | issues: 18 | include: 19 | - EXC0002 20 | 21 | run: 22 | timeout: 8m 23 | skip-dirs: 24 | - api 25 | - design 26 | - docs 27 | - docs/man 28 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !freebsd && !windows 2 | // +build !freebsd,!windows 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // Mknod creates a filesystem node (file, device special file or named pipe) named path 11 | // with attributes specified by mode and dev. 12 | func Mknod(path string, mode uint32, dev int) error { 13 | return unix.Mknod(path, mode, dev) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/tonistiigi/fsutil/diskwriter_freebsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd 2 | // +build freebsd 3 | 4 | package fsutil 5 | 6 | import ( 7 | "github.com/tonistiigi/fsutil/types" 8 | "golang.org/x/sys/unix" 9 | ) 10 | 11 | func createSpecialFile(path string, mode uint32, stat *types.Stat) error { 12 | return unix.Mknod(path, mode, mkdev(stat.Devmajor, stat.Devminor)) 13 | } 14 | 15 | func mkdev(major int64, minor int64) uint64 { 16 | return unix.Mkdev(uint32(major), uint32(minor)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/mail/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:14.04 2 | 3 | RUN apt-get update -qy && apt-get install mutt offlineimap vim-nox abook elinks curl tmux cron zsh -y 4 | ADD .muttrc / 5 | ADD .offlineimaprc / 6 | ADD .tmux.conf / 7 | ADD mutt /.mutt 8 | ADD vim /.vim 9 | ADD vimrc /.vimrc 10 | ADD crontab /etc/crontab 11 | RUN chmod 644 /etc/crontab 12 | RUN mkdir /Mail 13 | RUN mkdir /.offlineimap 14 | RUN echo "export TERM=screen-256color" >/.zshenv 15 | 16 | CMD setsid cron; tmux -2 17 | -------------------------------------------------------------------------------- /hack/cross: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | . $(dirname $0)/util 4 | set -e 5 | 6 | : ${PLATFORMS=} 7 | 8 | platformFlag="" 9 | if [ -n "$PLATFORMS" ]; then 10 | platformFlag="--platform=$PLATFORMS" 11 | fi 12 | 13 | if [ -n "$RUNC_PLATFORMS" ]; then 14 | buildxCmd build $cacheFromFlags $cacheToFlags \ 15 | --target "binaries-linux-helper" \ 16 | --platform "$RUNC_PLATFORMS" \ 17 | $currentcontext 18 | fi 19 | 20 | buildxCmd build $platformFlag $cacheFromFlags \ 21 | $currentcontext 22 | -------------------------------------------------------------------------------- /vendor/github.com/hanwen/go-fuse/v2/fuse/splice_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 the Go-FUSE Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package fuse 6 | 7 | import ( 8 | "fmt" 9 | ) 10 | 11 | func (s *Server) setSplice() { 12 | s.canSplice = false 13 | } 14 | 15 | func (ms *Server) trySplice(header []byte, req *request, fdData *readResultFd) error { 16 | return fmt.Errorf("unimplemented") 17 | } 18 | -------------------------------------------------------------------------------- /frontend/dockerfile/parser/testfiles/influxdb/result: -------------------------------------------------------------------------------- 1 | (from "ubuntu:14.04") 2 | (run "apt-get update && apt-get install wget -y") 3 | (run "wget http://s3.amazonaws.com/influxdb/influxdb_latest_amd64.deb") 4 | (run "dpkg -i influxdb_latest_amd64.deb") 5 | (run "rm -r /opt/influxdb/shared") 6 | (volume "/opt/influxdb/shared") 7 | (cmd "/usr/bin/influxdb --pidfile /var/run/influxdb.pid -config /opt/influxdb/shared/config.toml") 8 | (expose "8083") 9 | (expose "8086") 10 | (expose "8090") 11 | (expose "8099") 12 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/delete_group_operation.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Delete group operation settings 13 | type DeleteGroupOperation struct { 14 | GroupId string `json:"GroupId,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_crash_reporting.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type GuestCrashReporting struct { 13 | WindowsCrashSettings *WindowsCrashReporting `json:"WindowsCrashSettings,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/topology.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Topology struct { 13 | Memory *Memory2 `json:"Memory,omitempty"` 14 | 15 | Processor *Processor2 `json:"Processor,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/args_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "strings" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | // EscapeArgs makes a Windows-style escaped command line from a set of arguments 10 | func EscapeArgs(args []string) string { 11 | escapedArgs := make([]string, len(args)) 12 | for i, a := range args { 13 | escapedArgs[i] = windows.EscapeArg(a) 14 | } 15 | return strings.Join(escapedArgs, " ") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/errors.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | // ErrNotSupportedPlatform means the platform is not supported. 9 | ErrNotSupportedPlatform = errors.New("platform and architecture is not supported") 10 | 11 | // ErrNotSupportedOperatingSystem means the operating system is not supported. 12 | ErrNotSupportedOperatingSystem = errors.New("operating system is not supported") 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/process_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "os" 4 | 5 | // IsProcessAlive returns true if process with a given pid is running. 6 | func IsProcessAlive(pid int) bool { 7 | _, err := os.FindProcess(pid) 8 | 9 | return err == nil 10 | } 11 | 12 | // KillProcess force-stops a process. 13 | func KillProcess(pid int) { 14 | p, err := os.FindProcess(pid) 15 | if err == nil { 16 | _ = p.Kill() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || netbsd 2 | // +build freebsd netbsd 3 | 4 | package system // import "github.com/docker/docker/pkg/system" 5 | 6 | import "syscall" 7 | 8 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 9 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 10 | return &StatT{size: s.Size, 11 | mode: uint32(s.Mode), 12 | uid: s.Uid, 13 | gid: s.Gid, 14 | rdev: uint64(s.Rdev), 15 | mtim: s.Mtimespec}, nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/shurcooL/sanitized_anchor_name/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.x 5 | - master 6 | matrix: 7 | allow_failures: 8 | - go: master 9 | fast_finish: true 10 | install: 11 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 12 | script: 13 | - go get -t -v ./... 14 | - diff -u <(echo -n) <(gofmt -d -s .) 15 | - go tool vet . 16 | - go test -v -race ./... 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. 2 | 3 | // +build amd64,gc,!purego 4 | 5 | package field 6 | 7 | // feMul sets out = a * b. It works like feMulGeneric. 8 | //go:noescape 9 | func feMul(out *Element, a *Element, b *Element) 10 | 11 | // feSquare sets out = a * a. It works like feSquareGeneric. 12 | //go:noescape 13 | func feSquare(out *Element, a *Element) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | // +build go1.18 9 | 10 | package idna 11 | 12 | // Transitional processing is disabled by default in Go 1.18. 13 | // https://golang.org/issue/47510 14 | const transitionalLookup = false 15 | -------------------------------------------------------------------------------- /client/client_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | // +build !windows 3 | 4 | package client 5 | 6 | import ( 7 | "context" 8 | "net" 9 | "strings" 10 | 11 | "github.com/pkg/errors" 12 | ) 13 | 14 | func dialer(ctx context.Context, address string) (net.Conn, error) { 15 | addrParts := strings.SplitN(address, "://", 2) 16 | if len(addrParts) != 2 { 17 | return nil, errors.Errorf("invalid address %s", address) 18 | } 19 | var d net.Dialer 20 | return d.DialContext(ctx, addrParts[0], addrParts[1]) 21 | } 22 | -------------------------------------------------------------------------------- /solver/llbsolver/file/user_nolinux.go: -------------------------------------------------------------------------------- 1 | //go:build !linux 2 | // +build !linux 3 | 4 | package file 5 | 6 | import ( 7 | "github.com/moby/buildkit/solver/llbsolver/ops/fileoptypes" 8 | "github.com/moby/buildkit/solver/pb" 9 | "github.com/pkg/errors" 10 | copy "github.com/tonistiigi/fsutil/copy" 11 | ) 12 | 13 | func readUser(chopt *pb.ChownOpt, mu, mg fileoptypes.Mount) (*copy.User, error) { 14 | if chopt == nil { 15 | return nil, nil 16 | } 17 | return nil, errors.New("only implemented in linux") 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_remove_instance_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardRemoveInstanceRequest struct { 13 | Id string `json:"Id,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_container_definition_device.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerDefinitionDevice struct { 13 | DeviceExtension []DeviceExtension `json:"device_extension,omitempty"` 14 | } 15 | --------------------------------------------------------------------------------