├── .github ├── CODEOWNERS ├── FUNDING.yml ├── dependabot.yml └── workflows │ ├── ci-site.yml │ ├── ci.yml │ └── release.yml ├── .gitignore ├── .golangci.yml ├── .goreleaser.yml ├── Dockerfile ├── Dockerfile.site ├── LICENSE ├── Makefile ├── README.md ├── app ├── config │ ├── config.go │ ├── config_test.go │ └── testdata │ │ └── config.yml ├── main.go ├── main_test.go ├── server │ ├── server.go │ ├── server_test.go │ └── status_mock.go └── status │ ├── ext_mock.go │ ├── external │ ├── certificate_provider.go │ ├── certificate_provider_test.go │ ├── docker_provider.go │ ├── docker_provider_test.go │ ├── file_provider.go │ ├── file_provider_test.go │ ├── http_provider.go │ ├── http_provider_test.go │ ├── mongo_provider.go │ ├── mongo_provider_test.go │ ├── nginx_provider.go │ ├── nginx_provider_test.go │ ├── program.go │ ├── program_test.go │ ├── provider_mock.go │ ├── rmq.go │ ├── rmq_test.go │ ├── service.go │ ├── service_test.go │ └── testdata │ │ ├── containers.json │ │ ├── nginx.txt │ │ ├── ping.txt │ │ ├── rmq.json │ │ └── test.sh │ ├── status.go │ ├── status_test.go │ └── testdata │ └── containers.json ├── config-example.yml ├── docker-compose.yml ├── go.mod ├── go.sum ├── requests.http ├── site ├── docs │ ├── favicon.png │ ├── logo.png │ └── stylesheets │ │ └── extra.css └── mkdocs.yml ├── sys-agent.service └── vendor ├── github.com ├── davecgh │ └── go-spew │ │ ├── LICENSE │ │ └── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── format.go │ │ └── spew.go ├── didip │ └── tollbooth │ │ └── v8 │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── errors │ │ └── errors.go │ │ ├── internal │ │ └── time │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── LICENSE │ │ │ ├── PATENTS │ │ │ └── rate │ │ │ └── rate.go │ │ ├── libstring │ │ └── libstring.go │ │ ├── limiter │ │ ├── limiter.go │ │ └── limiter_options.go │ │ └── tollbooth.go ├── fsnotify │ └── fsnotify │ │ ├── .cirrus.yml │ │ ├── .gitignore │ │ ├── .mailmap │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── backend_fen.go │ │ ├── backend_inotify.go │ │ ├── backend_kqueue.go │ │ ├── backend_other.go │ │ ├── backend_windows.go │ │ ├── fsnotify.go │ │ ├── internal │ │ ├── darwin.go │ │ ├── debug_darwin.go │ │ ├── debug_dragonfly.go │ │ ├── debug_freebsd.go │ │ ├── debug_kqueue.go │ │ ├── debug_linux.go │ │ ├── debug_netbsd.go │ │ ├── debug_openbsd.go │ │ ├── debug_solaris.go │ │ ├── debug_windows.go │ │ ├── freebsd.go │ │ ├── internal.go │ │ ├── unix.go │ │ ├── unix2.go │ │ └── windows.go │ │ ├── shared.go │ │ ├── staticcheck.conf │ │ ├── system_bsd.go │ │ └── system_darwin.go ├── go-ole │ └── go-ole │ │ ├── .travis.yml │ │ ├── ChangeLog.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── appveyor.yml │ │ ├── com.go │ │ ├── com_func.go │ │ ├── connect.go │ │ ├── constants.go │ │ ├── error.go │ │ ├── error_func.go │ │ ├── error_windows.go │ │ ├── guid.go │ │ ├── iconnectionpoint.go │ │ ├── iconnectionpoint_func.go │ │ ├── iconnectionpoint_windows.go │ │ ├── iconnectionpointcontainer.go │ │ ├── iconnectionpointcontainer_func.go │ │ ├── iconnectionpointcontainer_windows.go │ │ ├── idispatch.go │ │ ├── idispatch_func.go │ │ ├── idispatch_windows.go │ │ ├── ienumvariant.go │ │ ├── ienumvariant_func.go │ │ ├── ienumvariant_windows.go │ │ ├── iinspectable.go │ │ ├── iinspectable_func.go │ │ ├── iinspectable_windows.go │ │ ├── iprovideclassinfo.go │ │ ├── iprovideclassinfo_func.go │ │ ├── iprovideclassinfo_windows.go │ │ ├── itypeinfo.go │ │ ├── itypeinfo_func.go │ │ ├── itypeinfo_windows.go │ │ ├── iunknown.go │ │ ├── iunknown_func.go │ │ ├── iunknown_windows.go │ │ ├── ole.go │ │ ├── oleutil │ │ ├── connection.go │ │ ├── connection_func.go │ │ ├── connection_windows.go │ │ ├── go-get.go │ │ └── oleutil.go │ │ ├── safearray.go │ │ ├── safearray_func.go │ │ ├── safearray_windows.go │ │ ├── safearrayconversion.go │ │ ├── safearrayslices.go │ │ ├── utility.go │ │ ├── variables.go │ │ ├── variant.go │ │ ├── variant_386.go │ │ ├── variant_amd64.go │ │ ├── variant_arm.go │ │ ├── variant_arm64.go │ │ ├── variant_date_386.go │ │ ├── variant_date_amd64.go │ │ ├── variant_date_arm.go │ │ ├── variant_date_arm64.go │ │ ├── variant_ppc64le.go │ │ ├── variant_s390x.go │ │ ├── vt_string.go │ │ ├── winrt.go │ │ └── winrt_doc.go ├── go-pkgz │ ├── expirable-cache │ │ └── v3 │ │ │ ├── LICENSE │ │ │ ├── cache.go │ │ │ └── options.go │ ├── fileutils │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── enum │ │ │ ├── event_type_enum.go │ │ │ └── hash_alg_enum.go │ │ ├── file_watcher.go │ │ └── fileutils.go │ ├── lgr │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── adaptor.go │ │ ├── interface.go │ │ ├── logger.go │ │ ├── mapper.go │ │ ├── options.go │ │ └── slog.go │ ├── mongo │ │ └── v2 │ │ │ ├── .gitignore │ │ │ ├── .golangci.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── server.go │ │ │ ├── testing.go │ │ │ └── writer.go │ ├── rest │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── basic_auth.go │ │ ├── benchmarks.go │ │ ├── blackwords.go │ │ ├── cache_control.go │ │ ├── depricattion.go │ │ ├── file_server.go │ │ ├── gzip.go │ │ ├── httperrors.go │ │ ├── logger │ │ │ ├── logger.go │ │ │ └── options.go │ │ ├── metrics.go │ │ ├── middleware.go │ │ ├── nocache.go │ │ ├── onlyfrom.go │ │ ├── profiler.go │ │ ├── realip │ │ │ └── real.go │ │ ├── rest.go │ │ ├── rewrite.go │ │ ├── sizelimit.go │ │ ├── throttle.go │ │ └── trace.go │ ├── routegroup │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── group.go │ └── syncs │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── errsizedgroup.go │ │ ├── group_options.go │ │ ├── semaphore.go │ │ └── sizedgroup.go ├── golang │ └── snappy │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README │ │ ├── decode.go │ │ ├── decode_amd64.s │ │ ├── decode_arm64.s │ │ ├── decode_asm.go │ │ ├── decode_other.go │ │ ├── encode.go │ │ ├── encode_amd64.s │ │ ├── encode_arm64.s │ │ ├── encode_asm.go │ │ ├── encode_other.go │ │ └── snappy.go ├── klauspost │ └── compress │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── .goreleaser.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── SECURITY.md │ │ ├── compressible.go │ │ ├── fse │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── bytereader.go │ │ ├── compress.go │ │ ├── decompress.go │ │ └── fse.go │ │ ├── gen.sh │ │ ├── huff0 │ │ ├── .gitignore │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── compress.go │ │ ├── decompress.go │ │ ├── decompress_amd64.go │ │ ├── decompress_amd64.s │ │ ├── decompress_generic.go │ │ └── huff0.go │ │ ├── internal │ │ ├── cpuinfo │ │ │ ├── cpuinfo.go │ │ │ ├── cpuinfo_amd64.go │ │ │ └── cpuinfo_amd64.s │ │ ├── le │ │ │ ├── le.go │ │ │ ├── unsafe_disabled.go │ │ │ └── unsafe_enabled.go │ │ └── snapref │ │ │ ├── LICENSE │ │ │ ├── decode.go │ │ │ ├── decode_other.go │ │ │ ├── encode.go │ │ │ ├── encode_other.go │ │ │ └── snappy.go │ │ ├── s2sx.mod │ │ ├── s2sx.sum │ │ └── zstd │ │ ├── README.md │ │ ├── bitreader.go │ │ ├── bitwriter.go │ │ ├── blockdec.go │ │ ├── blockenc.go │ │ ├── blocktype_string.go │ │ ├── bytebuf.go │ │ ├── bytereader.go │ │ ├── decodeheader.go │ │ ├── decoder.go │ │ ├── decoder_options.go │ │ ├── dict.go │ │ ├── enc_base.go │ │ ├── enc_best.go │ │ ├── enc_better.go │ │ ├── enc_dfast.go │ │ ├── enc_fast.go │ │ ├── encoder.go │ │ ├── encoder_options.go │ │ ├── framedec.go │ │ ├── frameenc.go │ │ ├── fse_decoder.go │ │ ├── fse_decoder_amd64.go │ │ ├── fse_decoder_amd64.s │ │ ├── fse_decoder_generic.go │ │ ├── fse_encoder.go │ │ ├── fse_predefined.go │ │ ├── hash.go │ │ ├── history.go │ │ ├── internal │ │ └── xxhash │ │ │ ├── LICENSE.txt │ │ │ ├── README.md │ │ │ ├── xxhash.go │ │ │ ├── xxhash_amd64.s │ │ │ ├── xxhash_arm64.s │ │ │ ├── xxhash_asm.go │ │ │ ├── xxhash_other.go │ │ │ └── xxhash_safe.go │ │ ├── matchlen_amd64.go │ │ ├── matchlen_amd64.s │ │ ├── matchlen_generic.go │ │ ├── seqdec.go │ │ ├── seqdec_amd64.go │ │ ├── seqdec_amd64.s │ │ ├── seqdec_generic.go │ │ ├── seqenc.go │ │ ├── snappy.go │ │ ├── zip.go │ │ └── zstd.go ├── lufia │ └── plan9stats │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── cpu.go │ │ ├── disk.go │ │ ├── doc.go │ │ ├── host.go │ │ ├── int.go │ │ ├── opts.go │ │ └── stats.go ├── montanaflynn │ └── stats │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── DOCUMENTATION.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── correlation.go │ │ ├── cumulative_sum.go │ │ ├── data.go │ │ ├── describe.go │ │ ├── deviation.go │ │ ├── distances.go │ │ ├── doc.go │ │ ├── entropy.go │ │ ├── errors.go │ │ ├── geometric_distribution.go │ │ ├── legacy.go │ │ ├── load.go │ │ ├── max.go │ │ ├── mean.go │ │ ├── median.go │ │ ├── min.go │ │ ├── mode.go │ │ ├── norm.go │ │ ├── outlier.go │ │ ├── percentile.go │ │ ├── quartile.go │ │ ├── ranksum.go │ │ ├── regression.go │ │ ├── round.go │ │ ├── sample.go │ │ ├── sigmoid.go │ │ ├── softmax.go │ │ ├── sum.go │ │ ├── util.go │ │ └── variance.go ├── pmezard │ └── go-difflib │ │ ├── LICENSE │ │ └── difflib │ │ └── difflib.go ├── power-devops │ └── perfstat │ │ ├── LICENSE │ │ ├── c_helpers.c │ │ ├── c_helpers.h │ │ ├── config.go │ │ ├── cpustat.go │ │ ├── diskstat.go │ │ ├── doc.go │ │ ├── fsstat.go │ │ ├── helpers.go │ │ ├── lparstat.go │ │ ├── lvmstat.go │ │ ├── memstat.go │ │ ├── netstat.go │ │ ├── procstat.go │ │ ├── sysconf.go │ │ ├── systemcfg.go │ │ ├── types_cpu.go │ │ ├── types_disk.go │ │ ├── types_fs.go │ │ ├── types_lpar.go │ │ ├── types_lvm.go │ │ ├── types_memory.go │ │ ├── types_network.go │ │ ├── types_process.go │ │ └── uptime.go ├── robfig │ └── cron │ │ └── v3 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── chain.go │ │ ├── constantdelay.go │ │ ├── cron.go │ │ ├── doc.go │ │ ├── logger.go │ │ ├── option.go │ │ ├── parser.go │ │ └── spec.go ├── shirou │ └── gopsutil │ │ └── v3 │ │ ├── LICENSE │ │ ├── common │ │ └── env.go │ │ ├── cpu │ │ ├── cpu.go │ │ ├── cpu_aix.go │ │ ├── cpu_aix_cgo.go │ │ ├── cpu_aix_nocgo.go │ │ ├── cpu_darwin.go │ │ ├── cpu_darwin_cgo.go │ │ ├── cpu_darwin_nocgo.go │ │ ├── cpu_dragonfly.go │ │ ├── cpu_dragonfly_amd64.go │ │ ├── cpu_fallback.go │ │ ├── cpu_freebsd.go │ │ ├── cpu_freebsd_386.go │ │ ├── cpu_freebsd_amd64.go │ │ ├── cpu_freebsd_arm.go │ │ ├── cpu_freebsd_arm64.go │ │ ├── cpu_linux.go │ │ ├── cpu_netbsd.go │ │ ├── cpu_netbsd_amd64.go │ │ ├── cpu_netbsd_arm64.go │ │ ├── cpu_openbsd.go │ │ ├── cpu_openbsd_386.go │ │ ├── cpu_openbsd_amd64.go │ │ ├── cpu_openbsd_arm.go │ │ ├── cpu_openbsd_arm64.go │ │ ├── cpu_openbsd_riscv64.go │ │ ├── cpu_plan9.go │ │ ├── cpu_solaris.go │ │ └── cpu_windows.go │ │ ├── disk │ │ ├── disk.go │ │ ├── disk_aix.go │ │ ├── disk_aix_cgo.go │ │ ├── disk_aix_nocgo.go │ │ ├── disk_darwin.go │ │ ├── disk_darwin_cgo.go │ │ ├── disk_darwin_nocgo.go │ │ ├── disk_fallback.go │ │ ├── disk_freebsd.go │ │ ├── disk_freebsd_386.go │ │ ├── disk_freebsd_amd64.go │ │ ├── disk_freebsd_arm.go │ │ ├── disk_freebsd_arm64.go │ │ ├── disk_linux.go │ │ ├── disk_netbsd.go │ │ ├── disk_netbsd_amd64.go │ │ ├── disk_netbsd_arm64.go │ │ ├── disk_openbsd.go │ │ ├── disk_openbsd_386.go │ │ ├── disk_openbsd_amd64.go │ │ ├── disk_openbsd_arm.go │ │ ├── disk_openbsd_arm64.go │ │ ├── disk_openbsd_riscv64.go │ │ ├── disk_solaris.go │ │ ├── disk_unix.go │ │ ├── disk_windows.go │ │ ├── iostat_darwin.c │ │ └── iostat_darwin.h │ │ ├── host │ │ ├── host.go │ │ ├── host_aix.go │ │ ├── host_aix_ppc64.go │ │ ├── host_bsd.go │ │ ├── host_darwin.go │ │ ├── host_darwin_amd64.go │ │ ├── host_darwin_arm64.go │ │ ├── host_darwin_cgo.go │ │ ├── host_darwin_nocgo.go │ │ ├── host_fallback.go │ │ ├── host_freebsd.go │ │ ├── host_freebsd_386.go │ │ ├── host_freebsd_amd64.go │ │ ├── host_freebsd_arm.go │ │ ├── host_freebsd_arm64.go │ │ ├── host_linux.go │ │ ├── host_linux_386.go │ │ ├── host_linux_amd64.go │ │ ├── host_linux_arm.go │ │ ├── host_linux_arm64.go │ │ ├── host_linux_loong64.go │ │ ├── host_linux_mips.go │ │ ├── host_linux_mips64.go │ │ ├── host_linux_mips64le.go │ │ ├── host_linux_mipsle.go │ │ ├── host_linux_ppc64.go │ │ ├── host_linux_ppc64le.go │ │ ├── host_linux_riscv64.go │ │ ├── host_linux_s390x.go │ │ ├── host_netbsd.go │ │ ├── host_openbsd.go │ │ ├── host_openbsd_386.go │ │ ├── host_openbsd_amd64.go │ │ ├── host_openbsd_arm.go │ │ ├── host_openbsd_arm64.go │ │ ├── host_openbsd_riscv64.go │ │ ├── host_posix.go │ │ ├── host_solaris.go │ │ ├── host_windows.go │ │ ├── smc_darwin.c │ │ └── smc_darwin.h │ │ ├── internal │ │ └── common │ │ │ ├── binary.go │ │ │ ├── common.go │ │ │ ├── common_darwin.go │ │ │ ├── common_freebsd.go │ │ │ ├── common_linux.go │ │ │ ├── common_netbsd.go │ │ │ ├── common_openbsd.go │ │ │ ├── common_unix.go │ │ │ ├── common_windows.go │ │ │ ├── endian.go │ │ │ ├── sleep.go │ │ │ └── warnings.go │ │ ├── load │ │ ├── load.go │ │ ├── load_aix.go │ │ ├── load_aix_cgo.go │ │ ├── load_aix_nocgo.go │ │ ├── load_bsd.go │ │ ├── load_darwin.go │ │ ├── load_fallback.go │ │ ├── load_freebsd.go │ │ ├── load_linux.go │ │ ├── load_openbsd.go │ │ ├── load_solaris.go │ │ └── load_windows.go │ │ ├── mem │ │ ├── mem.go │ │ ├── mem_aix.go │ │ ├── mem_aix_cgo.go │ │ ├── mem_aix_nocgo.go │ │ ├── mem_bsd.go │ │ ├── mem_darwin.go │ │ ├── mem_darwin_cgo.go │ │ ├── mem_darwin_nocgo.go │ │ ├── mem_fallback.go │ │ ├── mem_freebsd.go │ │ ├── mem_linux.go │ │ ├── mem_netbsd.go │ │ ├── mem_openbsd.go │ │ ├── mem_openbsd_386.go │ │ ├── mem_openbsd_amd64.go │ │ ├── mem_openbsd_arm.go │ │ ├── mem_openbsd_arm64.go │ │ ├── mem_openbsd_riscv64.go │ │ ├── mem_plan9.go │ │ ├── mem_solaris.go │ │ └── mem_windows.go │ │ ├── net │ │ ├── net.go │ │ ├── net_aix.go │ │ ├── net_aix_cgo.go │ │ ├── net_aix_nocgo.go │ │ ├── net_darwin.go │ │ ├── net_fallback.go │ │ ├── net_freebsd.go │ │ ├── net_linux.go │ │ ├── net_linux_111.go │ │ ├── net_linux_116.go │ │ ├── net_openbsd.go │ │ ├── net_solaris.go │ │ ├── net_unix.go │ │ └── net_windows.go │ │ └── process │ │ ├── process.go │ │ ├── process_bsd.go │ │ ├── process_darwin.go │ │ ├── process_darwin_amd64.go │ │ ├── process_darwin_arm64.go │ │ ├── process_darwin_cgo.go │ │ ├── process_darwin_nocgo.go │ │ ├── process_fallback.go │ │ ├── process_freebsd.go │ │ ├── process_freebsd_386.go │ │ ├── process_freebsd_amd64.go │ │ ├── process_freebsd_arm.go │ │ ├── process_freebsd_arm64.go │ │ ├── process_linux.go │ │ ├── process_openbsd.go │ │ ├── process_openbsd_386.go │ │ ├── process_openbsd_amd64.go │ │ ├── process_openbsd_arm.go │ │ ├── process_openbsd_arm64.go │ │ ├── process_openbsd_riscv64.go │ │ ├── process_plan9.go │ │ ├── process_posix.go │ │ ├── process_solaris.go │ │ ├── process_windows.go │ │ ├── process_windows_32bit.go │ │ └── process_windows_64bit.go ├── shoenig │ └── go-m1cpu │ │ ├── .golangci.yaml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── cpu.go │ │ └── incompatible.go ├── stretchr │ └── testify │ │ ├── LICENSE │ │ ├── assert │ │ ├── assertion_compare.go │ │ ├── assertion_format.go │ │ ├── assertion_format.go.tmpl │ │ ├── assertion_forward.go │ │ ├── assertion_forward.go.tmpl │ │ ├── assertion_order.go │ │ ├── assertions.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── forward_assertions.go │ │ ├── http_assertions.go │ │ └── yaml │ │ │ ├── yaml_custom.go │ │ │ ├── yaml_default.go │ │ │ └── yaml_fail.go │ │ └── require │ │ ├── doc.go │ │ ├── forward_requirements.go │ │ ├── require.go │ │ ├── require.go.tmpl │ │ ├── require_forward.go │ │ ├── require_forward.go.tmpl │ │ └── requirements.go ├── tklauser │ ├── go-sysconf │ │ ├── .cirrus.yml │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── sysconf.go │ │ ├── sysconf_bsd.go │ │ ├── sysconf_darwin.go │ │ ├── sysconf_dragonfly.go │ │ ├── sysconf_freebsd.go │ │ ├── sysconf_generic.go │ │ ├── sysconf_linux.go │ │ ├── sysconf_netbsd.go │ │ ├── sysconf_openbsd.go │ │ ├── sysconf_posix.go │ │ ├── sysconf_solaris.go │ │ ├── sysconf_unsupported.go │ │ ├── zsysconf_defs_darwin.go │ │ ├── zsysconf_defs_dragonfly.go │ │ ├── zsysconf_defs_freebsd.go │ │ ├── zsysconf_defs_linux.go │ │ ├── zsysconf_defs_netbsd.go │ │ ├── zsysconf_defs_openbsd.go │ │ ├── zsysconf_defs_solaris.go │ │ ├── zsysconf_values_freebsd_386.go │ │ ├── zsysconf_values_freebsd_amd64.go │ │ ├── zsysconf_values_freebsd_arm.go │ │ ├── zsysconf_values_freebsd_arm64.go │ │ ├── zsysconf_values_freebsd_riscv64.go │ │ ├── zsysconf_values_linux_386.go │ │ ├── zsysconf_values_linux_amd64.go │ │ ├── zsysconf_values_linux_arm.go │ │ ├── zsysconf_values_linux_arm64.go │ │ ├── zsysconf_values_linux_loong64.go │ │ ├── zsysconf_values_linux_mips.go │ │ ├── zsysconf_values_linux_mips64.go │ │ ├── zsysconf_values_linux_mips64le.go │ │ ├── zsysconf_values_linux_mipsle.go │ │ ├── zsysconf_values_linux_ppc64.go │ │ ├── zsysconf_values_linux_ppc64le.go │ │ ├── zsysconf_values_linux_riscv64.go │ │ ├── zsysconf_values_linux_s390x.go │ │ ├── zsysconf_values_netbsd_386.go │ │ ├── zsysconf_values_netbsd_amd64.go │ │ ├── zsysconf_values_netbsd_arm.go │ │ └── zsysconf_values_netbsd_arm64.go │ └── numcpus │ │ ├── .cirrus.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── numcpus.go │ │ ├── numcpus_bsd.go │ │ ├── numcpus_linux.go │ │ ├── numcpus_list_unsupported.go │ │ ├── numcpus_solaris.go │ │ ├── numcpus_unsupported.go │ │ └── numcpus_windows.go ├── umputun │ └── go-flags │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── arg.go │ │ ├── check_crosscompile.sh │ │ ├── closest.go │ │ ├── command.go │ │ ├── completion.go │ │ ├── convert.go │ │ ├── error.go │ │ ├── flags.go │ │ ├── group.go │ │ ├── help.go │ │ ├── ini.go │ │ ├── man.go │ │ ├── multitag.go │ │ ├── option.go │ │ ├── optstyle_other.go │ │ ├── optstyle_windows.go │ │ ├── parser.go │ │ ├── termsize.go │ │ ├── termsize_nosysioctl.go │ │ ├── termsize_windows.go │ │ ├── tiocgwinsz_bsdish.go │ │ ├── tiocgwinsz_linux.go │ │ └── tiocgwinsz_other.go ├── xdg-go │ ├── pbkdf2 │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ └── pbkdf2.go │ ├── scram │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── client.go │ │ ├── client_conv.go │ │ ├── common.go │ │ ├── doc.go │ │ ├── parse.go │ │ ├── scram.go │ │ ├── server.go │ │ └── server_conv.go │ └── stringprep │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bidi.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── map.go │ │ ├── profile.go │ │ ├── saslprep.go │ │ ├── set.go │ │ └── tables.go ├── youmark │ └── pkcs8 │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README │ │ ├── README.md │ │ ├── cipher.go │ │ ├── cipher_3des.go │ │ ├── cipher_aes.go │ │ ├── kdf_pbkdf2.go │ │ ├── kdf_scrypt.go │ │ └── pkcs8.go └── yusufpapurcu │ └── wmi │ ├── LICENSE │ ├── README.md │ ├── swbemservices.go │ └── wmi.go ├── go.mongodb.org └── mongo-driver │ ├── LICENSE │ ├── bson │ ├── bson.go │ ├── bsoncodec │ │ ├── array_codec.go │ │ ├── bsoncodec.go │ │ ├── byte_slice_codec.go │ │ ├── codec_cache.go │ │ ├── cond_addr_codec.go │ │ ├── default_value_decoders.go │ │ ├── default_value_encoders.go │ │ ├── doc.go │ │ ├── empty_interface_codec.go │ │ ├── map_codec.go │ │ ├── mode.go │ │ ├── pointer_codec.go │ │ ├── proxy.go │ │ ├── registry.go │ │ ├── slice_codec.go │ │ ├── string_codec.go │ │ ├── struct_codec.go │ │ ├── struct_tag_parser.go │ │ ├── time_codec.go │ │ ├── types.go │ │ └── uint_codec.go │ ├── bsonoptions │ │ ├── byte_slice_codec_options.go │ │ ├── doc.go │ │ ├── empty_interface_codec_options.go │ │ ├── map_codec_options.go │ │ ├── slice_codec_options.go │ │ ├── string_codec_options.go │ │ ├── struct_codec_options.go │ │ ├── time_codec_options.go │ │ └── uint_codec_options.go │ ├── bsonrw │ │ ├── copier.go │ │ ├── doc.go │ │ ├── extjson_parser.go │ │ ├── extjson_reader.go │ │ ├── extjson_tables.go │ │ ├── extjson_wrappers.go │ │ ├── extjson_writer.go │ │ ├── json_scanner.go │ │ ├── mode.go │ │ ├── reader.go │ │ ├── value_reader.go │ │ ├── value_writer.go │ │ └── writer.go │ ├── bsontype │ │ └── bsontype.go │ ├── decoder.go │ ├── doc.go │ ├── encoder.go │ ├── marshal.go │ ├── primitive │ │ ├── decimal.go │ │ ├── objectid.go │ │ └── primitive.go │ ├── primitive_codecs.go │ ├── raw.go │ ├── raw_element.go │ ├── raw_value.go │ ├── registry.go │ ├── types.go │ └── unmarshal.go │ ├── event │ ├── doc.go │ └── monitoring.go │ ├── internal │ ├── aws │ │ ├── awserr │ │ │ ├── error.go │ │ │ └── types.go │ │ ├── credentials │ │ │ ├── chain_provider.go │ │ │ └── credentials.go │ │ ├── signer │ │ │ └── v4 │ │ │ │ ├── header_rules.go │ │ │ │ ├── request.go │ │ │ │ ├── uri_path.go │ │ │ │ └── v4.go │ │ └── types.go │ ├── bsonutil │ │ └── bsonutil.go │ ├── codecutil │ │ └── encoding.go │ ├── credproviders │ │ ├── assume_role_provider.go │ │ ├── ec2_provider.go │ │ ├── ecs_provider.go │ │ ├── env_provider.go │ │ ├── imds_provider.go │ │ └── static_provider.go │ ├── csfle │ │ └── csfle.go │ ├── csot │ │ └── csot.go │ ├── driverutil │ │ ├── hello.go │ │ └── operation.go │ ├── handshake │ │ └── handshake.go │ ├── httputil │ │ └── httputil.go │ ├── logger │ │ ├── component.go │ │ ├── context.go │ │ ├── io_sink.go │ │ ├── level.go │ │ └── logger.go │ ├── ptrutil │ │ └── int64.go │ ├── rand │ │ ├── bits.go │ │ ├── exp.go │ │ ├── normal.go │ │ ├── rand.go │ │ └── rng.go │ ├── randutil │ │ └── randutil.go │ └── uuid │ │ └── uuid.go │ ├── mongo │ ├── address │ │ └── addr.go │ ├── background_context.go │ ├── batch_cursor.go │ ├── bulk_write.go │ ├── bulk_write_models.go │ ├── change_stream.go │ ├── change_stream_deployment.go │ ├── client.go │ ├── client_encryption.go │ ├── collection.go │ ├── crypt_retrievers.go │ ├── cursor.go │ ├── database.go │ ├── description │ │ ├── description.go │ │ ├── server.go │ │ ├── server_kind.go │ │ ├── server_selector.go │ │ ├── topology.go │ │ ├── topology_kind.go │ │ ├── topology_version.go │ │ └── version_range.go │ ├── doc.go │ ├── errors.go │ ├── index_options_builder.go │ ├── index_view.go │ ├── mongo.go │ ├── mongocryptd.go │ ├── options │ │ ├── aggregateoptions.go │ │ ├── autoencryptionoptions.go │ │ ├── bulkwriteoptions.go │ │ ├── changestreamoptions.go │ │ ├── clientencryptionoptions.go │ │ ├── clientoptions.go │ │ ├── collectionoptions.go │ │ ├── countoptions.go │ │ ├── createcollectionoptions.go │ │ ├── datakeyoptions.go │ │ ├── dboptions.go │ │ ├── deleteoptions.go │ │ ├── distinctoptions.go │ │ ├── doc.go │ │ ├── encryptoptions.go │ │ ├── estimatedcountoptions.go │ │ ├── findoptions.go │ │ ├── gridfsoptions.go │ │ ├── indexoptions.go │ │ ├── insertoptions.go │ │ ├── listcollectionsoptions.go │ │ ├── listdatabasesoptions.go │ │ ├── loggeroptions.go │ │ ├── mongooptions.go │ │ ├── replaceoptions.go │ │ ├── rewrapdatakeyoptions.go │ │ ├── runcmdoptions.go │ │ ├── searchindexoptions.go │ │ ├── serverapioptions.go │ │ ├── sessionoptions.go │ │ ├── transactionoptions.go │ │ └── updateoptions.go │ ├── readconcern │ │ └── readconcern.go │ ├── readpref │ │ ├── mode.go │ │ ├── options.go │ │ └── readpref.go │ ├── results.go │ ├── search_index_view.go │ ├── session.go │ ├── single_result.go │ ├── util.go │ └── writeconcern │ │ └── writeconcern.go │ ├── tag │ └── tag.go │ ├── version │ └── version.go │ └── x │ ├── bsonx │ └── bsoncore │ │ ├── array.go │ │ ├── bson_arraybuilder.go │ │ ├── bson_documentbuilder.go │ │ ├── bsoncore.go │ │ ├── doc.go │ │ ├── document.go │ │ ├── document_sequence.go │ │ ├── element.go │ │ ├── tables.go │ │ └── value.go │ └── mongo │ └── driver │ ├── auth │ ├── auth.go │ ├── aws_conv.go │ ├── conversation.go │ ├── cred.go │ ├── creds │ │ ├── awscreds.go │ │ ├── azurecreds.go │ │ ├── doc.go │ │ └── gcpcreds.go │ ├── default.go │ ├── doc.go │ ├── gssapi.go │ ├── gssapi_not_enabled.go │ ├── gssapi_not_supported.go │ ├── internal │ │ └── gssapi │ │ │ ├── gss.go │ │ │ ├── gss_wrapper.c │ │ │ ├── gss_wrapper.h │ │ │ ├── sspi.go │ │ │ ├── sspi_wrapper.c │ │ │ └── sspi_wrapper.h │ ├── mongodbaws.go │ ├── mongodbcr.go │ ├── oidc.go │ ├── plain.go │ ├── sasl.go │ ├── scram.go │ ├── util.go │ └── x509.go │ ├── batch_cursor.go │ ├── batches.go │ ├── compression.go │ ├── connstring │ └── connstring.go │ ├── crypt.go │ ├── dns │ └── dns.go │ ├── driver.go │ ├── errors.go │ ├── legacy.go │ ├── mongocrypt │ ├── binary.go │ ├── errors.go │ ├── errors_not_enabled.go │ ├── mongocrypt.go │ ├── mongocrypt_context.go │ ├── mongocrypt_context_not_enabled.go │ ├── mongocrypt_kms_context.go │ ├── mongocrypt_kms_context_not_enabled.go │ ├── mongocrypt_not_enabled.go │ ├── options │ │ ├── doc.go │ │ ├── mongocrypt_context_options.go │ │ └── mongocrypt_options.go │ └── state.go │ ├── ocsp │ ├── cache.go │ ├── config.go │ ├── ocsp.go │ └── options.go │ ├── operation.go │ ├── operation │ ├── abort_transaction.go │ ├── aggregate.go │ ├── command.go │ ├── commit_transaction.go │ ├── count.go │ ├── create.go │ ├── create_indexes.go │ ├── create_search_indexes.go │ ├── delete.go │ ├── distinct.go │ ├── doc.go │ ├── drop_collection.go │ ├── drop_database.go │ ├── drop_indexes.go │ ├── drop_search_index.go │ ├── end_sessions.go │ ├── errors.go │ ├── find.go │ ├── find_and_modify.go │ ├── hello.go │ ├── insert.go │ ├── listDatabases.go │ ├── list_collections.go │ ├── list_indexes.go │ ├── update.go │ └── update_search_index.go │ ├── operation_exhaust.go │ ├── serverapioptions.go │ ├── session │ ├── client_session.go │ ├── cluster_clock.go │ ├── doc.go │ ├── options.go │ ├── server_session.go │ └── session_pool.go │ ├── topology │ ├── DESIGN.md │ ├── cancellation_listener.go │ ├── connection.go │ ├── connection_legacy.go │ ├── connection_options.go │ ├── diff.go │ ├── errors.go │ ├── fsm.go │ ├── pool.go │ ├── pool_generation_counter.go │ ├── rtt_monitor.go │ ├── server.go │ ├── server_options.go │ ├── tls_connection_source_1_16.go │ ├── tls_connection_source_1_17.go │ ├── topology.go │ └── topology_options.go │ └── wiremessage │ └── wiremessage.go ├── golang.org └── x │ ├── crypto │ ├── LICENSE │ ├── PATENTS │ ├── argon2 │ │ ├── argon2.go │ │ ├── blake2b.go │ │ ├── blamka_amd64.go │ │ ├── blamka_amd64.s │ │ ├── blamka_generic.go │ │ └── blamka_ref.go │ ├── bcrypt │ │ ├── base64.go │ │ └── bcrypt.go │ ├── blake2b │ │ ├── blake2b.go │ │ ├── blake2bAVX2_amd64.go │ │ ├── blake2bAVX2_amd64.s │ │ ├── blake2b_amd64.s │ │ ├── blake2b_generic.go │ │ ├── blake2b_ref.go │ │ ├── blake2x.go │ │ └── register.go │ ├── blowfish │ │ ├── block.go │ │ ├── cipher.go │ │ └── const.go │ ├── ocsp │ │ └── ocsp.go │ ├── pbkdf2 │ │ └── pbkdf2.go │ └── scrypt │ │ └── scrypt.go │ ├── sync │ ├── LICENSE │ ├── PATENTS │ ├── errgroup │ │ └── errgroup.go │ └── singleflight │ │ └── singleflight.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── cpu │ │ ├── asm_aix_ppc64.s │ │ ├── asm_darwin_x86_gc.s │ │ ├── byteorder.go │ │ ├── cpu.go │ │ ├── cpu_aix.go │ │ ├── cpu_arm.go │ │ ├── cpu_arm64.go │ │ ├── cpu_arm64.s │ │ ├── cpu_darwin_x86.go │ │ ├── cpu_gc_arm64.go │ │ ├── cpu_gc_s390x.go │ │ ├── cpu_gc_x86.go │ │ ├── cpu_gc_x86.s │ │ ├── cpu_gccgo_arm64.go │ │ ├── cpu_gccgo_s390x.go │ │ ├── cpu_gccgo_x86.c │ │ ├── cpu_gccgo_x86.go │ │ ├── cpu_linux.go │ │ ├── cpu_linux_arm.go │ │ ├── cpu_linux_arm64.go │ │ ├── cpu_linux_loong64.go │ │ ├── cpu_linux_mips64x.go │ │ ├── cpu_linux_noinit.go │ │ ├── cpu_linux_ppc64x.go │ │ ├── cpu_linux_riscv64.go │ │ ├── cpu_linux_s390x.go │ │ ├── cpu_loong64.go │ │ ├── cpu_loong64.s │ │ ├── cpu_mips64x.go │ │ ├── cpu_mipsx.go │ │ ├── cpu_netbsd_arm64.go │ │ ├── cpu_openbsd_arm64.go │ │ ├── cpu_openbsd_arm64.s │ │ ├── cpu_other_arm.go │ │ ├── cpu_other_arm64.go │ │ ├── cpu_other_mips64x.go │ │ ├── cpu_other_ppc64x.go │ │ ├── cpu_other_riscv64.go │ │ ├── cpu_other_x86.go │ │ ├── cpu_ppc64x.go │ │ ├── cpu_riscv64.go │ │ ├── cpu_s390x.go │ │ ├── cpu_s390x.s │ │ ├── cpu_wasm.go │ │ ├── cpu_x86.go │ │ ├── cpu_zos.go │ │ ├── cpu_zos_s390x.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── hwcap_linux.go │ │ ├── parse.go │ │ ├── proc_cpuinfo_linux.go │ │ ├── runtime_auxv.go │ │ ├── runtime_auxv_go121.go │ │ ├── syscall_aix_gccgo.go │ │ ├── syscall_aix_ppc64_gc.go │ │ └── syscall_darwin_x86_gc.go │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── auxv.go │ │ ├── auxv_unsupported.go │ │ ├── bluetooth_linux.go │ │ ├── bpxsvc_zos.go │ │ ├── bpxsvc_zos.s │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── mmap_nomremap.go │ │ ├── mremap.go │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── sockcmsg_zos.go │ │ ├── symaddr_zos_s390x.s │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── vgetrandom_linux.go │ │ ├── vgetrandom_unsupported.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsymaddr_zos_s390x.s │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── registry │ │ ├── key.go │ │ ├── mksyscall.go │ │ ├── syscall.go │ │ ├── value.go │ │ └── zsyscall_windows.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ └── text │ ├── LICENSE │ ├── PATENTS │ ├── transform │ └── transform.go │ └── unicode │ └── norm │ ├── composition.go │ ├── forminfo.go │ ├── input.go │ ├── iter.go │ ├── normalize.go │ ├── readwriter.go │ ├── tables10.0.0.go │ ├── tables11.0.0.go │ ├── tables12.0.0.go │ ├── tables13.0.0.go │ ├── tables15.0.0.go │ ├── tables9.0.0.go │ ├── transform.go │ └── trie.go ├── gopkg.in └── yaml.v3 │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # These owners will be the default owners for everything in the repo. 2 | # Unless a later match takes precedence, @umputun will be requested for 3 | # review when someone opens a pull request. 4 | 5 | * @umputun 6 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [umputun] 4 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "gomod" 9 | directory: "/" 10 | schedule: 11 | interval: "weekly" 12 | open-pull-requests-limit: 0 13 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: release 2 | 3 | on: 4 | push: 5 | tags: 6 | - 'v*' 7 | 8 | jobs: 9 | goreleaser: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: check out code 13 | uses: actions/checkout@v4 14 | 15 | - name: set up go 16 | uses: actions/setup-go@v5 17 | with: 18 | go-version: "1.23" 19 | 20 | - name: run goreleaser 21 | uses: goreleaser/goreleaser-action@v5 22 | with: 23 | version: ~> 1.25 24 | args: release --clean 25 | env: 26 | GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} 27 | 28 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | *.exe~ 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | *.test 8 | *.out 9 | 10 | private-key.asc 11 | dist/ 12 | .bin/ 13 | *.gpg 14 | site/public/ -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM umputun/baseimage:buildgo-latest as build 2 | 3 | ARG GIT_BRANCH 4 | ARG GITHUB_SHA 5 | ARG CI 6 | 7 | ADD . /build 8 | WORKDIR /build 9 | 10 | RUN \ 11 | if [ -z "$CI" ] ; then \ 12 | echo "runs outside of CI" && version=$(git rev-parse --abbrev-ref HEAD)-$(git log -1 --format=%h)-$(date +%Y%m%dT%H:%M:%S); \ 13 | else version=${GIT_BRANCH}-${GITHUB_SHA:0:7}-$(date +%Y%m%dT%H:%M:%S); fi && \ 14 | echo "version=$version" && \ 15 | cd app && go build -o /build/sys-agent -ldflags "-X main.revision=${version} -s -w" 16 | 17 | 18 | FROM umputun/baseimage:scratch-latest 19 | # enables automatic changelog generation by tools like Dependabot 20 | LABEL org.opencontainers.image.source="https://github.com/umputun/sys-agent" 21 | COPY --from=build /build/sys-agent /srv/sys-agent 22 | WORKDIR /srv 23 | EXPOSE 8080 24 | 25 | CMD ["/srv/sys-agent"] -------------------------------------------------------------------------------- /Dockerfile.site: -------------------------------------------------------------------------------- 1 | FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build 2 | 3 | WORKDIR /build 4 | COPY site/ /build/ 5 | COPY README.md /build/docs/index.md 6 | 7 | RUN \ 8 | sed -i 's|https://raw.githubusercontent.com/umputun/sys-agent/master/site/docs/logo.png|logo.png|' /build/docs/index.md && \ 9 | sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md 10 | RUN mkdocs build 11 | 12 | 13 | FROM ghcr.io/umputun/reproxy 14 | # enables automatic changelog generation by tools like Dependabot 15 | LABEL org.opencontainers.image.source="https://github.com/umputun/sys-agent" 16 | COPY --from=build /build/site /srv/site 17 | EXPOSE 8080 18 | USER app 19 | ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"] 20 | -------------------------------------------------------------------------------- /app/status/external/testdata/nginx.txt: -------------------------------------------------------------------------------- 1 | Active connections: 125 2 | server accepts handled requests 3 | 1377590 1377590 1873302 4 | Reading: 2 Writing: 115 Waiting: 10 5 | -------------------------------------------------------------------------------- /app/status/external/testdata/ping.txt: -------------------------------------------------------------------------------- 1 | pong -------------------------------------------------------------------------------- /app/status/external/testdata/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | echo "Hello, World!" -------------------------------------------------------------------------------- /config-example.yml: -------------------------------------------------------------------------------- 1 | volumes: 2 | - {name: root, path: /hostroot} 3 | - {name: data, path: /data} 4 | 5 | services: 6 | certificate: 7 | - {name: rt_cert, url: https://radio-t.com} 8 | - {name: ump_cert, url: https://umputun.com} 9 | http: 10 | - {name: news_ping, url: https://news.radio-t.com/api/ping} 11 | - {name: site_ping, url: https://radio-t.com/site-api/ping} 12 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | services: 2 | sys-agent: 3 | build: . 4 | image: umputun/sys-agent:master 5 | container_name: sys-agent 6 | hostname: sys-agent 7 | ports: 8 | - "8080:8080" 9 | volumes: 10 | - /tmp:/hosthome:ro 11 | - /var/run/docker.sock:/var/run/docker.sock:ro 12 | environment: 13 | - TZ=America/Chicago 14 | - LISTEN=0.0.0.0:8080 15 | - DEBUG=true 16 | - VOLUMES=home:/hosthome 17 | - SERVICES=health:http://172.17.42.1/health,docker:docker:///var/run/docker.sock 18 | -------------------------------------------------------------------------------- /requests.http: -------------------------------------------------------------------------------- 1 | ### ping 2 | GET http://localhost:8080/ping 3 | 4 | ### get status 5 | GET http://localhost:8080/status 6 | -------------------------------------------------------------------------------- /site/docs/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umputun/sys-agent/d642fac07c0ffbc09f847074d434251df6313c8f/site/docs/favicon.png -------------------------------------------------------------------------------- /site/docs/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umputun/sys-agent/d642fac07c0ffbc09f847074d434251df6313c8f/site/docs/logo.png -------------------------------------------------------------------------------- /site/docs/stylesheets/extra.css: -------------------------------------------------------------------------------- 1 | .md-typeset h1, 2 | .md-content__button { 3 | display: none; 4 | } 5 | .md-nav__title { 6 | display: none; 7 | } 8 | 9 | -------------------------------------------------------------------------------- /sys-agent.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=system status agent 3 | After=network.target 4 | StartLimitIntervalSec=0 5 | 6 | [Service] 7 | Type=simple 8 | Restart=always 9 | RestartSec=1 10 | User=root 11 | ExecStart=/usr/bin/sys-agent 12 | 13 | [Install] 14 | WantedBy=multi-user.target -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/didip/tollbooth/v8/.gitignore: -------------------------------------------------------------------------------- 1 | /debug 2 | /.vscode 3 | /.idea -------------------------------------------------------------------------------- /vendor/github.com/didip/tollbooth/v8/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - revive 4 | - govet 5 | - unconvert 6 | - megacheck 7 | - gas 8 | - gocyclo 9 | - dupl 10 | - misspell 11 | - unparam 12 | - unused 13 | - typecheck 14 | - ineffassign 15 | - stylecheck 16 | - gochecknoinits 17 | - exportloopref 18 | - gocritic 19 | - nakedret 20 | - gosimple 21 | - prealloc 22 | fast: false 23 | disable-all: true 24 | 25 | issues: 26 | exclude-rules: 27 | - path: _test\.go 28 | linters: 29 | - dupl 30 | - text: "Errors unhandled" 31 | linters: 32 | - gosec 33 | exclude-use-default: false 34 | -------------------------------------------------------------------------------- /vendor/github.com/didip/tollbooth/v8/errors/errors.go: -------------------------------------------------------------------------------- 1 | // Package errors provide data structure for errors. 2 | package errors 3 | 4 | import "fmt" 5 | 6 | // HTTPError is an error struct that returns both message and status code. 7 | type HTTPError struct { 8 | Message string 9 | StatusCode int 10 | } 11 | 12 | // Error returns error message. 13 | func (httperror *HTTPError) Error() string { 14 | return fmt.Sprintf("%v: %v", httperror.StatusCode, httperror.Message) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/didip/tollbooth/v8/internal/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 | -------------------------------------------------------------------------------- /vendor/github.com/didip/tollbooth/v8/internal/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/didip/tollbooth/v8/limiter/limiter_options.go: -------------------------------------------------------------------------------- 1 | package limiter 2 | 3 | import ( 4 | "time" 5 | ) 6 | 7 | // ExpirableOptions are options used for new limiter creation 8 | type ExpirableOptions struct { 9 | DefaultExpirationTTL time.Duration 10 | 11 | // How frequently expire job triggers 12 | // Deprecated: not used anymore 13 | ExpireJobInterval time.Duration 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.cirrus.yml: -------------------------------------------------------------------------------- 1 | freebsd_task: 2 | name: 'FreeBSD' 3 | freebsd_instance: 4 | image_family: freebsd-14-2 5 | install_script: 6 | - pkg update -f 7 | - pkg install -y go 8 | test_script: 9 | # run tests as user "cirrus" instead of root 10 | - pw useradd cirrus -m 11 | - chown -R cirrus:cirrus . 12 | - FSNOTIFY_BUFFER=4096 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./... 13 | - sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race ./... 14 | - FSNOTIFY_DEBUG=1 sudo --preserve-env=FSNOTIFY_BUFFER -u cirrus go test -parallel 1 -race -v ./... 15 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.gitignore: -------------------------------------------------------------------------------- 1 | # go test -c output 2 | *.test 3 | *.test.exe 4 | 5 | # Output of go build ./cmd/fsnotify 6 | /fsnotify 7 | /fsnotify.exe 8 | 9 | /test/kqueue 10 | /test/a.out 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/.mailmap: -------------------------------------------------------------------------------- 1 | Chris Howey 2 | Nathan Youngman <4566+nathany@users.noreply.github.com> 3 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/backend_other.go: -------------------------------------------------------------------------------- 1 | //go:build appengine || (!darwin && !dragonfly && !freebsd && !openbsd && !linux && !netbsd && !solaris && !windows) 2 | 3 | package fsnotify 4 | 5 | import "errors" 6 | 7 | type other struct { 8 | Events chan Event 9 | Errors chan error 10 | } 11 | 12 | var defaultBufferSize = 0 13 | 14 | func newBackend(ev chan Event, errs chan error) (backend, error) { 15 | return nil, errors.New("fsnotify not supported on the current platform") 16 | } 17 | func (w *other) Close() error { return nil } 18 | func (w *other) WatchList() []string { return nil } 19 | func (w *other) Add(name string) error { return nil } 20 | func (w *other) AddWith(name string, opts ...addOpt) error { return nil } 21 | func (w *other) Remove(name string) error { return nil } 22 | func (w *other) xSupports(op Op) bool { return false } 23 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/debug_kqueue.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || dragonfly || darwin 2 | 3 | package internal 4 | 5 | import ( 6 | "fmt" 7 | "os" 8 | "strings" 9 | "time" 10 | 11 | "golang.org/x/sys/unix" 12 | ) 13 | 14 | func Debug(name string, kevent *unix.Kevent_t) { 15 | mask := uint32(kevent.Fflags) 16 | 17 | var ( 18 | l []string 19 | unknown = mask 20 | ) 21 | for _, n := range names { 22 | if mask&n.m == n.m { 23 | l = append(l, n.n) 24 | unknown ^= n.m 25 | } 26 | } 27 | if unknown > 0 { 28 | l = append(l, fmt.Sprintf("0x%x", unknown)) 29 | } 30 | fmt.Fprintf(os.Stderr, "FSNOTIFY_DEBUG: %s %10d:%-60s → %q\n", 31 | time.Now().Format("15:04:05.000000000"), mask, strings.Join(l, " | "), name) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/debug_netbsd.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | var names = []struct { 6 | n string 7 | m uint32 8 | }{ 9 | {"NOTE_ATTRIB", unix.NOTE_ATTRIB}, 10 | {"NOTE_CHILD", unix.NOTE_CHILD}, 11 | {"NOTE_DELETE", unix.NOTE_DELETE}, 12 | {"NOTE_EXEC", unix.NOTE_EXEC}, 13 | {"NOTE_EXIT", unix.NOTE_EXIT}, 14 | {"NOTE_EXTEND", unix.NOTE_EXTEND}, 15 | {"NOTE_FORK", unix.NOTE_FORK}, 16 | {"NOTE_LINK", unix.NOTE_LINK}, 17 | {"NOTE_LOWAT", unix.NOTE_LOWAT}, 18 | {"NOTE_PCTRLMASK", unix.NOTE_PCTRLMASK}, 19 | {"NOTE_PDATAMASK", unix.NOTE_PDATAMASK}, 20 | {"NOTE_RENAME", unix.NOTE_RENAME}, 21 | {"NOTE_REVOKE", unix.NOTE_REVOKE}, 22 | {"NOTE_TRACK", unix.NOTE_TRACK}, 23 | {"NOTE_TRACKERR", unix.NOTE_TRACKERR}, 24 | {"NOTE_WRITE", unix.NOTE_WRITE}, 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/debug_openbsd.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import "golang.org/x/sys/unix" 4 | 5 | var names = []struct { 6 | n string 7 | m uint32 8 | }{ 9 | {"NOTE_ATTRIB", unix.NOTE_ATTRIB}, 10 | // {"NOTE_CHANGE", unix.NOTE_CHANGE}, // Not on 386? 11 | {"NOTE_CHILD", unix.NOTE_CHILD}, 12 | {"NOTE_DELETE", unix.NOTE_DELETE}, 13 | {"NOTE_EOF", unix.NOTE_EOF}, 14 | {"NOTE_EXEC", unix.NOTE_EXEC}, 15 | {"NOTE_EXIT", unix.NOTE_EXIT}, 16 | {"NOTE_EXTEND", unix.NOTE_EXTEND}, 17 | {"NOTE_FORK", unix.NOTE_FORK}, 18 | {"NOTE_LINK", unix.NOTE_LINK}, 19 | {"NOTE_LOWAT", unix.NOTE_LOWAT}, 20 | {"NOTE_PCTRLMASK", unix.NOTE_PCTRLMASK}, 21 | {"NOTE_PDATAMASK", unix.NOTE_PDATAMASK}, 22 | {"NOTE_RENAME", unix.NOTE_RENAME}, 23 | {"NOTE_REVOKE", unix.NOTE_REVOKE}, 24 | {"NOTE_TRACK", unix.NOTE_TRACK}, 25 | {"NOTE_TRACKERR", unix.NOTE_TRACKERR}, 26 | {"NOTE_TRUNCATE", unix.NOTE_TRUNCATE}, 27 | {"NOTE_WRITE", unix.NOTE_WRITE}, 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/freebsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd 2 | 3 | package internal 4 | 5 | import ( 6 | "syscall" 7 | 8 | "golang.org/x/sys/unix" 9 | ) 10 | 11 | var ( 12 | ErrSyscallEACCES = syscall.EACCES 13 | ErrUnixEACCES = unix.EACCES 14 | ) 15 | 16 | var maxfiles uint64 17 | 18 | func SetRlimit() { 19 | // Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/ 20 | var l syscall.Rlimit 21 | err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &l) 22 | if err == nil && l.Cur != l.Max { 23 | l.Cur = l.Max 24 | syscall.Setrlimit(syscall.RLIMIT_NOFILE, &l) 25 | } 26 | maxfiles = uint64(l.Cur) 27 | } 28 | 29 | func Maxfiles() uint64 { return maxfiles } 30 | func Mkfifo(path string, mode uint32) error { return unix.Mkfifo(path, mode) } 31 | func Mknod(path string, mode uint32, dev int) error { return unix.Mknod(path, mode, uint64(dev)) } 32 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Package internal contains some helpers. 2 | package internal 3 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !darwin && !freebsd && !plan9 2 | 3 | package internal 4 | 5 | import ( 6 | "syscall" 7 | 8 | "golang.org/x/sys/unix" 9 | ) 10 | 11 | var ( 12 | ErrSyscallEACCES = syscall.EACCES 13 | ErrUnixEACCES = unix.EACCES 14 | ) 15 | 16 | var maxfiles uint64 17 | 18 | func SetRlimit() { 19 | // Go 1.19 will do this automatically: https://go-review.googlesource.com/c/go/+/393354/ 20 | var l syscall.Rlimit 21 | err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &l) 22 | if err == nil && l.Cur != l.Max { 23 | l.Cur = l.Max 24 | syscall.Setrlimit(syscall.RLIMIT_NOFILE, &l) 25 | } 26 | maxfiles = uint64(l.Cur) 27 | } 28 | 29 | func Maxfiles() uint64 { return maxfiles } 30 | func Mkfifo(path string, mode uint32) error { return unix.Mkfifo(path, mode) } 31 | func Mknod(path string, mode uint32, dev int) error { return unix.Mknod(path, mode, dev) } 32 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/internal/unix2.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package internal 4 | 5 | func HasPrivilegesForSymlink() bool { 6 | return true 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/staticcheck.conf: -------------------------------------------------------------------------------- 1 | checks = ['all', 2 | '-U1000', # Don't complain about unused functions. 3 | ] 4 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || dragonfly 2 | 3 | package fsnotify 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC 8 | -------------------------------------------------------------------------------- /vendor/github.com/fsnotify/fsnotify/system_darwin.go: -------------------------------------------------------------------------------- 1 | //go:build darwin 2 | 3 | package fsnotify 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | // note: this constant is not defined on BSD 8 | const openMode = unix.O_EVTONLY | unix.O_CLOEXEC 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | go: 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - tip 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Security updates are applied only to the latest release. 6 | 7 | ## Reporting a Vulnerability 8 | 9 | If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released. 10 | 11 | Please disclose it at [security advisory](https://github.com/go-ole/go-ole/security/advisories/new). 12 | 13 | This project is maintained by a team of volunteers on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure. 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/error_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | // errstr converts error code to string. 6 | func errstr(errno int) string { 7 | return "" 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/error_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "fmt" 7 | "syscall" 8 | "unicode/utf16" 9 | ) 10 | 11 | // errstr converts error code to string. 12 | func errstr(errno int) string { 13 | // ask windows for the remaining errors 14 | var flags uint32 = syscall.FORMAT_MESSAGE_FROM_SYSTEM | syscall.FORMAT_MESSAGE_ARGUMENT_ARRAY | syscall.FORMAT_MESSAGE_IGNORE_INSERTS 15 | b := make([]uint16, 300) 16 | n, err := syscall.FormatMessage(flags, 0, uint32(errno), 0, b, nil) 17 | if err != nil { 18 | return fmt.Sprintf("error %d (FormatMessage failed with: %v)", errno, err) 19 | } 20 | // trim terminating \r and \n 21 | for ; n > 0 && (b[n-1] == '\n' || b[n-1] == '\r'); n-- { 22 | } 23 | return string(utf16.Decode(b[:n])) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPoint struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointVtbl struct { 10 | IUnknownVtbl 11 | GetConnectionInterface uintptr 12 | GetConnectionPointContainer uintptr 13 | Advise uintptr 14 | Unadvise uintptr 15 | EnumConnections uintptr 16 | } 17 | 18 | func (v *IConnectionPoint) VTable() *IConnectionPointVtbl { 19 | return (*IConnectionPointVtbl)(unsafe.Pointer(v.RawVTable)) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpoint_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | import "unsafe" 6 | 7 | func (v *IConnectionPoint) GetConnectionInterface(piid **GUID) int32 { 8 | return int32(0) 9 | } 10 | 11 | func (v *IConnectionPoint) Advise(unknown *IUnknown) (uint32, error) { 12 | return uint32(0), NewError(E_NOTIMPL) 13 | } 14 | 15 | func (v *IConnectionPoint) Unadvise(cookie uint32) error { 16 | return NewError(E_NOTIMPL) 17 | } 18 | 19 | func (v *IConnectionPoint) EnumConnections(p *unsafe.Pointer) (err error) { 20 | return NewError(E_NOTIMPL) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IConnectionPointContainer struct { 6 | IUnknown 7 | } 8 | 9 | type IConnectionPointContainerVtbl struct { 10 | IUnknownVtbl 11 | EnumConnectionPoints uintptr 12 | FindConnectionPoint uintptr 13 | } 14 | 15 | func (v *IConnectionPointContainer) VTable() *IConnectionPointContainerVtbl { 16 | return (*IConnectionPointContainerVtbl)(unsafe.Pointer(v.RawVTable)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iconnectionpointcontainer_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func (v *IConnectionPointContainer) EnumConnectionPoints(points interface{}) error { 11 | return NewError(E_NOTIMPL) 12 | } 13 | 14 | func (v *IConnectionPointContainer) FindConnectionPoint(iid *GUID, point **IConnectionPoint) (err error) { 15 | hr, _, _ := syscall.Syscall( 16 | v.VTable().FindConnectionPoint, 17 | 3, 18 | uintptr(unsafe.Pointer(v)), 19 | uintptr(unsafe.Pointer(iid)), 20 | uintptr(unsafe.Pointer(point))) 21 | if hr != 0 { 22 | err = NewError(hr) 23 | } 24 | return 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/idispatch_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getIDsOfName(disp *IDispatch, names []string) ([]int32, error) { 6 | return []int32{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func getTypeInfoCount(disp *IDispatch) (uint32, error) { 10 | return uint32(0), NewError(E_NOTIMPL) 11 | } 12 | 13 | func getTypeInfo(disp *IDispatch) (*ITypeInfo, error) { 14 | return nil, NewError(E_NOTIMPL) 15 | } 16 | 17 | func invoke(disp *IDispatch, dispid int32, dispatch int16, params ...interface{}) (*VARIANT, error) { 18 | return nil, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IEnumVARIANT struct { 6 | IUnknown 7 | } 8 | 9 | type IEnumVARIANTVtbl struct { 10 | IUnknownVtbl 11 | Next uintptr 12 | Skip uintptr 13 | Reset uintptr 14 | Clone uintptr 15 | } 16 | 17 | func (v *IEnumVARIANT) VTable() *IEnumVARIANTVtbl { 18 | return (*IEnumVARIANTVtbl)(unsafe.Pointer(v.RawVTable)) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/ienumvariant_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (enum *IEnumVARIANT) Clone() (*IEnumVARIANT, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (enum *IEnumVARIANT) Reset() error { 10 | return NewError(E_NOTIMPL) 11 | } 12 | 13 | func (enum *IEnumVARIANT) Skip(celt uint) error { 14 | return NewError(E_NOTIMPL) 15 | } 16 | 17 | func (enum *IEnumVARIANT) Next(celt uint) (VARIANT, uint, error) { 18 | return NewVariant(VT_NULL, int64(0)), 0, NewError(E_NOTIMPL) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IInspectable struct { 6 | IUnknown 7 | } 8 | 9 | type IInspectableVtbl struct { 10 | IUnknownVtbl 11 | GetIIds uintptr 12 | GetRuntimeClassName uintptr 13 | GetTrustLevel uintptr 14 | } 15 | 16 | func (v *IInspectable) VTable() *IInspectableVtbl { 17 | return (*IInspectableVtbl)(unsafe.Pointer(v.RawVTable)) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iinspectable_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *IInspectable) GetIids() ([]*GUID, error) { 6 | return []*GUID{}, NewError(E_NOTIMPL) 7 | } 8 | 9 | func (v *IInspectable) GetRuntimeClassName() (string, error) { 10 | return "", NewError(E_NOTIMPL) 11 | } 12 | 13 | func (v *IInspectable) GetTrustLevel() (uint32, error) { 14 | return uint32(0), NewError(E_NOTIMPL) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type IProvideClassInfo struct { 6 | IUnknown 7 | } 8 | 9 | type IProvideClassInfoVtbl struct { 10 | IUnknownVtbl 11 | GetClassInfo uintptr 12 | } 13 | 14 | func (v *IProvideClassInfo) VTable() *IProvideClassInfoVtbl { 15 | return (*IProvideClassInfoVtbl)(unsafe.Pointer(v.RawVTable)) 16 | } 17 | 18 | func (v *IProvideClassInfo) GetClassInfo() (cinfo *ITypeInfo, err error) { 19 | cinfo, err = getClassInfo(v) 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iprovideclassinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func getClassInfo(disp *IProvideClassInfo) (tinfo *ITypeInfo, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | disp.VTable().GetClassInfo, 13 | 2, 14 | uintptr(unsafe.Pointer(disp)), 15 | uintptr(unsafe.Pointer(&tinfo)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo.go: -------------------------------------------------------------------------------- 1 | package ole 2 | 3 | import "unsafe" 4 | 5 | type ITypeInfo struct { 6 | IUnknown 7 | } 8 | 9 | type ITypeInfoVtbl struct { 10 | IUnknownVtbl 11 | GetTypeAttr uintptr 12 | GetTypeComp uintptr 13 | GetFuncDesc uintptr 14 | GetVarDesc uintptr 15 | GetNames uintptr 16 | GetRefTypeOfImplType uintptr 17 | GetImplTypeFlags uintptr 18 | GetIDsOfNames uintptr 19 | Invoke uintptr 20 | GetDocumentation uintptr 21 | GetDllEntry uintptr 22 | GetRefTypeInfo uintptr 23 | AddressOfMember uintptr 24 | CreateInstance uintptr 25 | GetMops uintptr 26 | GetContainingTypeLib uintptr 27 | ReleaseTypeAttr uintptr 28 | ReleaseFuncDesc uintptr 29 | ReleaseVarDesc uintptr 30 | } 31 | 32 | func (v *ITypeInfo) VTable() *ITypeInfoVtbl { 33 | return (*ITypeInfoVtbl)(unsafe.Pointer(v.RawVTable)) 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func (v *ITypeInfo) GetTypeAttr() (*TYPEATTR, error) { 6 | return nil, NewError(E_NOTIMPL) 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/itypeinfo_windows.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | func (v *ITypeInfo) GetTypeAttr() (tattr *TYPEATTR, err error) { 11 | hr, _, _ := syscall.Syscall( 12 | uintptr(v.VTable().GetTypeAttr), 13 | 2, 14 | uintptr(unsafe.Pointer(v)), 15 | uintptr(unsafe.Pointer(&tattr)), 16 | 0) 17 | if hr != 0 { 18 | err = NewError(hr) 19 | } 20 | return 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/iunknown_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ole 4 | 5 | func reflectQueryInterface(self interface{}, method uintptr, interfaceID *GUID, obj interface{}) (err error) { 6 | return NewError(E_NOTIMPL) 7 | } 8 | 9 | func queryInterface(unk *IUnknown, iid *GUID) (disp *IDispatch, err error) { 10 | return nil, NewError(E_NOTIMPL) 11 | } 12 | 13 | func addRef(unk *IUnknown) int32 { 14 | return 0 15 | } 16 | 17 | func release(unk *IUnknown) int32 { 18 | return 0 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/connection_func.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package oleutil 4 | 5 | import ole "github.com/go-ole/go-ole" 6 | 7 | // ConnectObject creates a connection point between two services for communication. 8 | func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error) { 9 | return 0, ole.NewError(ole.E_NOTIMPL) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/oleutil/go-get.go: -------------------------------------------------------------------------------- 1 | // This file is here so go get succeeds as without it errors with: 2 | // no buildable Go source files in ... 3 | // 4 | // +build !windows 5 | 6 | package oleutil 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/safearray.go: -------------------------------------------------------------------------------- 1 | // Package is meant to retrieve and process safe array data returned from COM. 2 | 3 | package ole 4 | 5 | // SafeArrayBound defines the SafeArray boundaries. 6 | type SafeArrayBound struct { 7 | Elements uint32 8 | LowerBound int32 9 | } 10 | 11 | // SafeArray is how COM handles arrays. 12 | type SafeArray struct { 13 | Dimensions uint16 14 | FeaturesFlag uint16 15 | ElementsSize uint32 16 | LocksAmount uint32 17 | Data uint32 18 | Bounds [16]byte 19 | } 20 | 21 | // SAFEARRAY is obsolete, exists for backwards compatibility. 22 | // Use SafeArray 23 | type SAFEARRAY SafeArray 24 | 25 | // SAFEARRAYBOUND is obsolete, exists for backwards compatibility. 26 | // Use SafeArrayBound 27 | type SAFEARRAYBOUND SafeArrayBound 28 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/safearrayslices.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | func safeArrayFromByteSlice(slice []byte) *SafeArray { 10 | array, _ := safeArrayCreateVector(VT_UI1, 0, uint32(len(slice))) 11 | 12 | if array == nil { 13 | panic("Could not convert []byte to SAFEARRAY") 14 | } 15 | 16 | for i, v := range slice { 17 | safeArrayPutElement(array, int64(i), uintptr(unsafe.Pointer(&v))) 18 | } 19 | return array 20 | } 21 | 22 | func safeArrayFromStringSlice(slice []string) *SafeArray { 23 | array, _ := safeArrayCreateVector(VT_BSTR, 0, uint32(len(slice))) 24 | 25 | if array == nil { 26 | panic("Could not convert []string to SAFEARRAY") 27 | } 28 | // SysAllocStringLen(s) 29 | for i, v := range slice { 30 | safeArrayPutElement(array, int64(i), uintptr(unsafe.Pointer(SysAllocStringLen(v)))) 31 | } 32 | return array 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variables.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package ole 4 | 5 | import ( 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | var ( 10 | modcombase = windows.NewLazySystemDLL("combase.dll") 11 | modkernel32 = windows.NewLazySystemDLL("kernel32.dll") 12 | modole32 = windows.NewLazySystemDLL("ole32.dll") 13 | modoleaut32 = windows.NewLazySystemDLL("oleaut32.dll") 14 | moduser32 = windows.NewLazySystemDLL("user32.dll") 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_386.go: -------------------------------------------------------------------------------- 1 | // +build 386 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_amd64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_arm.go: -------------------------------------------------------------------------------- 1 | // +build arm 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build arm64 2 | // +build arm64 3 | 4 | package ole 5 | 6 | type VARIANT struct { 7 | VT VT // 2 8 | wReserved1 uint16 // 4 9 | wReserved2 uint16 // 6 10 | wReserved3 uint16 // 8 11 | Val int64 // 16 12 | _ [8]byte // 24 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_date_386.go: -------------------------------------------------------------------------------- 1 | // +build windows,386 2 | 3 | package ole 4 | 5 | import ( 6 | "errors" 7 | "syscall" 8 | "time" 9 | "unsafe" 10 | ) 11 | 12 | // GetVariantDate converts COM Variant Time value to Go time.Time. 13 | func GetVariantDate(value uint64) (time.Time, error) { 14 | var st syscall.Systemtime 15 | v1 := uint32(value) 16 | v2 := uint32(value >> 32) 17 | r, _, _ := procVariantTimeToSystemTime.Call(uintptr(v1), uintptr(v2), uintptr(unsafe.Pointer(&st))) 18 | if r != 0 { 19 | return time.Date(int(st.Year), time.Month(st.Month), int(st.Day), int(st.Hour), int(st.Minute), int(st.Second), int(st.Milliseconds/1000), time.UTC), nil 20 | } 21 | return time.Now(), errors.New("Could not convert to time, passing current time.") 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_date_amd64.go: -------------------------------------------------------------------------------- 1 | // +build windows,amd64 2 | 3 | package ole 4 | 5 | import ( 6 | "errors" 7 | "syscall" 8 | "time" 9 | "unsafe" 10 | ) 11 | 12 | // GetVariantDate converts COM Variant Time value to Go time.Time. 13 | func GetVariantDate(value uint64) (time.Time, error) { 14 | var st syscall.Systemtime 15 | r, _, _ := procVariantTimeToSystemTime.Call(uintptr(value), uintptr(unsafe.Pointer(&st))) 16 | if r != 0 { 17 | return time.Date(int(st.Year), time.Month(st.Month), int(st.Day), int(st.Hour), int(st.Minute), int(st.Second), int(st.Milliseconds/1000), time.UTC), nil 18 | } 19 | return time.Now(), errors.New("Could not convert to time, passing current time.") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_date_arm.go: -------------------------------------------------------------------------------- 1 | // +build windows,arm 2 | 3 | package ole 4 | 5 | import ( 6 | "errors" 7 | "syscall" 8 | "time" 9 | "unsafe" 10 | ) 11 | 12 | // GetVariantDate converts COM Variant Time value to Go time.Time. 13 | func GetVariantDate(value uint64) (time.Time, error) { 14 | var st syscall.Systemtime 15 | v1 := uint32(value) 16 | v2 := uint32(value >> 32) 17 | r, _, _ := procVariantTimeToSystemTime.Call(uintptr(v1), uintptr(v2), uintptr(unsafe.Pointer(&st))) 18 | if r != 0 { 19 | return time.Date(int(st.Year), time.Month(st.Month), int(st.Day), int(st.Hour), int(st.Minute), int(st.Second), int(st.Milliseconds/1000), time.UTC), nil 20 | } 21 | return time.Now(), errors.New("Could not convert to time, passing current time.") 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_date_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build windows && arm64 2 | // +build windows,arm64 3 | 4 | package ole 5 | 6 | import ( 7 | "errors" 8 | "syscall" 9 | "time" 10 | "unsafe" 11 | ) 12 | 13 | // GetVariantDate converts COM Variant Time value to Go time.Time. 14 | func GetVariantDate(value uint64) (time.Time, error) { 15 | var st syscall.Systemtime 16 | v1 := uint32(value) 17 | v2 := uint32(value >> 32) 18 | r, _, _ := procVariantTimeToSystemTime.Call(uintptr(v1), uintptr(v2), uintptr(unsafe.Pointer(&st))) 19 | if r != 0 { 20 | return time.Date(int(st.Year), time.Month(st.Month), int(st.Day), int(st.Hour), int(st.Minute), int(st.Second), int(st.Milliseconds/1000), time.UTC), nil 21 | } 22 | return time.Now(), errors.New("Could not convert to time, passing current time.") 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_ppc64le.go: -------------------------------------------------------------------------------- 1 | // +build ppc64le 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-ole/go-ole/variant_s390x.go: -------------------------------------------------------------------------------- 1 | // +build s390x 2 | 3 | package ole 4 | 5 | type VARIANT struct { 6 | VT VT // 2 7 | wReserved1 uint16 // 4 8 | wReserved2 uint16 // 6 9 | wReserved3 uint16 // 8 10 | Val int64 // 16 11 | _ [8]byte // 24 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/lgr/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | vendor 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/lgr/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # These owners will be the default owners for everything in the repo. 2 | # Unless a later match takes precedence, @umputun will be requested for 3 | # review when someone opens a pull request. 4 | 5 | * @umputun 6 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/mongo/v2/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/rest/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | vendor -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/rest/depricattion.go: -------------------------------------------------------------------------------- 1 | package rest 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | "time" 7 | ) 8 | 9 | // Deprecation adds a header 'Deprecation: version="version", date="date" header' 10 | // see https://tools.ietf.org/id/draft-dalal-deprecation-header-00.html 11 | func Deprecation(version string, date time.Time) func(http.Handler) http.Handler { 12 | f := func(h http.Handler) http.Handler { 13 | fn := func(w http.ResponseWriter, r *http.Request) { 14 | headerVal := fmt.Sprintf("version=%q, date=%q", version, date.Format(time.RFC3339)) 15 | w.Header().Set("Deprecation", headerVal) 16 | h.ServeHTTP(w, r) 17 | } 18 | return http.HandlerFunc(fn) 19 | } 20 | return f 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/rest/metrics.go: -------------------------------------------------------------------------------- 1 | package rest 2 | 3 | import ( 4 | "expvar" 5 | "fmt" 6 | "net/http" 7 | "strings" 8 | ) 9 | 10 | // Metrics responds to GET /metrics with list of expvar 11 | func Metrics(onlyIps ...string) func(http.Handler) http.Handler { 12 | return func(h http.Handler) http.Handler { 13 | fn := func(w http.ResponseWriter, r *http.Request) { 14 | if r.Method == "GET" && strings.HasSuffix(strings.ToLower(r.URL.Path), "/metrics") { 15 | if matched, ip, err := matchSourceIP(r, onlyIps); !matched || err != nil { 16 | w.WriteHeader(http.StatusForbidden) 17 | RenderJSON(w, JSON{"error": fmt.Sprintf("ip %s rejected", ip)}) 18 | return 19 | } 20 | expvar.Handler().ServeHTTP(w, r) 21 | return 22 | } 23 | h.ServeHTTP(w, r) 24 | } 25 | 26 | return http.HandlerFunc(fn) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/go-pkgz/rest/throttle.go: -------------------------------------------------------------------------------- 1 | package rest 2 | 3 | import ( 4 | "net/http" 5 | ) 6 | 7 | // Throttle middleware checks how many request in-fly and rejects with 503 if exceeded 8 | func Throttle(limit int64) func(http.Handler) http.Handler { 9 | 10 | ch := make(chan struct{}, limit) 11 | return func(h http.Handler) http.Handler { 12 | 13 | fn := func(w http.ResponseWriter, r *http.Request) { 14 | 15 | if limit <= 0 { 16 | h.ServeHTTP(w, r) 17 | return 18 | } 19 | 20 | var acquired bool 21 | defer func() { 22 | if !acquired { 23 | return 24 | } 25 | select { 26 | case <-ch: 27 | return 28 | default: 29 | return 30 | } 31 | }() 32 | 33 | select { 34 | case ch <- struct{}{}: 35 | acquired = true 36 | h.ServeHTTP(w, r) 37 | return 38 | default: 39 | w.WriteHeader(http.StatusServiceUnavailable) 40 | return 41 | } 42 | } 43 | 44 | return http.HandlerFunc(fn) 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/.gitignore: -------------------------------------------------------------------------------- 1 | cmd/snappytool/snappytool 2 | testdata/bench 3 | 4 | # These explicitly listed benchmark data files are for an obsolete version of 5 | # snappy_test.go. 6 | testdata/alice29.txt 7 | testdata/asyoulik.txt 8 | testdata/fireworks.jpeg 9 | testdata/geo.protodata 10 | testdata/html 11 | testdata/html_x_4 12 | testdata/kppkn.gtb 13 | testdata/lcet10.txt 14 | testdata/paper-100k.pdf 15 | testdata/plrabn12.txt 16 | testdata/urls.10K 17 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Amazon.com, Inc 12 | Damian Gryski 13 | Eric Buth 14 | Google Inc. 15 | Jan Mercl <0xjnml@gmail.com> 16 | Klaus Post 17 | Rodolfo Carvalho 18 | Sebastien Binet 19 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/decode_asm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-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 !appengine 6 | // +build gc 7 | // +build !noasm 8 | // +build amd64 arm64 9 | 10 | package snappy 11 | 12 | // decode has the same semantics as in decode_other.go. 13 | // 14 | //go:noescape 15 | func decode(dst, src []byte) int 16 | -------------------------------------------------------------------------------- /vendor/github.com/golang/snappy/encode_asm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-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 !appengine 6 | // +build gc 7 | // +build !noasm 8 | // +build amd64 arm64 9 | 10 | package snappy 11 | 12 | // emitLiteral has the same semantics as in encode_other.go. 13 | // 14 | //go:noescape 15 | func emitLiteral(dst, lit []byte) int 16 | 17 | // emitCopy has the same semantics as in encode_other.go. 18 | // 19 | //go:noescape 20 | func emitCopy(dst []byte, offset, length int) int 21 | 22 | // extendMatch has the same semantics as in encode_other.go. 23 | // 24 | //go:noescape 25 | func extendMatch(src []byte, i, j int) int 26 | 27 | // encodeBlock has the same semantics as in encode_other.go. 28 | // 29 | //go:noescape 30 | func encodeBlock(dst, src []byte) (d int) 31 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/.gitattributes: -------------------------------------------------------------------------------- 1 | * -text 2 | *.bin -text -diff 3 | -------------------------------------------------------------------------------- /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 | 27 | # Linux perf files 28 | perf.data 29 | perf.data.old 30 | 31 | # gdb history 32 | .gdb_history 33 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/gen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd s2/cmd/_s2sx/ || exit 1 4 | go generate . 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/huff0/.gitignore: -------------------------------------------------------------------------------- 1 | /huff0-fuzz.zip 2 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !appengine && !noasm && gc 2 | // +build amd64,!appengine,!noasm,gc 3 | 4 | package cpuinfo 5 | 6 | // go:noescape 7 | func x86extensions() (bmi1, bmi2 bool) 8 | 9 | func init() { 10 | hasBMI1, hasBMI2 = x86extensions() 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.s: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | // +build gc 3 | // +build !noasm 4 | 5 | #include "textflag.h" 6 | #include "funcdata.h" 7 | #include "go_asm.h" 8 | 9 | TEXT ·x86extensions(SB), NOSPLIT, $0 10 | // 1. determine max EAX value 11 | XORQ AX, AX 12 | CPUID 13 | 14 | CMPQ AX, $7 15 | JB unsupported 16 | 17 | // 2. EAX = 7, ECX = 0 --- see Table 3-8 "Information Returned by CPUID Instruction" 18 | MOVQ $7, AX 19 | MOVQ $0, CX 20 | CPUID 21 | 22 | BTQ $3, BX // bit 3 = BMI1 23 | SETCS AL 24 | 25 | BTQ $8, BX // bit 8 = BMI2 26 | SETCS AH 27 | 28 | MOVB AL, bmi1+0(FP) 29 | MOVB AH, bmi2+1(FP) 30 | RET 31 | 32 | unsupported: 33 | XORQ AX, AX 34 | MOVB AL, bmi1+0(FP) 35 | MOVB AL, bmi2+1(FP) 36 | RET 37 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/internal/le/le.go: -------------------------------------------------------------------------------- 1 | package le 2 | 3 | type Indexer interface { 4 | int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.mod: -------------------------------------------------------------------------------- 1 | module github.com/klauspost/compress 2 | 3 | go 1.22 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/s2sx.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umputun/sys-agent/d642fac07c0ffbc09f847074d434251df6313c8f/vendor/github.com/klauspost/compress/s2sx.sum -------------------------------------------------------------------------------- /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(s *Digest, b []byte) int 17 | -------------------------------------------------------------------------------- /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/klauspost/compress/zstd/matchlen_amd64.go: -------------------------------------------------------------------------------- 1 | //go:build amd64 && !appengine && !noasm && gc 2 | // +build amd64,!appengine,!noasm,gc 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | 7 | package zstd 8 | 9 | // matchLen returns how many bytes match in a and b 10 | // 11 | // It assumes that: 12 | // 13 | // len(a) <= len(b) and len(a) > 0 14 | // 15 | //go:noescape 16 | func matchLen(a []byte, b []byte) int 17 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/zstd/matchlen_generic.go: -------------------------------------------------------------------------------- 1 | //go:build !amd64 || appengine || !gc || noasm 2 | // +build !amd64 appengine !gc noasm 3 | 4 | // Copyright 2019+ Klaus Post. All rights reserved. 5 | // License information can be found in the LICENSE file. 6 | 7 | package zstd 8 | 9 | import ( 10 | "math/bits" 11 | 12 | "github.com/klauspost/compress/internal/le" 13 | ) 14 | 15 | // matchLen returns the maximum common prefix length of a and b. 16 | // a must be the shortest of the two. 17 | func matchLen(a, b []byte) (n int) { 18 | left := len(a) 19 | for left >= 8 { 20 | diff := le.Load64(a, n) ^ le.Load64(b, n) 21 | if diff != 0 { 22 | return n + bits.TrailingZeros64(diff)>>3 23 | } 24 | n += 8 25 | left -= 8 26 | } 27 | a = a[n:] 28 | b = b[n:] 29 | 30 | for i := range a { 31 | if a[i] != b[i] { 32 | break 33 | } 34 | n++ 35 | } 36 | return n 37 | 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/README.md: -------------------------------------------------------------------------------- 1 | # plan9stats 2 | A module for retrieving statistics of Plan 9 3 | 4 | [![GoDev][godev-image]][godev-url] 5 | [![Actions Status][actions-image]][actions-url] 6 | 7 | [godev-image]: https://pkg.go.dev/badge/github.com/lufia/plan9stats 8 | [godev-url]: https://pkg.go.dev/github.com/lufia/plan9stats 9 | [actions-image]: https://github.com/lufia/plan9stats/workflows/Test/badge.svg?branch=main 10 | [actions-url]: https://github.com/lufia/plan9stats/actions?workflow=Test 11 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/doc.go: -------------------------------------------------------------------------------- 1 | // Package stats provides statistic utilities for Plan 9. 2 | package stats 3 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/int.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | type intParser struct { 8 | err error 9 | } 10 | 11 | func (p *intParser) ParseInt(s string, base int) int { 12 | if p.err != nil { 13 | return 0 14 | } 15 | var n int64 16 | n, p.err = strconv.ParseInt(s, base, 0) 17 | return int(n) 18 | } 19 | 20 | func (p *intParser) ParseInt64(s string, base int) int64 { 21 | if p.err != nil { 22 | return 0 23 | } 24 | var n int64 25 | n, p.err = strconv.ParseInt(s, base, 64) 26 | return n 27 | } 28 | 29 | func (p *intParser) ParseUint64(s string, base int) uint64 { 30 | if p.err != nil { 31 | return 0 32 | } 33 | var n uint64 34 | n, p.err = strconv.ParseUint(s, base, 64) 35 | return n 36 | } 37 | 38 | func (p *intParser) Err() error { 39 | return p.err 40 | } 41 | -------------------------------------------------------------------------------- /vendor/github.com/lufia/plan9stats/opts.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | type Config struct { 4 | rootdir string 5 | } 6 | 7 | type Option func(*Config) 8 | 9 | func newConfig(opts ...Option) *Config { 10 | var cfg Config 11 | for _, opt := range opts { 12 | opt(&cfg) 13 | } 14 | return &cfg 15 | } 16 | 17 | func WithRootDir(dir string) Option { 18 | return func(cfg *Config) { 19 | cfg.rootdir = dir 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.out 2 | coverage.txt 3 | release-notes.txt 4 | .directory 5 | .chglog 6 | .vscode 7 | .DS_Store -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: all 2 | 3 | default: test lint 4 | 5 | format: 6 | go fmt . 7 | 8 | test: 9 | go test -race 10 | 11 | check: format test 12 | 13 | benchmark: 14 | go test -bench=. -benchmem 15 | 16 | coverage: 17 | go test -coverprofile=coverage.out 18 | go tool cover -html="coverage.out" 19 | 20 | lint: format 21 | golangci-lint run . 22 | 23 | docs: 24 | godoc2md github.com/montanaflynn/stats | sed -e s#src/target/##g > DOCUMENTATION.md 25 | 26 | release: 27 | git-chglog --output CHANGELOG.md --next-tag ${TAG} 28 | git add CHANGELOG.md 29 | git commit -m "Update changelog with ${TAG} changes" 30 | git tag ${TAG} 31 | git-chglog $(TAG) | tail -n +4 | gsed '1s/^/$(TAG)\n/gm' > release-notes.txt 32 | git push origin master ${TAG} 33 | hub release create --copy -F release-notes.txt ${TAG} 34 | 35 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/cumulative_sum.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | // CumulativeSum calculates the cumulative sum of the input slice 4 | func CumulativeSum(input Float64Data) ([]float64, error) { 5 | 6 | if input.Len() == 0 { 7 | return Float64Data{}, EmptyInput 8 | } 9 | 10 | cumSum := make([]float64, input.Len()) 11 | 12 | for i, val := range input { 13 | if i == 0 { 14 | cumSum[i] = val 15 | } else { 16 | cumSum[i] = cumSum[i-1] + val 17 | } 18 | } 19 | 20 | return cumSum, nil 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package stats is a well tested and comprehensive 3 | statistics library package with no dependencies. 4 | 5 | Example Usage: 6 | 7 | // start with some source data to use 8 | data := []float64{1.0, 2.1, 3.2, 4.823, 4.1, 5.8} 9 | 10 | // you could also use different types like this 11 | // data := stats.LoadRawData([]int{1, 2, 3, 4, 5}) 12 | // data := stats.LoadRawData([]interface{}{1.1, "2", 3}) 13 | // etc... 14 | 15 | median, _ := stats.Median(data) 16 | fmt.Println(median) // 3.65 17 | 18 | roundedMedian, _ := stats.Round(median, 0) 19 | fmt.Println(roundedMedian) // 4 20 | 21 | MIT License Copyright (c) 2014-2020 Montana Flynn (https://montanaflynn.com) 22 | */ 23 | package stats 24 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/entropy.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // Entropy provides calculation of the entropy 6 | func Entropy(input Float64Data) (float64, error) { 7 | input, err := normalize(input) 8 | if err != nil { 9 | return math.NaN(), err 10 | } 11 | var result float64 12 | for i := 0; i < input.Len(); i++ { 13 | v := input.Get(i) 14 | if v == 0 { 15 | continue 16 | } 17 | result += (v * math.Log(v)) 18 | } 19 | return -result, nil 20 | } 21 | 22 | func normalize(input Float64Data) (Float64Data, error) { 23 | sum, err := input.Sum() 24 | if err != nil { 25 | return Float64Data{}, err 26 | } 27 | for i := 0; i < input.Len(); i++ { 28 | input[i] = input[i] / sum 29 | } 30 | return input, nil 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/max.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import ( 4 | "math" 5 | ) 6 | 7 | // Max finds the highest number in a slice 8 | func Max(input Float64Data) (max float64, err error) { 9 | 10 | // Return an error if there are no numbers 11 | if input.Len() == 0 { 12 | return math.NaN(), EmptyInputErr 13 | } 14 | 15 | // Get the first value as the starting point 16 | max = input.Get(0) 17 | 18 | // Loop and replace higher values 19 | for i := 1; i < input.Len(); i++ { 20 | if input.Get(i) > max { 21 | max = input.Get(i) 22 | } 23 | } 24 | 25 | return max, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/median.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // Median gets the median number in a slice of numbers 6 | func Median(input Float64Data) (median float64, err error) { 7 | 8 | // Start by sorting a copy of the slice 9 | c := sortedCopy(input) 10 | 11 | // No math is needed if there are no numbers 12 | // For even numbers we add the two middle numbers 13 | // and divide by two using the mean function above 14 | // For odd numbers we just use the middle number 15 | l := len(c) 16 | if l == 0 { 17 | return math.NaN(), EmptyInputErr 18 | } else if l%2 == 0 { 19 | median, _ = Mean(c[l/2-1 : l/2+1]) 20 | } else { 21 | median = c[l/2] 22 | } 23 | 24 | return median, nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/min.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // Min finds the lowest number in a set of data 6 | func Min(input Float64Data) (min float64, err error) { 7 | 8 | // Get the count of numbers in the slice 9 | l := input.Len() 10 | 11 | // Return an error if there are no numbers 12 | if l == 0 { 13 | return math.NaN(), EmptyInputErr 14 | } 15 | 16 | // Get the first value as the starting point 17 | min = input.Get(0) 18 | 19 | // Iterate until done checking for a lower value 20 | for i := 1; i < l; i++ { 21 | if input.Get(i) < min { 22 | min = input.Get(i) 23 | } 24 | } 25 | return min, nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/sigmoid.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // Sigmoid returns the input values in the range of -1 to 1 6 | // along the sigmoid or s-shaped curve, commonly used in 7 | // machine learning while training neural networks as an 8 | // activation function. 9 | func Sigmoid(input Float64Data) ([]float64, error) { 10 | if input.Len() == 0 { 11 | return Float64Data{}, EmptyInput 12 | } 13 | s := make([]float64, len(input)) 14 | for i, v := range input { 15 | s[i] = 1 / (1 + math.Exp(-v)) 16 | } 17 | return s, nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/softmax.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // SoftMax returns the input values in the range of 0 to 1 6 | // with sum of all the probabilities being equal to one. It 7 | // is commonly used in machine learning neural networks. 8 | func SoftMax(input Float64Data) ([]float64, error) { 9 | if input.Len() == 0 { 10 | return Float64Data{}, EmptyInput 11 | } 12 | 13 | s := 0.0 14 | c, _ := Max(input) 15 | for _, e := range input { 16 | s += math.Exp(e - c) 17 | } 18 | 19 | sm := make([]float64, len(input)) 20 | for i, v := range input { 21 | sm[i] = math.Exp(v-c) / s 22 | } 23 | 24 | return sm, nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/montanaflynn/stats/sum.go: -------------------------------------------------------------------------------- 1 | package stats 2 | 3 | import "math" 4 | 5 | // Sum adds all the numbers of a slice together 6 | func Sum(input Float64Data) (sum float64, err error) { 7 | 8 | if input.Len() == 0 { 9 | return math.NaN(), EmptyInputErr 10 | } 11 | 12 | // Add em up 13 | for _, n := range input { 14 | sum += n 15 | } 16 | 17 | return sum, nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/config.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package perfstat 5 | 6 | /* 7 | #cgo LDFLAGS: -lperfstat 8 | 9 | #include 10 | */ 11 | import "C" 12 | 13 | func EnableLVMStat() { 14 | C.perfstat_config(C.PERFSTAT_ENABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil) 15 | } 16 | 17 | func DisableLVMStat() { 18 | C.perfstat_config(C.PERFSTAT_DISABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/fsstat.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package perfstat 5 | 6 | /* 7 | #include "c_helpers.h" 8 | */ 9 | import "C" 10 | 11 | import ( 12 | "fmt" 13 | ) 14 | 15 | func FileSystemStat() ([]FileSystem, error) { 16 | var fsinfo *C.struct_fsinfo 17 | var nmounts C.int 18 | 19 | fsinfo = C.get_all_fs(&nmounts) 20 | if nmounts <= 0 { 21 | return nil, fmt.Errorf("No mounts found") 22 | } 23 | 24 | fs := make([]FileSystem, nmounts) 25 | for i := 0; i < int(nmounts); i++ { 26 | f := C.get_filesystem_stat(fsinfo, C.int(i)) 27 | if f != nil { 28 | fs[i] = fsinfo2filesystem(f) 29 | } 30 | } 31 | return fs, nil 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/lparstat.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package perfstat 5 | 6 | /* 7 | #cgo LDFLAGS: -lperfstat 8 | 9 | #include 10 | #include 11 | */ 12 | import "C" 13 | 14 | import ( 15 | "fmt" 16 | "unsafe" 17 | ) 18 | 19 | func PartitionStat() (*PartitionConfig, error) { 20 | var part C.perfstat_partition_config_t 21 | 22 | rc := C.perfstat_partition_config(nil, &part, C.sizeof_perfstat_partition_config_t, 1) 23 | if rc != 1 { 24 | return nil, fmt.Errorf("perfstat_partition_config() error") 25 | } 26 | p := perfstatpartitionconfig2partitionconfig(part) 27 | return &p, nil 28 | 29 | } 30 | 31 | func LparInfo() (*PartitionInfo, error) { 32 | var pinfo C.lpar_info_format2_t 33 | 34 | rc := C.lpar_get_info(C.LPAR_INFO_FORMAT2, unsafe.Pointer(&pinfo), C.sizeof_lpar_info_format2_t) 35 | if rc != 0 { 36 | return nil, fmt.Errorf("lpar_get_info() error") 37 | } 38 | p := lparinfo2partinfo(pinfo) 39 | return &p, nil 40 | } 41 | -------------------------------------------------------------------------------- /vendor/github.com/power-devops/perfstat/uptime.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package perfstat 5 | 6 | /* 7 | #include "c_helpers.h" 8 | */ 9 | import "C" 10 | 11 | import ( 12 | "fmt" 13 | "time" 14 | ) 15 | 16 | func timeSince(ts uint64) uint64 { 17 | return uint64(time.Now().Unix()) - ts 18 | } 19 | 20 | // BootTime() returns the time of the last boot in UNIX seconds 21 | func BootTime() (uint64, error) { 22 | sec := C.boottime() 23 | if sec == -1 { 24 | return 0, fmt.Errorf("Can't determine boot time") 25 | } 26 | return uint64(sec), nil 27 | } 28 | 29 | // UptimeSeconds() calculates uptime in seconds 30 | func UptimeSeconds() (uint64, error) { 31 | boot, err := BootTime() 32 | if err != nil { 33 | return 0, err 34 | } 35 | return timeSince(boot), nil 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/robfig/cron/v3/.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/robfig/cron/v3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/common/env.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | type EnvKeyType string 4 | 5 | // EnvKey is a context key that can be used to set programmatically the environment 6 | // gopsutil relies on to perform calls against the OS. 7 | // Example of use: 8 | // 9 | // ctx := context.WithValue(context.Background(), common.EnvKey, EnvMap{common.HostProcEnvKey: "/myproc"}) 10 | // avg, err := load.AvgWithContext(ctx) 11 | var EnvKey = EnvKeyType("env") 12 | 13 | const ( 14 | HostProcEnvKey EnvKeyType = "HOST_PROC" 15 | HostSysEnvKey EnvKeyType = "HOST_SYS" 16 | HostEtcEnvKey EnvKeyType = "HOST_ETC" 17 | HostVarEnvKey EnvKeyType = "HOST_VAR" 18 | HostRunEnvKey EnvKeyType = "HOST_RUN" 19 | HostDevEnvKey EnvKeyType = "HOST_DEV" 20 | HostRootEnvKey EnvKeyType = "HOST_ROOT" 21 | ) 22 | 23 | type EnvMap map[EnvKeyType]string 24 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_aix.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package cpu 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | func Times(percpu bool) ([]TimesStat, error) { 11 | return TimesWithContext(context.Background(), percpu) 12 | } 13 | 14 | func Info() ([]InfoStat, error) { 15 | return InfoWithContext(context.Background()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_darwin_nocgo.go: -------------------------------------------------------------------------------- 1 | //go:build darwin && !cgo 2 | // +build darwin,!cgo 3 | 4 | package cpu 5 | 6 | import "github.com/shirou/gopsutil/v3/internal/common" 7 | 8 | func perCPUTimes() ([]TimesStat, error) { 9 | return []TimesStat{}, common.ErrNotImplementedError 10 | } 11 | 12 | func allCPUTimes() ([]TimesStat, error) { 13 | return []TimesStat{}, common.ErrNotImplementedError 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_dragonfly_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_386.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Intr uint32 8 | Idle uint32 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_arm.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Intr uint32 8 | Idle uint32 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Intr uint64 8 | Idle uint64 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_386.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Spin uint32 8 | Intr uint32 9 | Idle uint32 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Spin uint64 8 | Intr uint64 9 | Idle uint64 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint32 5 | Nice uint32 6 | Sys uint32 7 | Spin uint32 8 | Intr uint32 9 | Idle uint32 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Spin uint64 8 | Intr uint64 9 | Idle uint64 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/cpu/cpu_openbsd_riscv64.go: -------------------------------------------------------------------------------- 1 | package cpu 2 | 3 | type cpuTimes struct { 4 | User uint64 5 | Nice uint64 6 | Sys uint64 7 | Spin uint64 8 | Intr uint64 9 | Idle uint64 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_darwin_nocgo.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin && !cgo) || ios 2 | // +build darwin,!cgo ios 3 | 4 | package disk 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/shirou/gopsutil/v3/internal/common" 10 | ) 11 | 12 | func IOCountersWithContext(ctx context.Context, names ...string) (map[string]IOCountersStat, error) { 13 | return nil, common.ErrNotImplementedError 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_openbsd_386.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && 386 2 | // +build openbsd,386 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs disk/types_openbsd.go 6 | 7 | package disk 8 | 9 | const ( 10 | devstat_NO_DATA = 0x00 11 | devstat_READ = 0x01 12 | devstat_WRITE = 0x02 13 | devstat_FREE = 0x03 14 | ) 15 | 16 | const ( 17 | sizeOfDiskstats = 0x60 18 | ) 19 | 20 | type Diskstats struct { 21 | Name [16]int8 22 | Busy int32 23 | Rxfer uint64 24 | Wxfer uint64 25 | Seek uint64 26 | Rbytes uint64 27 | Wbytes uint64 28 | Attachtime Timeval 29 | Timestamp Timeval 30 | Time Timeval 31 | } 32 | type Timeval struct { 33 | Sec int64 34 | Usec int32 35 | } 36 | 37 | type Diskstat struct{} 38 | type bintime struct{} 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs types_openbsd.go 3 | 4 | package disk 5 | 6 | const ( 7 | devstat_NO_DATA = 0x00 8 | devstat_READ = 0x01 9 | devstat_WRITE = 0x02 10 | devstat_FREE = 0x03 11 | ) 12 | 13 | const ( 14 | sizeOfDiskstats = 0x70 15 | ) 16 | 17 | type Diskstats struct { 18 | Name [16]int8 19 | Busy int32 20 | Pad_cgo_0 [4]byte 21 | Rxfer uint64 22 | Wxfer uint64 23 | Seek uint64 24 | Rbytes uint64 25 | Wbytes uint64 26 | Attachtime Timeval 27 | Timestamp Timeval 28 | Time Timeval 29 | } 30 | type Timeval struct { 31 | Sec int64 32 | Usec int64 33 | } 34 | 35 | type Diskstat struct{} 36 | type bintime struct{} 37 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm 2 | // +build openbsd,arm 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs disk/types_openbsd.go 6 | 7 | package disk 8 | 9 | const ( 10 | devstat_NO_DATA = 0x00 11 | devstat_READ = 0x01 12 | devstat_WRITE = 0x02 13 | devstat_FREE = 0x03 14 | ) 15 | 16 | const ( 17 | sizeOfDiskstats = 0x60 18 | ) 19 | 20 | type Diskstats struct { 21 | Name [16]int8 22 | Busy int32 23 | Rxfer uint64 24 | Wxfer uint64 25 | Seek uint64 26 | Rbytes uint64 27 | Wbytes uint64 28 | Attachtime Timeval 29 | Timestamp Timeval 30 | Time Timeval 31 | } 32 | type Timeval struct { 33 | Sec int64 34 | Usec int32 35 | } 36 | 37 | type Diskstat struct{} 38 | type bintime struct{} 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm64 2 | // +build openbsd,arm64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs disk/types_openbsd.go 6 | 7 | package disk 8 | 9 | const ( 10 | devstat_NO_DATA = 0x00 11 | devstat_READ = 0x01 12 | devstat_WRITE = 0x02 13 | devstat_FREE = 0x03 14 | ) 15 | 16 | const ( 17 | sizeOfDiskstats = 0x70 18 | ) 19 | 20 | type Diskstats struct { 21 | Name [16]int8 22 | Busy int32 23 | Rxfer uint64 24 | Wxfer uint64 25 | Seek uint64 26 | Rbytes uint64 27 | Wbytes uint64 28 | Attachtime Timeval 29 | Timestamp Timeval 30 | Time Timeval 31 | } 32 | type Timeval struct { 33 | Sec int64 34 | Usec int64 35 | } 36 | 37 | type Diskstat struct{} 38 | type bintime struct{} 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/disk_openbsd_riscv64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && riscv64 2 | // +build openbsd,riscv64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs disk/types_openbsd.go 6 | 7 | package disk 8 | 9 | const ( 10 | devstat_NO_DATA = 0x00 11 | devstat_READ = 0x01 12 | devstat_WRITE = 0x02 13 | devstat_FREE = 0x03 14 | ) 15 | 16 | const ( 17 | sizeOfDiskstats = 0x70 18 | ) 19 | 20 | type ( 21 | Diskstats struct { 22 | Name [16]int8 23 | Busy int32 24 | Rxfer uint64 25 | Wxfer uint64 26 | Seek uint64 27 | Rbytes uint64 28 | Wbytes uint64 29 | Attachtime Timeval 30 | Timestamp Timeval 31 | Time Timeval 32 | } 33 | Timeval struct { 34 | Sec int64 35 | Usec int64 36 | } 37 | ) 38 | 39 | type Diskstat struct{} 40 | type bintime struct{} 41 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/disk/iostat_darwin.h: -------------------------------------------------------------------------------- 1 | // https://github.com/lufia/iostat/blob/9f7362b77ad333b26c01c99de52a11bdb650ded2/iostat_darwin.h 2 | typedef struct DriveStats DriveStats; 3 | typedef struct CPUStats CPUStats; 4 | 5 | enum { 6 | NDRIVE = 16, 7 | NAMELEN = 31 8 | }; 9 | 10 | struct DriveStats { 11 | char name[NAMELEN+1]; 12 | int64_t size; 13 | int64_t blocksize; 14 | 15 | int64_t read; 16 | int64_t written; 17 | int64_t nread; 18 | int64_t nwrite; 19 | int64_t readtime; 20 | int64_t writetime; 21 | int64_t readlat; 22 | int64_t writelat; 23 | }; 24 | 25 | struct CPUStats { 26 | natural_t user; 27 | natural_t nice; 28 | natural_t sys; 29 | natural_t idle; 30 | }; 31 | 32 | extern int gopsutil_v3_readdrivestat(DriveStats a[], int n); 33 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_darwin_amd64.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_darwin.go 3 | 4 | package host 5 | 6 | type Utmpx struct { 7 | User [256]int8 8 | ID [4]int8 9 | Line [32]int8 10 | Pid int32 11 | Type int16 12 | Pad_cgo_0 [6]byte 13 | Tv Timeval 14 | Host [256]int8 15 | Pad [16]uint32 16 | } 17 | 18 | type Timeval struct { 19 | Sec int32 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_darwin_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build darwin && arm64 2 | // +build darwin,arm64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_darwin.go 6 | 7 | package host 8 | 9 | type Utmpx struct { 10 | User [256]int8 11 | Id [4]int8 12 | Line [32]int8 13 | Pid int32 14 | Type int16 15 | Tv Timeval 16 | Host [256]int8 17 | Pad [16]uint32 18 | } 19 | type Timeval struct { 20 | Sec int64 21 | Usec int32 22 | Pad_cgo_0 [4]byte 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_darwin_nocgo.go: -------------------------------------------------------------------------------- 1 | //go:build darwin && !cgo 2 | // +build darwin,!cgo 3 | 4 | package host 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/shirou/gopsutil/v3/internal/common" 10 | ) 11 | 12 | func SensorsTemperaturesWithContext(ctx context.Context) ([]TemperatureStat, error) { 13 | return []TemperatureStat{}, common.ErrNotImplementedError 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_freebsd_386.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs types_freebsd.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x4 11 | sizeofLongLong = 0x8 12 | sizeOfUtmpx = 0xc5 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type Utmp struct { 23 | Line [8]int8 24 | Name [16]int8 25 | Host [16]int8 26 | Time int32 27 | } 28 | 29 | type Utmpx struct { 30 | Type uint8 31 | Tv uint64 32 | Id [8]int8 33 | Pid uint32 34 | User [32]int8 35 | Line [16]int8 36 | Host [128]int8 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_freebsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs types_freebsd.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x8 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x8 11 | sizeofLongLong = 0x8 12 | sizeOfUtmpx = 0xc5 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int64 19 | _C_long_long int64 20 | ) 21 | 22 | type Utmp struct { 23 | Line [8]int8 24 | Name [16]int8 25 | Host [16]int8 26 | Time int32 27 | } 28 | 29 | type Utmpx struct { 30 | Type uint8 31 | Tv uint64 32 | Id [8]int8 33 | Pid uint32 34 | User [32]int8 35 | Line [16]int8 36 | Host [128]int8 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_freebsd_arm.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs types_freebsd.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x8 11 | sizeofLongLong = 0x8 12 | sizeOfUtmpx = 0xc5 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type Utmp struct { 23 | Line [8]int8 24 | Name [16]int8 25 | Host [16]int8 26 | Time int32 27 | } 28 | 29 | type Utmpx struct { 30 | Type uint8 31 | Tv uint64 32 | Id [8]int8 33 | Pid uint32 34 | User [32]int8 35 | Line [16]int8 36 | Host [128]int8 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd && arm64 2 | // +build freebsd,arm64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_freebsd.go 6 | 7 | package host 8 | 9 | const ( 10 | sizeofPtr = 0x8 11 | sizeofShort = 0x2 12 | sizeofInt = 0x4 13 | sizeofLong = 0x8 14 | sizeofLongLong = 0x8 15 | sizeOfUtmpx = 0xc5 16 | ) 17 | 18 | type ( 19 | _C_short int16 20 | _C_int int32 21 | _C_long int64 22 | _C_long_long int64 23 | ) 24 | 25 | type Utmp struct { 26 | Line [8]int8 27 | Name [16]int8 28 | Host [16]int8 29 | Time int32 30 | } 31 | 32 | type Utmpx struct { 33 | Type uint8 34 | Tv uint64 35 | Id [8]int8 36 | Pid uint32 37 | User [32]int8 38 | Line [16]int8 39 | Host [128]int8 40 | } 41 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_linux_mips.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_linux.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x4 11 | sizeofLongLong = 0x8 12 | sizeOfUtmp = 0x180 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type utmp struct { 23 | Type int16 24 | Pad_cgo_0 [2]byte 25 | Pid int32 26 | Line [32]int8 27 | Id [4]int8 28 | User [32]int8 29 | Host [256]int8 30 | Exit exit_status 31 | Session int32 32 | Tv timeval 33 | Addr_v6 [4]int32 34 | X__unused [20]int8 35 | } 36 | 37 | type exit_status struct { 38 | Termination int16 39 | Exit int16 40 | } 41 | 42 | type timeval struct { 43 | Sec int32 44 | Usec int32 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_linux_mips64.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_linux.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x4 11 | sizeofLongLong = 0x8 12 | sizeOfUtmp = 0x180 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type utmp struct { 23 | Type int16 24 | Pad_cgo_0 [2]byte 25 | Pid int32 26 | Line [32]int8 27 | Id [4]int8 28 | User [32]int8 29 | Host [256]int8 30 | Exit exit_status 31 | Session int32 32 | Tv timeval 33 | Addr_v6 [4]int32 34 | X__unused [20]int8 35 | } 36 | 37 | type exit_status struct { 38 | Termination int16 39 | Exit int16 40 | } 41 | 42 | type timeval struct { 43 | Sec int32 44 | Usec int32 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_linux_mips64le.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_linux.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x4 11 | sizeofLongLong = 0x8 12 | sizeOfUtmp = 0x180 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type utmp struct { 23 | Type int16 24 | Pad_cgo_0 [2]byte 25 | Pid int32 26 | Line [32]int8 27 | Id [4]int8 28 | User [32]int8 29 | Host [256]int8 30 | Exit exit_status 31 | Session int32 32 | Tv timeval 33 | Addr_v6 [4]int32 34 | X__unused [20]int8 35 | } 36 | 37 | type exit_status struct { 38 | Termination int16 39 | Exit int16 40 | } 41 | 42 | type timeval struct { 43 | Sec int32 44 | Usec int32 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_linux_mipsle.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_linux.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x4 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x4 11 | sizeofLongLong = 0x8 12 | sizeOfUtmp = 0x180 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int32 19 | _C_long_long int64 20 | ) 21 | 22 | type utmp struct { 23 | Type int16 24 | Pad_cgo_0 [2]byte 25 | Pid int32 26 | Line [32]int8 27 | Id [4]int8 28 | User [32]int8 29 | Host [256]int8 30 | Exit exit_status 31 | Session int32 32 | Tv timeval 33 | Addr_v6 [4]int32 34 | X__unused [20]int8 35 | } 36 | 37 | type exit_status struct { 38 | Termination int16 39 | Exit int16 40 | } 41 | 42 | type timeval struct { 43 | Sec int32 44 | Usec int32 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_openbsd_386.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && 386 2 | // +build openbsd,386 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_openbsd.go 6 | 7 | package host 8 | 9 | const ( 10 | sizeofPtr = 0x4 11 | sizeofShort = 0x2 12 | sizeofInt = 0x4 13 | sizeofLong = 0x4 14 | sizeofLongLong = 0x8 15 | sizeOfUtmp = 0x130 16 | ) 17 | 18 | type ( 19 | _C_short int16 20 | _C_int int32 21 | _C_long int32 22 | _C_long_long int64 23 | ) 24 | 25 | type Utmp struct { 26 | Line [8]int8 27 | Name [32]int8 28 | Host [256]int8 29 | Time int64 30 | } 31 | type Timeval struct { 32 | Sec int64 33 | Usec int32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_openbsd.go 3 | 4 | package host 5 | 6 | const ( 7 | sizeofPtr = 0x8 8 | sizeofShort = 0x2 9 | sizeofInt = 0x4 10 | sizeofLong = 0x8 11 | sizeofLongLong = 0x8 12 | sizeOfUtmp = 0x130 13 | ) 14 | 15 | type ( 16 | _C_short int16 17 | _C_int int32 18 | _C_long int64 19 | _C_long_long int64 20 | ) 21 | 22 | type Utmp struct { 23 | Line [8]int8 24 | Name [32]int8 25 | Host [256]int8 26 | Time int64 27 | } 28 | 29 | type Timeval struct { 30 | Sec int64 31 | Usec int64 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm 2 | // +build openbsd,arm 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_openbsd.go 6 | 7 | package host 8 | 9 | const ( 10 | sizeofPtr = 0x4 11 | sizeofShort = 0x2 12 | sizeofInt = 0x4 13 | sizeofLong = 0x4 14 | sizeofLongLong = 0x8 15 | sizeOfUtmp = 0x130 16 | ) 17 | 18 | type ( 19 | _C_short int16 20 | _C_int int32 21 | _C_long int32 22 | _C_long_long int64 23 | ) 24 | 25 | type Utmp struct { 26 | Line [8]int8 27 | Name [32]int8 28 | Host [256]int8 29 | Time int64 30 | } 31 | type Timeval struct { 32 | Sec int64 33 | Usec int32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm64 2 | // +build openbsd,arm64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_openbsd.go 6 | 7 | package host 8 | 9 | const ( 10 | sizeofPtr = 0x8 11 | sizeofShort = 0x2 12 | sizeofInt = 0x4 13 | sizeofLong = 0x8 14 | sizeofLongLong = 0x8 15 | sizeOfUtmp = 0x130 16 | ) 17 | 18 | type ( 19 | _C_short int16 20 | _C_int int32 21 | _C_long int64 22 | _C_long_long int64 23 | ) 24 | 25 | type Utmp struct { 26 | Line [8]int8 27 | Name [32]int8 28 | Host [256]int8 29 | Time int64 30 | } 31 | type Timeval struct { 32 | Sec int64 33 | Usec int64 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_openbsd_riscv64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && riscv64 2 | // +build openbsd,riscv64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs host/types_openbsd.go 6 | 7 | package host 8 | 9 | const ( 10 | sizeofPtr = 0x8 11 | sizeofShort = 0x2 12 | sizeofInt = 0x4 13 | sizeofLong = 0x8 14 | sizeofLongLong = 0x8 15 | sizeOfUtmp = 0x130 16 | ) 17 | 18 | type ( 19 | _C_short int16 20 | _C_int int32 21 | _C_long int64 22 | _C_long_long int64 23 | ) 24 | 25 | type ( 26 | Utmp struct { 27 | Line [8]int8 28 | Name [32]int8 29 | Host [256]int8 30 | Time int64 31 | } 32 | Timeval struct { 33 | Sec int64 34 | Usec int64 35 | } 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/host/host_posix.go: -------------------------------------------------------------------------------- 1 | //go:build linux || freebsd || openbsd || netbsd || darwin || solaris 2 | // +build linux freebsd openbsd netbsd darwin solaris 3 | 4 | package host 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | func KernelArch() (string, error) { 9 | var utsname unix.Utsname 10 | err := unix.Uname(&utsname) 11 | if err != nil { 12 | return "", err 13 | } 14 | return unix.ByteSliceToString(utsname.Machine[:]), nil 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/internal/common/endian.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import "unsafe" 4 | 5 | // IsLittleEndian checks if the current platform uses little-endian. 6 | // copied from https://github.com/ntrrg/ntgo/blob/v0.8.0/runtime/infrastructure.go#L16 (MIT License) 7 | func IsLittleEndian() bool { 8 | var x int16 = 0x0011 9 | return *(*byte)(unsafe.Pointer(&x)) == 0x11 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/internal/common/sleep.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import ( 4 | "context" 5 | "time" 6 | ) 7 | 8 | // Sleep awaits for provided interval. 9 | // Can be interrupted by context cancellation. 10 | func Sleep(ctx context.Context, interval time.Duration) error { 11 | timer := time.NewTimer(interval) 12 | select { 13 | case <-ctx.Done(): 14 | if !timer.Stop() { 15 | <-timer.C 16 | } 17 | return ctx.Err() 18 | case <-timer.C: 19 | return nil 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/internal/common/warnings.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import "fmt" 4 | 5 | type Warnings struct { 6 | List []error 7 | Verbose bool 8 | } 9 | 10 | func (w *Warnings) Add(err error) { 11 | w.List = append(w.List, err) 12 | } 13 | 14 | func (w *Warnings) Reference() error { 15 | if len(w.List) > 0 { 16 | return w 17 | } 18 | return nil 19 | } 20 | 21 | func (w *Warnings) Error() string { 22 | if w.Verbose { 23 | str := "" 24 | for i, e := range w.List { 25 | str += fmt.Sprintf("\tError %d: %s\n", i, e.Error()) 26 | } 27 | return str 28 | } 29 | return fmt.Sprintf("Number of warnings: %v", len(w.List)) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/load/load.go: -------------------------------------------------------------------------------- 1 | package load 2 | 3 | import ( 4 | "encoding/json" 5 | 6 | "github.com/shirou/gopsutil/v3/internal/common" 7 | ) 8 | 9 | var invoke common.Invoker = common.Invoke{} 10 | 11 | type AvgStat struct { 12 | Load1 float64 `json:"load1"` 13 | Load5 float64 `json:"load5"` 14 | Load15 float64 `json:"load15"` 15 | } 16 | 17 | func (l AvgStat) String() string { 18 | s, _ := json.Marshal(l) 19 | return string(s) 20 | } 21 | 22 | type MiscStat struct { 23 | ProcsTotal int `json:"procsTotal"` 24 | ProcsCreated int `json:"procsCreated"` 25 | ProcsRunning int `json:"procsRunning"` 26 | ProcsBlocked int `json:"procsBlocked"` 27 | Ctxt int `json:"ctxt"` 28 | } 29 | 30 | func (m MiscStat) String() string { 31 | s, _ := json.Marshal(m) 32 | return string(s) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/load/load_aix.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package load 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | func Avg() (*AvgStat, error) { 11 | return AvgWithContext(context.Background()) 12 | } 13 | 14 | // Misc returns miscellaneous host-wide statistics. 15 | // darwin use ps command to get process running/blocked count. 16 | // Almost same as Darwin implementation, but state is different. 17 | func Misc() (*MiscStat, error) { 18 | return MiscWithContext(context.Background()) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/load/load_fallback.go: -------------------------------------------------------------------------------- 1 | //go:build !darwin && !linux && !freebsd && !openbsd && !windows && !solaris && !aix 2 | // +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris,!aix 3 | 4 | package load 5 | 6 | import ( 7 | "context" 8 | 9 | "github.com/shirou/gopsutil/v3/internal/common" 10 | ) 11 | 12 | func Avg() (*AvgStat, error) { 13 | return AvgWithContext(context.Background()) 14 | } 15 | 16 | func AvgWithContext(ctx context.Context) (*AvgStat, error) { 17 | return nil, common.ErrNotImplementedError 18 | } 19 | 20 | func Misc() (*MiscStat, error) { 21 | return MiscWithContext(context.Background()) 22 | } 23 | 24 | func MiscWithContext(ctx context.Context) (*MiscStat, error) { 25 | return nil, common.ErrNotImplementedError 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/load/load_freebsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd 2 | // +build freebsd 3 | 4 | package load 5 | 6 | func getForkStat() (forkstat, error) { 7 | return forkstat{}, nil 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/load/load_openbsd.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd 2 | // +build openbsd 3 | 4 | package load 5 | 6 | import ( 7 | "unsafe" 8 | 9 | "golang.org/x/sys/unix" 10 | ) 11 | 12 | func getForkStat() (forkstat, error) { 13 | b, err := unix.SysctlRaw("kern.forkstat") 14 | if err != nil { 15 | return forkstat{}, err 16 | } 17 | return *(*forkstat)(unsafe.Pointer((&b[0]))), nil 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_aix.go: -------------------------------------------------------------------------------- 1 | //go:build aix 2 | // +build aix 3 | 4 | package mem 5 | 6 | import ( 7 | "context" 8 | ) 9 | 10 | func VirtualMemory() (*VirtualMemoryStat, error) { 11 | return VirtualMemoryWithContext(context.Background()) 12 | } 13 | 14 | func SwapMemory() (*SwapMemoryStat, error) { 15 | return SwapMemoryWithContext(context.Background()) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_openbsd_386.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && 386 2 | // +build openbsd,386 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs mem/types_openbsd.go 6 | 7 | package mem 8 | 9 | const ( 10 | CTLVfs = 10 11 | VfsGeneric = 0 12 | VfsBcacheStat = 3 13 | ) 14 | 15 | const ( 16 | sizeOfBcachestats = 0x90 17 | ) 18 | 19 | type Bcachestats struct { 20 | Numbufs int64 21 | Numbufpages int64 22 | Numdirtypages int64 23 | Numcleanpages int64 24 | Pendingwrites int64 25 | Pendingreads int64 26 | Numwrites int64 27 | Numreads int64 28 | Cachehits int64 29 | Busymapped int64 30 | Dmapages int64 31 | Highpages int64 32 | Delwribufs int64 33 | Kvaslots int64 34 | Avail int64 35 | Highflips int64 36 | Highflops int64 37 | Dmaflips int64 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_openbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Created by cgo -godefs - DO NOT EDIT 2 | // cgo -godefs types_openbsd.go 3 | 4 | package mem 5 | 6 | const ( 7 | CTLVfs = 10 8 | VfsGeneric = 0 9 | VfsBcacheStat = 3 10 | ) 11 | 12 | const ( 13 | sizeOfBcachestats = 0x78 14 | ) 15 | 16 | type Bcachestats struct { 17 | Numbufs int64 18 | Numbufpages int64 19 | Numdirtypages int64 20 | Numcleanpages int64 21 | Pendingwrites int64 22 | Pendingreads int64 23 | Numwrites int64 24 | Numreads int64 25 | Cachehits int64 26 | Busymapped int64 27 | Dmapages int64 28 | Highpages int64 29 | Delwribufs int64 30 | Kvaslots int64 31 | Avail int64 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_openbsd_arm.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm 2 | // +build openbsd,arm 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs mem/types_openbsd.go 6 | 7 | package mem 8 | 9 | const ( 10 | CTLVfs = 10 11 | VfsGeneric = 0 12 | VfsBcacheStat = 3 13 | ) 14 | 15 | const ( 16 | sizeOfBcachestats = 0x90 17 | ) 18 | 19 | type Bcachestats struct { 20 | Numbufs int64 21 | Numbufpages int64 22 | Numdirtypages int64 23 | Numcleanpages int64 24 | Pendingwrites int64 25 | Pendingreads int64 26 | Numwrites int64 27 | Numreads int64 28 | Cachehits int64 29 | Busymapped int64 30 | Dmapages int64 31 | Highpages int64 32 | Delwribufs int64 33 | Kvaslots int64 34 | Avail int64 35 | Highflips int64 36 | Highflops int64 37 | Dmaflips int64 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_openbsd_arm64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && arm64 2 | // +build openbsd,arm64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs mem/types_openbsd.go 6 | 7 | package mem 8 | 9 | const ( 10 | CTLVfs = 10 11 | VfsGeneric = 0 12 | VfsBcacheStat = 3 13 | ) 14 | 15 | const ( 16 | sizeOfBcachestats = 0x90 17 | ) 18 | 19 | type Bcachestats struct { 20 | Numbufs int64 21 | Numbufpages int64 22 | Numdirtypages int64 23 | Numcleanpages int64 24 | Pendingwrites int64 25 | Pendingreads int64 26 | Numwrites int64 27 | Numreads int64 28 | Cachehits int64 29 | Busymapped int64 30 | Dmapages int64 31 | Highpages int64 32 | Delwribufs int64 33 | Kvaslots int64 34 | Avail int64 35 | Highflips int64 36 | Highflops int64 37 | Dmaflips int64 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/mem/mem_openbsd_riscv64.go: -------------------------------------------------------------------------------- 1 | //go:build openbsd && riscv64 2 | // +build openbsd,riscv64 3 | 4 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 5 | // cgo -godefs mem/types_openbsd.go 6 | 7 | package mem 8 | 9 | const ( 10 | CTLVfs = 10 11 | VfsGeneric = 0 12 | VfsBcacheStat = 3 13 | ) 14 | 15 | const ( 16 | sizeOfBcachestats = 0x90 17 | ) 18 | 19 | type Bcachestats struct { 20 | Numbufs int64 21 | Numbufpages int64 22 | Numdirtypages int64 23 | Numcleanpages int64 24 | Pendingwrites int64 25 | Pendingreads int64 26 | Numwrites int64 27 | Numreads int64 28 | Cachehits int64 29 | Busymapped int64 30 | Dmapages int64 31 | Highpages int64 32 | Delwribufs int64 33 | Kvaslots int64 34 | Avail int64 35 | Highflips int64 36 | Highflops int64 37 | Dmaflips int64 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/net/net_linux_111.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.16 2 | // +build !go1.16 3 | 4 | package net 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | func readDir(f *os.File, max int) ([]os.FileInfo, error) { 11 | return f.Readdir(max) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/shirou/gopsutil/v3/net/net_linux_116.go: -------------------------------------------------------------------------------- 1 | //go:build go1.16 2 | // +build go1.16 3 | 4 | package net 5 | 6 | import ( 7 | "os" 8 | ) 9 | 10 | func readDir(f *os.File, max int) ([]os.DirEntry, error) { 11 | return f.ReadDir(max) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/shoenig/go-m1cpu/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 5m 3 | linters: 4 | enable: 5 | - gofmt 6 | - errcheck 7 | - errname 8 | - errorlint 9 | - bodyclose 10 | - durationcheck 11 | - whitespace 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/shoenig/go-m1cpu/Makefile: -------------------------------------------------------------------------------- 1 | SHELL = bash 2 | 3 | default: test 4 | 5 | .PHONY: test 6 | test: 7 | @echo "--> Running Tests ..." 8 | @go test -v -race ./... 9 | 10 | vet: 11 | @echo "--> Vet Go sources ..." 12 | @go vet ./... 13 | -------------------------------------------------------------------------------- /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/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/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/yaml/yaml_custom.go: -------------------------------------------------------------------------------- 1 | //go:build testify_yaml_custom && !testify_yaml_fail && !testify_yaml_default 2 | // +build testify_yaml_custom,!testify_yaml_fail,!testify_yaml_default 3 | 4 | // Package yaml is an implementation of YAML functions that calls a pluggable implementation. 5 | // 6 | // This implementation is selected with the testify_yaml_custom build tag. 7 | // 8 | // go test -tags testify_yaml_custom 9 | // 10 | // This implementation can be used at build time to replace the default implementation 11 | // to avoid linking with [gopkg.in/yaml.v3]. 12 | // 13 | // In your test package: 14 | // 15 | // import assertYaml "github.com/stretchr/testify/assert/yaml" 16 | // 17 | // func init() { 18 | // assertYaml.Unmarshal = func (in []byte, out interface{}) error { 19 | // // ... 20 | // return nil 21 | // } 22 | // } 23 | package yaml 24 | 25 | var Unmarshal func(in []byte, out interface{}) error 26 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/yaml/yaml_fail.go: -------------------------------------------------------------------------------- 1 | //go:build testify_yaml_fail && !testify_yaml_custom && !testify_yaml_default 2 | // +build testify_yaml_fail,!testify_yaml_custom,!testify_yaml_default 3 | 4 | // Package yaml is an implementation of YAML functions that always fail. 5 | // 6 | // This implementation can be used at build time to replace the default implementation 7 | // to avoid linking with [gopkg.in/yaml.v3]: 8 | // 9 | // go test -tags testify_yaml_fail 10 | package yaml 11 | 12 | import "errors" 13 | 14 | var errNotImplemented = errors.New("YAML functions are not available (see https://pkg.go.dev/github.com/stretchr/testify/assert/yaml)") 15 | 16 | func Unmarshal([]byte, interface{}) error { 17 | return errNotImplemented 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{ replace .Comment "assert." "require."}} 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 | -------------------------------------------------------------------------------- /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/github.com/tklauser/go-sysconf/.cirrus.yml: -------------------------------------------------------------------------------- 1 | env: 2 | CIRRUS_CLONE_DEPTH: 1 3 | GO_VERSION: go1.24.0 4 | 5 | freebsd_13_task: 6 | freebsd_instance: 7 | image_family: freebsd-13-5 8 | install_script: | 9 | pkg install -y go 10 | GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest 11 | bin/${GO_VERSION} download 12 | build_script: bin/${GO_VERSION} build -v ./... 13 | test_script: bin/${GO_VERSION} test -race ./... 14 | 15 | freebsd_14_task: 16 | freebsd_instance: 17 | image_family: freebsd-14-2 18 | install_script: | 19 | pkg install -y go 20 | GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest 21 | bin/${GO_VERSION} download 22 | build_script: bin/${GO_VERSION} build -v ./... 23 | test_script: bin/${GO_VERSION} test -race ./... 24 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Tobias Klauser. 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 sysconf implements the sysconf(3) function and provides the 6 | // associated SC_* constants to query system configuration values. 7 | package sysconf 8 | 9 | import "errors" 10 | 11 | //go:generate go run mksysconf.go 12 | 13 | var errInvalid = errors.New("invalid parameter value") 14 | 15 | // Sysconf returns the value of a sysconf(3) runtime system parameter. 16 | // The name parameter should be a SC_* constant define in this package. The 17 | // implementation is GOOS-specific and certain SC_* constants might not be 18 | // defined for all GOOSes. 19 | func Sysconf(name int) (int64, error) { 20 | return sysconf(name) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Tobias Klauser. 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 || dragonfly || freebsd || netbsd || openbsd 6 | 7 | package sysconf 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | func pathconf(path string, name int) int64 { 12 | if val, err := unix.Pathconf(path, name); err == nil { 13 | return int64(val) 14 | } 15 | return -1 16 | } 17 | 18 | func sysctl32(name string) int64 { 19 | if val, err := unix.SysctlUint32(name); err == nil { 20 | return int64(val) 21 | } 22 | return -1 23 | } 24 | 25 | func sysctl64(name string) int64 { 26 | if val, err := unix.SysctlUint64(name); err == nil { 27 | return int64(val) 28 | } 29 | return -1 30 | } 31 | 32 | func yesno(val int64) int64 { 33 | if val == 0 { 34 | return -1 35 | } 36 | return val 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf_solaris.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 Tobias Klauser. 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 sysconf 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | func sysconf(name int) (int64, error) { 10 | if name < 0 { 11 | return -1, errInvalid 12 | } 13 | return unix.Sysconf(name) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/sysconf_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 Tobias Klauser. 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 && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris 6 | 7 | package sysconf 8 | 9 | import ( 10 | "fmt" 11 | "runtime" 12 | ) 13 | 14 | func sysconf(name int) (int64, error) { 15 | return -1, fmt.Errorf("unsupported on %s", runtime.GOOS) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_386.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && 386 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffff 10 | _SHRT_MAX = 0x7fff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && amd64 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffffffffffff 10 | _SHRT_MAX = 0x7fff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && arm 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffff 10 | _SHRT_MAX = 0x7fff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && arm64 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffffffffffff 10 | _SHRT_MAX = 0x7fff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_freebsd_riscv64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_freebsd.go 3 | 4 | //go:build freebsd && riscv64 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffffffffffff 10 | _SHRT_MAX = 0x7fff 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && 386 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffff 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && amd64 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffffffffffff 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && arm 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffff 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/go-sysconf/zsysconf_values_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 | // cgo -godefs sysconf_values_netbsd.go 3 | 4 | //go:build netbsd && arm64 5 | 6 | package sysconf 7 | 8 | const ( 9 | _LONG_MAX = 0x7fffffffffffffff 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/tklauser/numcpus/.cirrus.yml: -------------------------------------------------------------------------------- 1 | env: 2 | CIRRUS_CLONE_DEPTH: 1 3 | GO_VERSION: go1.24.0 4 | 5 | freebsd_13_task: 6 | freebsd_instance: 7 | image_family: freebsd-13-5 8 | install_script: | 9 | pkg install -y go 10 | GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest 11 | bin/${GO_VERSION} download 12 | build_script: bin/${GO_VERSION} build -v ./... 13 | test_script: bin/${GO_VERSION} test -race ./... 14 | 15 | freebsd_14_task: 16 | freebsd_instance: 17 | image_family: freebsd-14-2 18 | install_script: | 19 | pkg install -y go 20 | GOBIN=$PWD/bin go install golang.org/dl/${GO_VERSION}@latest 21 | bin/${GO_VERSION} download 22 | build_script: bin/${GO_VERSION} build -v ./... 23 | test_script: bin/${GO_VERSION} test -race ./... 24 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/arg.go: -------------------------------------------------------------------------------- 1 | package flags 2 | 3 | import ( 4 | "reflect" 5 | ) 6 | 7 | // Arg represents a positional argument on the command line. 8 | type Arg struct { 9 | // The name of the positional argument (used in the help) 10 | Name string 11 | 12 | // A description of the positional argument (used in the help) 13 | Description string 14 | 15 | // The minimal number of required positional arguments 16 | Required int 17 | 18 | // The maximum number of required positional arguments 19 | RequiredMaximum int 20 | 21 | value reflect.Value 22 | tag multiTag 23 | } 24 | 25 | func (a *Arg) isRemaining() bool { 26 | return a.value.Type().Kind() == reflect.Slice 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/check_crosscompile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | echo '# linux arm7' 6 | GOARM=7 GOARCH=arm GOOS=linux go build 7 | echo '# linux arm5' 8 | GOARM=5 GOARCH=arm GOOS=linux go build 9 | echo '# windows 386' 10 | GOARCH=386 GOOS=windows go build 11 | echo '# windows amd64' 12 | GOARCH=amd64 GOOS=windows go build 13 | echo '# darwin' 14 | GOARCH=amd64 GOOS=darwin go build 15 | echo '# freebsd' 16 | GOARCH=amd64 GOOS=freebsd go build 17 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/termsize.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!plan9,!solaris,!appengine,!wasm 2 | 3 | package flags 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | ) 9 | 10 | type winsize struct { 11 | row, col uint16 12 | xpixel, ypixel uint16 13 | } 14 | 15 | func getTerminalColumns() int { 16 | ws := winsize{} 17 | 18 | if tIOCGWINSZ != 0 { 19 | syscall.Syscall(syscall.SYS_IOCTL, 20 | uintptr(0), 21 | uintptr(tIOCGWINSZ), 22 | uintptr(unsafe.Pointer(&ws))) 23 | 24 | return int(ws.col) 25 | } 26 | 27 | return 80 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/termsize_nosysioctl.go: -------------------------------------------------------------------------------- 1 | // +build plan9 solaris appengine wasm 2 | 3 | package flags 4 | 5 | func getTerminalColumns() int { 6 | return 80 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/tiocgwinsz_bsdish.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd netbsd openbsd 2 | 3 | package flags 4 | 5 | const ( 6 | tIOCGWINSZ = 0x40087468 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/tiocgwinsz_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | 3 | package flags 4 | 5 | const ( 6 | tIOCGWINSZ = 0x5413 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/umputun/go-flags/tiocgwinsz_other.go: -------------------------------------------------------------------------------- 1 | // +build !darwin,!freebsd,!netbsd,!openbsd,!linux 2 | 3 | package flags 4 | 5 | const ( 6 | tIOCGWINSZ = 0 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/pbkdf2/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, build with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/pbkdf2/README.md: -------------------------------------------------------------------------------- 1 | [![Go Reference](https://pkg.go.dev/badge/github.com/xdg-go/pbkdf2.svg)](https://pkg.go.dev/github.com/xdg-go/pbkdf2) 2 | [![Go Report Card](https://goreportcard.com/badge/github.com/xdg-go/pbkdf2)](https://goreportcard.com/report/github.com/xdg-go/pbkdf2) 3 | [![Github Actions](https://github.com/xdg-go/pbkdf2/actions/workflows/test.yml/badge.svg)](https://github.com/xdg-go/pbkdf2/actions/workflows/test.yml) 4 | 5 | # pbkdf2 – Go implementation of PBKDF2 6 | 7 | ## Description 8 | 9 | Package pbkdf2 provides password-based key derivation based on 10 | [RFC 8018](https://tools.ietf.org/html/rfc8018). 11 | 12 | ## Copyright and License 13 | 14 | Copyright 2021 by David A. Golden. All rights reserved. 15 | 16 | Licensed under the Apache License, Version 2.0 (the "License"). You may 17 | obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 18 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/scram/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umputun/sys-agent/d642fac07c0ffbc09f847074d434251df6313c8f/vendor/github.com/xdg-go/scram/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/scram/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.1.2 - 2022-12-07 4 | 5 | - Bump stringprep dependency to v1.0.4 for upstream CVE fix. 6 | 7 | ## v1.1.1 - 2022-03-03 8 | 9 | - Bump stringprep dependency to v1.0.3 for upstream CVE fix. 10 | 11 | ## v1.1.0 - 2022-01-16 12 | 13 | - Add SHA-512 hash generator function for convenience. 14 | 15 | ## v1.0.2 - 2021-03-28 16 | 17 | - Switch PBKDF2 dependency to github.com/xdg-go/pbkdf2 to 18 | minimize transitive dependencies and support Go 1.9+. 19 | 20 | ## v1.0.1 - 2021-03-27 21 | 22 | - Bump stringprep dependency to v1.0.2 for Go 1.11 support. 23 | 24 | ## v1.0.0 - 2021-03-27 25 | 26 | - First release as a Go module 27 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/stringprep/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/umputun/sys-agent/d642fac07c0ffbc09f847074d434251df6313c8f/vendor/github.com/xdg-go/stringprep/.gitignore -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/stringprep/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | 4 | ## [v1.0.4] - 2022-12-07 5 | 6 | ### Maintenance 7 | 8 | - Bump golang.org/x/text to v0.3.8 due to CVE-2022-32149 9 | 10 | 11 | ## [v1.0.3] - 2022-03-01 12 | 13 | ### Maintenance 14 | 15 | - Bump golang.org/x/text to v0.3.7 due to CVE-2021-38561 16 | 17 | 18 | ## [v1.0.2] - 2021-03-27 19 | 20 | ### Maintenance 21 | 22 | - Change minimum Go version to 1.11 23 | 24 | 25 | ## [v1.0.1] - 2021-03-24 26 | 27 | ### Bug Fixes 28 | 29 | - Add go.mod file 30 | 31 | 32 | ## [v1.0.0] - 2018-02-21 33 | 34 | [v1.0.2]: https://github.com/xdg-go/stringprep/releases/tag/v1.0.2 35 | [v1.0.1]: https://github.com/xdg-go/stringprep/releases/tag/v1.0.1 36 | [v1.0.0]: https://github.com/xdg-go/stringprep/releases/tag/v1.0.0 37 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/stringprep/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 by David A. Golden. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package stringprep provides data tables and algorithms for RFC-3454, 8 | // including errata (as of 2018-02). It also provides a profile for 9 | // SASLprep as defined in RFC-4013. 10 | package stringprep 11 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/stringprep/error.go: -------------------------------------------------------------------------------- 1 | package stringprep 2 | 3 | import "fmt" 4 | 5 | // Error describes problems encountered during stringprep, including what rune 6 | // was problematic. 7 | type Error struct { 8 | Msg string 9 | Rune rune 10 | } 11 | 12 | func (e Error) Error() string { 13 | return fmt.Sprintf("%s (rune: '\\u%04x')", e.Msg, e.Rune) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/xdg-go/stringprep/map.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 by David A. Golden. All rights reserved. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package stringprep 8 | 9 | // Mapping represents a stringprep mapping, from a single rune to zero or more 10 | // runes. 11 | type Mapping map[rune][]rune 12 | 13 | // Map maps a rune to a (possibly empty) rune slice via a stringprep Mapping. 14 | // The ok return value is false if the rune was not found. 15 | func (m Mapping) Map(r rune) (replacement []rune, ok bool) { 16 | rs, ok := m[r] 17 | if !ok { 18 | return nil, false 19 | } 20 | return rs, true 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/youmark/pkcs8/.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 | -------------------------------------------------------------------------------- /vendor/github.com/youmark/pkcs8/README: -------------------------------------------------------------------------------- 1 | pkcs8 package: implement PKCS#8 private key parsing and conversion as defined in RFC5208 and RFC5958 2 | -------------------------------------------------------------------------------- /vendor/github.com/youmark/pkcs8/cipher_3des.go: -------------------------------------------------------------------------------- 1 | package pkcs8 2 | 3 | import ( 4 | "crypto/des" 5 | "encoding/asn1" 6 | ) 7 | 8 | var ( 9 | oidDESEDE3CBC = asn1.ObjectIdentifier{1, 2, 840, 113549, 3, 7} 10 | ) 11 | 12 | func init() { 13 | RegisterCipher(oidDESEDE3CBC, func() Cipher { 14 | return TripleDESCBC 15 | }) 16 | } 17 | 18 | // TripleDESCBC is the 168-bit key 3DES cipher in CBC mode. 19 | var TripleDESCBC = cipherWithBlock{ 20 | ivSize: des.BlockSize, 21 | keySize: 24, 22 | newBlock: des.NewTripleDESCipher, 23 | oid: oidDESEDE3CBC, 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/yusufpapurcu/wmi/README.md: -------------------------------------------------------------------------------- 1 | wmi 2 | === 3 | 4 | Package wmi provides a WQL interface to Windows WMI. 5 | 6 | Note: It interfaces with WMI on the local machine, therefore it only runs on Windows. 7 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/proxy.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package bsoncodec 8 | 9 | // Proxy is an interface implemented by types that cannot themselves be directly encoded. Types 10 | // that implement this interface with have ProxyBSON called during the encoding process and that 11 | // value will be encoded in place for the implementer. 12 | type Proxy interface { 13 | ProxyBSON() (interface{}, error) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2022-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package bsonoptions defines the optional configurations for the BSON codecs. 8 | package bsonoptions 9 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/bson/bsonrw/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package bsonrw contains abstractions for reading and writing 8 | // BSON and BSON like types from sources. 9 | package bsonrw // import "go.mongodb.org/mongo-driver/bson/bsonrw" 10 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/internal/handshake/handshake.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package handshake 8 | 9 | // LegacyHello is the legacy version of the hello command. 10 | var LegacyHello = "isMaster" 11 | 12 | // LegacyHelloLowercase is the lowercase, legacy version of the hello command. 13 | var LegacyHelloLowercase = "ismaster" 14 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/description/description.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package description contains types and functions for describing the state of MongoDB clusters. 8 | package description // import "go.mongodb.org/mongo-driver/mongo/description" 9 | 10 | // Unknown is an unknown server or topology kind. 11 | const Unknown = 0 12 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/options/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2022-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package options defines the optional configurations for the MongoDB Go Driver. 8 | package options 9 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/mongo/util.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package mongo 8 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/version/version.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // DO NOT EDIT. Code generated by Github action 8 | // "mongodb-labs/drivers-github-tools/golang/pre-publish". 9 | 10 | // Package version defines the Go Driver version. 11 | package version 12 | 13 | // Driver is the current version of the driver. 14 | var Driver = "1.17.3" 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/cred.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package auth 8 | 9 | import ( 10 | "go.mongodb.org/mongo-driver/x/mongo/driver" 11 | ) 12 | 13 | // Cred is the type of user credential 14 | type Cred = driver.Cred 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/creds/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2024-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package creds is intended for internal use only. It is made available to 8 | // facilitate use cases that require access to internal MongoDB driver 9 | // functionality and state. The API of this package is not stable and there is 10 | // no backward compatibility guarantee. 11 | // 12 | // WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT 13 | // NOTICE! USE WITH EXTREME CAUTION! 14 | package creds 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package auth is intended for internal use only. It is made available to 8 | // facilitate use cases that require access to internal MongoDB driver 9 | // functionality and state. The API of this package is not stable and there is 10 | // no backward compatibility guarantee. 11 | // 12 | // WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT 13 | // NOTICE! USE WITH EXTREME CAUTION! 14 | package auth 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_enabled.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | //go:build !gssapi 8 | // +build !gssapi 9 | 10 | package auth 11 | 12 | import "net/http" 13 | 14 | // GSSAPI is the mechanism name for GSSAPI. 15 | const GSSAPI = "GSSAPI" 16 | 17 | func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { 18 | return nil, newAuthError("GSSAPI support not enabled during build (-tags gssapi)", nil) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/auth/gssapi_not_supported.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | //go:build gssapi && !windows && !linux && !darwin 8 | // +build gssapi,!windows,!linux,!darwin 9 | 10 | package auth 11 | 12 | import ( 13 | "fmt" 14 | "net/http" 15 | "runtime" 16 | ) 17 | 18 | // GSSAPI is the mechanism name for GSSAPI. 19 | const GSSAPI = "GSSAPI" 20 | 21 | func newGSSAPIAuthenticator(*Cred, *http.Client) (Authenticator, error) { 22 | return nil, newAuthError(fmt.Sprintf("GSSAPI is not supported on %s", runtime.GOOS), nil) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2022-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package driver 8 | 9 | // LegacyOperationKind indicates if an operation is a legacy find, getMore, or killCursors. This is used 10 | // in Operation.Execute, which will create legacy OP_QUERY, OP_GET_MORE, or OP_KILL_CURSORS instead 11 | // of sending them as a command. 12 | type LegacyOperationKind uint 13 | 14 | // These constants represent the three different kinds of legacy operations. 15 | const ( 16 | LegacyNone LegacyOperationKind = iota 17 | LegacyFind 18 | LegacyGetMore 19 | LegacyKillCursors 20 | LegacyListCollections 21 | LegacyListIndexes 22 | LegacyHandshake 23 | ) 24 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/errors_not_enabled.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | //go:build !cse 8 | // +build !cse 9 | 10 | package mongocrypt 11 | 12 | // Error represents an error from an operation on a MongoCrypt instance. 13 | type Error struct { 14 | Code int32 15 | Message string 16 | } 17 | 18 | // Error implements the error interface 19 | func (Error) Error() string { 20 | panic(cseNotSupportedMsg) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/mongocrypt/options/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2024-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package options is intended for internal use only. It is made available to 8 | // facilitate use cases that require access to internal MongoDB driver 9 | // functionality and state. The API of this package is not stable and there is 10 | // no backward compatibility guarantee. 11 | // 12 | // WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT 13 | // NOTICE! USE WITH EXTREME CAUTION! 14 | package options 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/ocsp/options.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package ocsp 8 | 9 | import "net/http" 10 | 11 | // VerifyOptions specifies options to configure OCSP verification. 12 | type VerifyOptions struct { 13 | Cache Cache 14 | DisableEndpointChecking bool 15 | HTTPClient *http.Client 16 | } 17 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2024-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package operation is intended for internal use only. It is made available to 8 | // facilitate use cases that require access to internal MongoDB driver 9 | // functionality and state. The API of this package is not stable and there is 10 | // no backward compatibility guarantee. 11 | // 12 | // WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT 13 | // NOTICE! USE WITH EXTREME CAUTION! 14 | package operation 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/operation/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package operation 8 | 9 | import "errors" 10 | 11 | var ( 12 | errUnacknowledgedHint = errors.New("the 'hint' command parameter cannot be used with unacknowledged writes") 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/session/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2024-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | // Package session is intended for internal use only. It is made available to 8 | // facilitate use cases that require access to internal MongoDB driver 9 | // functionality and state. The API of this package is not stable and there is 10 | // no backward compatibility guarantee. 11 | // 12 | // WARNING: THIS PACKAGE IS EXPERIMENTAL AND MAY BE MODIFIED OR REMOVED WITHOUT 13 | // NOTICE! USE WITH EXTREME CAUTION! 14 | package session 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/cancellation_listener.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2017-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package topology 8 | 9 | import "context" 10 | 11 | type cancellationListener interface { 12 | Listen(context.Context, func()) 13 | StopListening() bool 14 | } 15 | -------------------------------------------------------------------------------- /vendor/go.mongodb.org/mongo-driver/x/mongo/driver/topology/connection_legacy.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) MongoDB, Inc. 2022-present. 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 | 7 | package topology 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/argon2/blamka_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 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 || purego || !gc 6 | 7 | package argon2 8 | 9 | func processBlock(out, in1, in2 *block) { 10 | processBlockGeneric(out, in1, in2, false) 11 | } 12 | 13 | func processBlockXOR(out, in1, in2 *block) { 14 | processBlockGeneric(out, in1, in2, true) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/bcrypt/base64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 bcrypt 6 | 7 | import "encoding/base64" 8 | 9 | const alphabet = "./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" 10 | 11 | var bcEncoding = base64.NewEncoding(alphabet) 12 | 13 | func base64Encode(src []byte) []byte { 14 | n := bcEncoding.EncodedLen(len(src)) 15 | dst := make([]byte, n) 16 | bcEncoding.Encode(dst, src) 17 | for dst[n-1] == '=' { 18 | n-- 19 | } 20 | return dst[:n] 21 | } 22 | 23 | func base64Decode(src []byte) ([]byte, error) { 24 | numOfEquals := 4 - (len(src) % 4) 25 | for i := 0; i < numOfEquals; i++ { 26 | src = append(src, '=') 27 | } 28 | 29 | dst := make([]byte, bcEncoding.DecodedLen(len(src))) 30 | n, err := bcEncoding.Decode(dst, src) 31 | if err != nil { 32 | return nil, err 33 | } 34 | return dst[:n], nil 35 | } 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.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 || purego || !gc 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/register.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 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 blake2b 6 | 7 | import ( 8 | "crypto" 9 | "hash" 10 | ) 11 | 12 | func init() { 13 | newHash256 := func() hash.Hash { 14 | h, _ := New256(nil) 15 | return h 16 | } 17 | newHash384 := func() hash.Hash { 18 | h, _ := New384(nil) 19 | return h 20 | } 21 | 22 | newHash512 := func() hash.Hash { 23 | h, _ := New512(nil) 24 | return h 25 | } 26 | 27 | crypto.RegisterHash(crypto.BLAKE2b_256, newHash256) 28 | crypto.RegisterHash(crypto.BLAKE2b_384, newHash384) 29 | crypto.RegisterHash(crypto.BLAKE2b_512, newHash512) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 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 gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 && amd64 && gc 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_sysctl(SB) 11 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 12 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 13 | 14 | TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0 15 | JMP libc_sysctlbyname(SB) 16 | GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8 17 | DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_aix.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 aix 6 | 7 | package cpu 8 | 9 | const ( 10 | // getsystemcfg constants 11 | _SC_IMPL = 2 12 | _IMPL_POWER8 = 0x10000 13 | _IMPL_POWER9 = 0x20000 14 | ) 15 | 16 | func archInit() { 17 | impl := getsystemcfg(_SC_IMPL) 18 | if impl&_IMPL_POWER8 != 0 { 19 | PPC64.IsPOWER8 = true 20 | } 21 | if impl&_IMPL_POWER9 != 0 { 22 | PPC64.IsPOWER8 = true 23 | PPC64.IsPOWER9 = true 24 | } 25 | 26 | Initialized = true 27 | } 28 | 29 | func getsystemcfg(label int) (n uint64) { 30 | r0, _ := callgetsystemcfg(label) 31 | n = uint64(r0) 32 | return 33 | } 34 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_s390x.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 | 7 | package cpu 8 | 9 | // haveAsmFunctions reports whether the other functions in this file can 10 | // be safely called. 11 | func haveAsmFunctions() bool { return true } 12 | 13 | // The following feature detection functions are defined in cpu_s390x.s. 14 | // They are likely to be expensive to call so the results should be cached. 15 | func stfle() facilityList 16 | func kmQuery() queryResult 17 | func kmcQuery() queryResult 18 | func kmctrQuery() queryResult 19 | func kmaQuery() queryResult 20 | func kimdQuery() queryResult 21 | func klmdQuery() queryResult 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.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) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_gc_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_gc_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.s: -------------------------------------------------------------------------------- 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) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 10 | TEXT ·cpuid(SB), NOSPLIT, $0-24 11 | MOVL eaxArg+0(FP), AX 12 | MOVL ecxArg+4(FP), CX 13 | CPUID 14 | MOVL AX, eax+8(FP) 15 | MOVL BX, ebx+12(FP) 16 | MOVL CX, ecx+16(FP) 17 | MOVL DX, edx+20(FP) 18 | RET 19 | 20 | // func xgetbv() (eax, edx uint32) 21 | TEXT ·xgetbv(SB), NOSPLIT, $0-8 22 | MOVL $0, CX 23 | XGETBV 24 | MOVL AX, eax+0(FP) 25 | MOVL DX, edx+4(FP) 26 | RET 27 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.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) && gccgo 6 | 7 | package cpu 8 | 9 | //extern gccgoGetCpuidCount 10 | func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32) 11 | 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) { 13 | var a, b, c, d uint32 14 | gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d) 15 | return a, b, c, d 16 | } 17 | 18 | //extern gccgoXgetbv 19 | func gccgoXgetbv(eax, edx *uint32) 20 | 21 | func xgetbv() (eax, edx uint32) { 22 | var a, d uint32 23 | gccgoXgetbv(&a, &d) 24 | return a, d 25 | } 26 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_loong64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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 | // HWCAP bits. These are exposed by the Linux kernel. 8 | const ( 9 | hwcap_LOONGARCH_LSX = 1 << 4 10 | hwcap_LOONGARCH_LASX = 1 << 5 11 | ) 12 | 13 | func doinit() { 14 | // TODO: Features that require kernel support like LSX and LASX can 15 | // be detected here once needed in std library or by the compiler. 16 | Loong64.HasLSX = hwcIsSet(hwCap, hwcap_LOONGARCH_LSX) 17 | Loong64.HasLASX = hwcIsSet(hwCap, hwcap_LOONGARCH_LASX) 18 | } 19 | 20 | func hwcIsSet(hwc uint, val uint) bool { 21 | return hwc&val != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_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 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /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 && !loong64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x && !riscv64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.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 linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | // HWCAP/HWCAP2 bits. These are exposed by the kernel. 10 | const ( 11 | // ISA Level 12 | _PPC_FEATURE2_ARCH_2_07 = 0x80000000 13 | _PPC_FEATURE2_ARCH_3_00 = 0x00800000 14 | 15 | // CPU features 16 | _PPC_FEATURE2_DARN = 0x00200000 17 | _PPC_FEATURE2_SCV = 0x00100000 18 | ) 19 | 20 | func doinit() { 21 | // HWCAP2 feature bits 22 | PPC64.IsPOWER8 = isSet(hwCap2, _PPC_FEATURE2_ARCH_2_07) 23 | PPC64.IsPOWER9 = isSet(hwCap2, _PPC_FEATURE2_ARCH_3_00) 24 | PPC64.HasDARN = isSet(hwCap2, _PPC_FEATURE2_DARN) 25 | PPC64.HasSCV = isSet(hwCap2, _PPC_FEATURE2_SCV) 26 | } 27 | 28 | func isSet(hwc uint, value uint) bool { 29 | return hwc&value != 0 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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 | #include "textflag.h" 6 | 7 | // func get_cpucfg(reg uint32) uint32 8 | TEXT ·get_cpucfg(SB), NOSPLIT|NOFRAME, $0 9 | MOVW reg+0(FP), R5 10 | // CPUCFG R5, R4 = 0x00006ca4 11 | WORD $0x00006ca4 12 | MOVW R4, ret+8(FP) 13 | RET 14 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /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 && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_x86.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 || amd64p32 || (amd64 && (!darwin || !gc)) 6 | 7 | package cpu 8 | 9 | func darwinSupportsAVX512() bool { 10 | panic("only implemented for gc && amd64 && darwin") 11 | } 12 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /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 | 7 | package cpu 8 | 9 | const cacheLineSize = 64 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "fastmisaligned", Feature: &RISCV64.HasFastMisaligned}, 14 | {Name: "c", Feature: &RISCV64.HasC}, 15 | {Name: "v", Feature: &RISCV64.HasV}, 16 | {Name: "zba", Feature: &RISCV64.HasZba}, 17 | {Name: "zbb", Feature: &RISCV64.HasZbb}, 18 | {Name: "zbs", Feature: &RISCV64.HasZbs}, 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.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 wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos_s390x.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 initS390Xbase() { 8 | // get the facilities list 9 | facilities := stfle() 10 | 11 | // mandatory 12 | S390X.HasZARCH = facilities.Has(zarch) 13 | S390X.HasSTFLE = facilities.Has(stflef) 14 | S390X.HasLDISP = facilities.Has(ldisp) 15 | S390X.HasEIMM = facilities.Has(eimm) 16 | 17 | // optional 18 | S390X.HasETF3EH = facilities.Has(etf3eh) 19 | S390X.HasDFP = facilities.Has(dfp) 20 | S390X.HasMSA = facilities.Has(msa) 21 | S390X.HasVX = facilities.Has(vx) 22 | if S390X.HasVX { 23 | S390X.HasVXE = facilities.Has(vxe) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.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 | // Recreate a getsystemcfg syscall handler instead of 6 | // using the one provided by x/sys/unix to avoid having 7 | // the dependency between them. (See golang.org/issue/32102) 8 | // Moreover, this file will be used during the building of 9 | // gccgo's libgo and thus must not used a CGo method. 10 | 11 | //go:build aix && gccgo 12 | 13 | package cpu 14 | 15 | import ( 16 | "syscall" 17 | ) 18 | 19 | //extern getsystemcfg 20 | func gccgoGetsystemcfg(label uint32) (r uint64) 21 | 22 | func callgetsystemcfg(label int) (r1 uintptr, e1 syscall.Errno) { 23 | r1 = uintptr(gccgoGetsystemcfg(uint32(label))) 24 | e1 = syscall.GetErrno() 25 | return 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 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 gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 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 (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for 386 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 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 (darwin || dragonfly || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for AMD64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 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 (freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | B syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | B syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | B syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 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 (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ppc64, BSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 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 (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // System call support for RISCV64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.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 gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for mips64, OpenBSD 11 | // 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/auxv_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2025 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.21 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Auxv() ([][2]uintptr, error) { 12 | return nil, syscall.ENOTSUP 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.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 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.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 aix && ppc 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used by AIX. 9 | 10 | package unix 11 | 12 | // Major returns the major component of a Linux device number. 13 | func Major(dev uint64) uint32 { 14 | return uint32((dev >> 16) & 0xffff) 15 | } 16 | 17 | // Minor returns the minor component of a Linux device number. 18 | func Minor(dev uint64) uint32 { 19 | return uint32(dev & 0xffff) 20 | } 21 | 22 | // Mkdev returns a Linux device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | return uint64(((major) << 16) | (minor)) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc64.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 aix && ppc64 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used AIX. 9 | 10 | package unix 11 | 12 | // Major returns the major component of a Linux device number. 13 | func Major(dev uint64) uint32 { 14 | return uint32((dev & 0x3fffffff00000000) >> 32) 15 | } 16 | 17 | // Minor returns the minor component of a Linux device number. 18 | func Minor(dev uint64) uint32 { 19 | return uint32((dev & 0x00000000ffffffff) >> 0) 20 | } 21 | 22 | // Mkdev returns a Linux device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | var DEVNO64 uint64 26 | DEVNO64 = 0x8000000000000000 27 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 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 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_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 | //go:build zos && s390x 6 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used by z/OS. 9 | // 10 | // The information below is extracted and adapted from macros. 11 | 12 | package unix 13 | 14 | // Major returns the major component of a z/OS device number. 15 | func Major(dev uint64) uint32 { 16 | return uint32((dev >> 16) & 0x0000FFFF) 17 | } 18 | 19 | // Minor returns the minor component of a z/OS device number. 20 | func Minor(dev uint64) uint32 { 21 | return uint32(dev & 0x0000FFFF) 22 | } 23 | 24 | // Mkdev returns a z/OS device number generated from the given major and minor 25 | // components. 26 | func Mkdev(major, minor uint32) uint64 { 27 | return (uint64(major) << 16) | uint64(minor) 28 | } 29 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.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 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 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 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.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 unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 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 && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fdset.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 aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | // Set adds fd to the set fds. 10 | func (fds *FdSet) Set(fd int) { 11 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 12 | } 13 | 14 | // Clear removes fd from the set fds. 15 | func (fds *FdSet) Clear(fd int) { 16 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 17 | } 18 | 19 | // IsSet returns whether fd is in the set fds. 20 | func (fds *FdSet) IsSet(fd int) bool { 21 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 22 | } 23 | 24 | // Zero clears the set fds. 25 | func (fds *FdSet) Zero() { 26 | for i := range fds.Bits { 27 | fds.Bits[i] = 0 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.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 gccgo && linux && amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 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 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 && race) || (linux && race) || (freebsd && race) 6 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.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 aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.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 darwin || zos 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.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 unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 hurd 6 | 7 | package unix 8 | 9 | /* 10 | #include 11 | int ioctl(int, unsigned long int, uintptr_t); 12 | */ 13 | import "C" 14 | import "unsafe" 15 | 16 | func ioctl(fd int, req uint, arg uintptr) (err error) { 17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 18 | if r0 == -1 && er != nil { 19 | err = er 20 | } 21 | return 22 | } 23 | 24 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { 25 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg))) 26 | if r0 == -1 && er != nil { 27 | err = er 28 | } 29 | return 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 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 && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.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 linux && gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.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 linux && gc && 386 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.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 arm && gc && linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.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 linux && gccgo && arm 6 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.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 amd64 && solaris 6 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_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 (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.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 linux && (ppc64le || ppc64) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 12 | return syscall.Syscall(trap, a1, a2, a3) 13 | } 14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 15 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 16 | } 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 18 | return syscall.RawSyscall(trap, a1, a2, a3) 19 | } 20 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 21 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 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 linux 6 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 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 (darwin && !ios) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 && go1.24 6 | 7 | package unix 8 | 9 | import _ "unsafe" 10 | 11 | //go:linkname vgetrandom runtime.vgetrandom 12 | //go:noescape 13 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/vgetrandom_unsupported.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 || !go1.24 6 | 7 | package unix 8 | 9 | func vgetrandom(p []byte, flags uint32) (ret int, supported bool) { 10 | return -1, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 | } 18 | -------------------------------------------------------------------------------- /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 6 | 7 | package windows 8 | 9 | import "syscall" 10 | 11 | type Errno = syscall.Errno 12 | type SysProcAttr = syscall.SysProcAttr 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 6 | 7 | package windows 8 | 9 | const ( 10 | EVENTLOG_SUCCESS = 0 11 | EVENTLOG_ERROR_TYPE = 1 12 | EVENTLOG_WARNING_TYPE = 2 13 | EVENTLOG_INFORMATION_TYPE = 4 14 | EVENTLOG_AUDIT_SUCCESS = 8 15 | EVENTLOG_AUDIT_FAILURE = 16 16 | ) 17 | 18 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 19 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 20 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 21 | -------------------------------------------------------------------------------- /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 | 7 | package windows 8 | 9 | //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 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 && race 6 | 7 | package windows 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 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 && !race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /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 | 7 | package registry 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.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 windows 6 | 7 | package windows 8 | 9 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 10 | if val < 0 { 11 | return "-" + itoa(-val) 12 | } 13 | var buf [32]byte // big enough for int64 14 | i := len(buf) - 1 15 | for val >= 10 { 16 | buf[i] = byte(val%10 + '0') 17 | i-- 18 | val /= 10 19 | } 20 | buf[i] = byte(val + '0') 21 | return string(buf[i:]) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 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 windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | --------------------------------------------------------------------------------