The response has been limited to 50k tokens of the smallest files in the repo. You can remove this limitation by removing the max tokens filter.
├── .github
    └── workflows
    │   ├── docker-image.yml
    │   ├── main.yml
    │   └── release.yml
├── .gitignore
├── Dockerfile
├── DockerfileForGitAction
├── LICENSE
├── Makefile
├── README-en.md
├── README.md
├── SECURITY.md
├── auth.py
├── benchmark.py
├── build.sh
├── cmd
    ├── doc
    │   └── cmd.go
    ├── server
    │   └── cmd.go
    └── version
    │   └── cmd.go
├── control
├── doc
    ├── api.md
    ├── authentication.png
    ├── authentication2.png
    ├── benchmark_test.go
    ├── coverage.html
    ├── dfsclient.go
    ├── download.png
    ├── go-fastdfs-deploy.png
    ├── logo.png
    ├── pay.png
    ├── test_leveldb.go
    ├── upload.md
    ├── upload.png
    └── wechat.jpg
├── docker-compose
    ├── Dockerfile
    ├── docker-compose.yml
    ├── fastdfs-web
    │   ├── Dockerfile
    │   ├── db
    │   │   └── go-fastdfs.db
    │   ├── go-fastdfs-web.jar
    │   └── logs
    │   │   └── go-fastdfs-web.log
    ├── nginx
    │   └── nginx.conf
    ├── start.sh
    └── static
    │   ├── report.html
    │   └── uppy.html
├── gen_file.py
├── go.mod
├── go.sum
├── gofastdfs.service
├── main.go
├── nginx
    ├── README.md
    ├── gofastdfs-big-cluster.conf
    ├── gofastdfs-cluster.conf
    └── gofastdfs.conf
├── server
    ├── config.go
    ├── error.go
    ├── fileserver.go
    ├── fileserver_test.go
    ├── handler.go
    ├── http_auth.go
    ├── http_backup.go
    ├── http_download.go
    ├── http_google.go
    ├── http_header.go
    ├── http_img_resize.go
    ├── http_info.go
    ├── http_reload.go
    ├── http_remove.go
    ├── http_repair.go
    ├── http_upload.go
    ├── init.go
    ├── mail.go
    ├── router.go
    ├── server.go
    ├── store.go
    └── version.go
├── static
    ├── css
    │   ├── file.css
    │   ├── main.css
    │   └── uppy.min.css
    ├── dashbord.html
    ├── images
    │   ├── aiwrap.png
    │   ├── bg.png
    │   └── head.jpg
    ├── js
    │   ├── echarts.min.js
    │   ├── file.js
    │   ├── jquery.min.js
    │   ├── kit.js
    │   ├── main.js
    │   ├── upload.js
    │   └── uppy.min.js
    ├── plugins
    │   ├── echarts
    │   │   └── echarts.common.min.js
    │   ├── font-awesome
    │   │   ├── css
    │   │   │   ├── font-awesome.css
    │   │   │   └── font-awesome.min.css
    │   │   └── fonts
    │   │   │   ├── FontAwesome.otf
    │   │   │   ├── fontawesome-webfont.eot
    │   │   │   ├── fontawesome-webfont.svg
    │   │   │   ├── fontawesome-webfont.ttf
    │   │   │   ├── fontawesome-webfont.woff
    │   │   │   └── fontawesome-webfont.woff2
    │   ├── iconfont
    │   │   ├── demo.css
    │   │   ├── demo_index.html
    │   │   ├── iconfont.css
    │   │   ├── iconfont.eot
    │   │   ├── iconfont.js
    │   │   ├── iconfont.svg
    │   │   ├── iconfont.ttf
    │   │   ├── iconfont.woff
    │   │   └── iconfont.woff2
    │   ├── layer
    │   │   ├── layer.js
    │   │   ├── mobile
    │   │   │   ├── layer.js
    │   │   │   └── need
    │   │   │   │   └── layer.css
    │   │   └── theme
    │   │   │   └── default
    │   │   │       ├── icon-ext.png
    │   │   │       ├── icon.png
    │   │   │       ├── layer.css
    │   │   │       ├── loading-0.gif
    │   │   │       ├── loading-1.gif
    │   │   │       └── loading-2.gif
    │   └── layui
    │   │   ├── css
    │   │       ├── layui.css
    │   │       ├── layui.mobile.css
    │   │       └── modules
    │   │       │   ├── code.css
    │   │       │   ├── laydate
    │   │       │       └── default
    │   │       │       │   └── laydate.css
    │   │       │   └── layer
    │   │       │       └── default
    │   │       │           ├── icon-ext.png
    │   │       │           ├── icon.png
    │   │       │           ├── layer.css
    │   │       │           ├── loading-0.gif
    │   │       │           ├── loading-1.gif
    │   │       │           └── loading-2.gif
    │   │   ├── font
    │   │       ├── iconfont.eot
    │   │       ├── iconfont.svg
    │   │       ├── iconfont.ttf
    │   │       └── iconfont.woff
    │   │   ├── images
    │   │       └── face
    │   │       │   ├── 0.gif
    │   │       │   ├── 1.gif
    │   │       │   ├── 10.gif
    │   │       │   ├── 11.gif
    │   │       │   ├── 12.gif
    │   │       │   ├── 13.gif
    │   │       │   ├── 14.gif
    │   │       │   ├── 15.gif
    │   │       │   ├── 16.gif
    │   │       │   ├── 17.gif
    │   │       │   ├── 18.gif
    │   │       │   ├── 19.gif
    │   │       │   ├── 2.gif
    │   │       │   ├── 20.gif
    │   │       │   ├── 21.gif
    │   │       │   ├── 22.gif
    │   │       │   ├── 23.gif
    │   │       │   ├── 24.gif
    │   │       │   ├── 25.gif
    │   │       │   ├── 26.gif
    │   │       │   ├── 27.gif
    │   │       │   ├── 28.gif
    │   │       │   ├── 29.gif
    │   │       │   ├── 3.gif
    │   │       │   ├── 30.gif
    │   │       │   ├── 31.gif
    │   │       │   ├── 32.gif
    │   │       │   ├── 33.gif
    │   │       │   ├── 34.gif
    │   │       │   ├── 35.gif
    │   │       │   ├── 36.gif
    │   │       │   ├── 37.gif
    │   │       │   ├── 38.gif
    │   │       │   ├── 39.gif
    │   │       │   ├── 4.gif
    │   │       │   ├── 40.gif
    │   │       │   ├── 41.gif
    │   │       │   ├── 42.gif
    │   │       │   ├── 43.gif
    │   │       │   ├── 44.gif
    │   │       │   ├── 45.gif
    │   │       │   ├── 46.gif
    │   │       │   ├── 47.gif
    │   │       │   ├── 48.gif
    │   │       │   ├── 49.gif
    │   │       │   ├── 5.gif
    │   │       │   ├── 50.gif
    │   │       │   ├── 51.gif
    │   │       │   ├── 52.gif
    │   │       │   ├── 53.gif
    │   │       │   ├── 54.gif
    │   │       │   ├── 55.gif
    │   │       │   ├── 56.gif
    │   │       │   ├── 57.gif
    │   │       │   ├── 58.gif
    │   │       │   ├── 59.gif
    │   │       │   ├── 6.gif
    │   │       │   ├── 60.gif
    │   │       │   ├── 61.gif
    │   │       │   ├── 62.gif
    │   │       │   ├── 63.gif
    │   │       │   ├── 64.gif
    │   │       │   ├── 65.gif
    │   │       │   ├── 66.gif
    │   │       │   ├── 67.gif
    │   │       │   ├── 68.gif
    │   │       │   ├── 69.gif
    │   │       │   ├── 7.gif
    │   │       │   ├── 70.gif
    │   │       │   ├── 71.gif
    │   │       │   ├── 8.gif
    │   │       │   └── 9.gif
    │   │   ├── lay
    │   │       └── modules
    │   │       │   ├── carousel.js
    │   │       │   ├── code.js
    │   │       │   ├── colorpicker.js
    │   │       │   ├── element.js
    │   │       │   ├── flow.js
    │   │       │   ├── form.js
    │   │       │   ├── jquery.js
    │   │       │   ├── laydate.js
    │   │       │   ├── layedit.js
    │   │       │   ├── layer.js
    │   │       │   ├── laypage.js
    │   │       │   ├── laytpl.js
    │   │       │   ├── mobile.js
    │   │       │   ├── rate.js
    │   │       │   ├── slider.js
    │   │       │   ├── table.js
    │   │       │   ├── tree.js
    │   │       │   ├── upload.js
    │   │       │   └── util.js
    │   │   ├── layui.all.js
    │   │   └── layui.js
    ├── report.html
    └── uppy.html
└── vendor
    ├── github.com
        ├── astaxie
        │   └── beego
        │   │   ├── LICENSE
        │   │   └── httplib
        │   │       ├── README.md
        │   │       └── httplib.go
        ├── bmizerany
        │   └── pat
        │   │   ├── .gitignore
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   └── mux.go
        ├── cihub
        │   └── seelog
        │   │   ├── LICENSE.txt
        │   │   └── archive
        │   │       ├── archive.go
        │   │       ├── gzip
        │   │           └── gzip.go
        │   │       ├── tar
        │   │           └── tar.go
        │   │       └── zip
        │   │           └── zip.go
        ├── deckarep
        │   └── golang-set
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── iterator.go
        │   │   ├── set.go
        │   │   ├── threadsafe.go
        │   │   └── threadunsafe.go
        ├── eventials
        │   └── go-tus
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── Dockerfile
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── client.go
        │   │   ├── config.go
        │   │   ├── doc.go
        │   │   ├── docker-compose.yml
        │   │   ├── errors.go
        │   │   ├── store.go
        │   │   ├── upload.go
        │   │   └── uploader.go
        ├── go-ole
        │   └── go-ole
        │   │   ├── .travis.yml
        │   │   ├── ChangeLog.md
        │   │   ├── LICENSE
        │   │   ├── README.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
        ├── golang
        │   └── snappy
        │   │   ├── .gitignore
        │   │   ├── AUTHORS
        │   │   ├── CONTRIBUTORS
        │   │   ├── LICENSE
        │   │   ├── README
        │   │   ├── decode.go
        │   │   ├── decode_amd64.go
        │   │   ├── decode_amd64.s
        │   │   ├── decode_other.go
        │   │   ├── encode.go
        │   │   ├── encode_amd64.go
        │   │   ├── encode_amd64.s
        │   │   ├── encode_other.go
        │   │   └── snappy.go
        ├── inconshreveable
        │   └── mousetrap
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── trap_others.go
        │   │   ├── trap_windows.go
        │   │   └── trap_windows_1.4.go
        ├── json-iterator
        │   └── go
        │   │   ├── .codecov.yml
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── Gopkg.lock
        │   │   ├── Gopkg.toml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── adapter.go
        │   │   ├── any.go
        │   │   ├── any_array.go
        │   │   ├── any_bool.go
        │   │   ├── any_float.go
        │   │   ├── any_int32.go
        │   │   ├── any_int64.go
        │   │   ├── any_invalid.go
        │   │   ├── any_nil.go
        │   │   ├── any_number.go
        │   │   ├── any_object.go
        │   │   ├── any_str.go
        │   │   ├── any_uint32.go
        │   │   ├── any_uint64.go
        │   │   ├── build.sh
        │   │   ├── config.go
        │   │   ├── fuzzy_mode_convert_table.md
        │   │   ├── iter.go
        │   │   ├── iter_array.go
        │   │   ├── iter_float.go
        │   │   ├── iter_int.go
        │   │   ├── iter_object.go
        │   │   ├── iter_skip.go
        │   │   ├── iter_skip_sloppy.go
        │   │   ├── iter_skip_strict.go
        │   │   ├── iter_str.go
        │   │   ├── jsoniter.go
        │   │   ├── pool.go
        │   │   ├── reflect.go
        │   │   ├── reflect_array.go
        │   │   ├── reflect_dynamic.go
        │   │   ├── reflect_extension.go
        │   │   ├── reflect_json_number.go
        │   │   ├── reflect_json_raw_message.go
        │   │   ├── reflect_map.go
        │   │   ├── reflect_marshaler.go
        │   │   ├── reflect_native.go
        │   │   ├── reflect_optional.go
        │   │   ├── reflect_slice.go
        │   │   ├── reflect_struct_decoder.go
        │   │   ├── reflect_struct_encoder.go
        │   │   ├── stream.go
        │   │   ├── stream_float.go
        │   │   ├── stream_int.go
        │   │   ├── stream_str.go
        │   │   └── test.sh
        ├── lufia
        │   └── plan9stats
        │   │   ├── .gitignore
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── cpu.go
        │   │   ├── doc.go
        │   │   ├── host.go
        │   │   ├── int.go
        │   │   ├── opts.go
        │   │   └── stats.go
        ├── modern-go
        │   ├── concurrent
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── executor.go
        │   │   ├── go_above_19.go
        │   │   ├── go_below_19.go
        │   │   ├── log.go
        │   │   ├── test.sh
        │   │   └── unbounded_executor.go
        │   └── reflect2
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── Gopkg.lock
        │   │   ├── Gopkg.toml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── go_above_118.go
        │   │   ├── go_above_19.go
        │   │   ├── go_below_118.go
        │   │   ├── reflect2.go
        │   │   ├── reflect2_amd64.s
        │   │   ├── reflect2_kind.go
        │   │   ├── relfect2_386.s
        │   │   ├── relfect2_amd64p32.s
        │   │   ├── relfect2_arm.s
        │   │   ├── relfect2_arm64.s
        │   │   ├── relfect2_mips64x.s
        │   │   ├── relfect2_mipsx.s
        │   │   ├── relfect2_ppc64x.s
        │   │   ├── relfect2_s390x.s
        │   │   ├── safe_field.go
        │   │   ├── safe_map.go
        │   │   ├── safe_slice.go
        │   │   ├── safe_struct.go
        │   │   ├── safe_type.go
        │   │   ├── type_map.go
        │   │   ├── unsafe_array.go
        │   │   ├── unsafe_eface.go
        │   │   ├── unsafe_field.go
        │   │   ├── unsafe_iface.go
        │   │   ├── unsafe_link.go
        │   │   ├── unsafe_map.go
        │   │   ├── unsafe_ptr.go
        │   │   ├── unsafe_slice.go
        │   │   ├── unsafe_struct.go
        │   │   └── unsafe_type.go
        ├── nfnt
        │   └── resize
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── converter.go
        │   │   ├── filters.go
        │   │   ├── nearest.go
        │   │   ├── resize.go
        │   │   ├── thumbnail.go
        │   │   └── ycc.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
        ├── radovskyb
        │   └── watcher
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── ishidden.go
        │   │   ├── ishidden_windows.go
        │   │   ├── samefile.go
        │   │   ├── samefile_windows.go
        │   │   └── watcher.go
        ├── shirou
        │   └── gopsutil
        │   │   └── v3
        │   │       ├── LICENSE
        │   │       ├── 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_openbsd.go
        │   │           ├── disk_openbsd_386.go
        │   │           ├── disk_openbsd_amd64.go
        │   │           ├── disk_openbsd_arm.go
        │   │           ├── disk_openbsd_arm64.go
        │   │           ├── disk_solaris.go
        │   │           ├── disk_unix.go
        │   │           ├── disk_windows.go
        │   │           ├── iostat_darwin.c
        │   │           └── iostat_darwin.h
        │   │       ├── internal
        │   │           └── common
        │   │           │   ├── binary.go
        │   │           │   ├── common.go
        │   │           │   ├── common_darwin.go
        │   │           │   ├── common_freebsd.go
        │   │           │   ├── common_linux.go
        │   │           │   ├── common_openbsd.go
        │   │           │   ├── common_unix.go
        │   │           │   ├── common_windows.go
        │   │           │   ├── endian.go
        │   │           │   ├── sleep.go
        │   │           │   └── warnings.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_openbsd.go
        │   │           ├── mem_openbsd_386.go
        │   │           ├── mem_openbsd_amd64.go
        │   │           ├── mem_openbsd_arm.go
        │   │           ├── mem_openbsd_arm64.go
        │   │           ├── mem_plan9.go
        │   │           ├── mem_solaris.go
        │   │           └── mem_windows.go
        ├── sjqzhang
        │   ├── googleAuthenticator
        │   │   ├── README.md
        │   │   ├── auth.go
        │   │   ├── error.go
        │   │   ├── google.go
        │   │   └── hmac.go
        │   ├── goutil
        │   │   └── goutil.go
        │   ├── seelog
        │   │   ├── LICENSE.txt
        │   │   ├── README.markdown
        │   │   ├── behavior_adaptivelogger.go
        │   │   ├── behavior_asynclogger.go
        │   │   ├── behavior_asynclooplogger.go
        │   │   ├── behavior_asynctimerlogger.go
        │   │   ├── behavior_synclogger.go
        │   │   ├── cfg_config.go
        │   │   ├── cfg_errors.go
        │   │   ├── cfg_logconfig.go
        │   │   ├── cfg_parser.go
        │   │   ├── common_closer.go
        │   │   ├── common_constraints.go
        │   │   ├── common_context.go
        │   │   ├── common_exception.go
        │   │   ├── common_flusher.go
        │   │   ├── common_loglevel.go
        │   │   ├── dispatch_custom.go
        │   │   ├── dispatch_dispatcher.go
        │   │   ├── dispatch_filterdispatcher.go
        │   │   ├── dispatch_splitdispatcher.go
        │   │   ├── doc.go
        │   │   ├── format.go
        │   │   ├── internals_baseerror.go
        │   │   ├── internals_fsutils.go
        │   │   ├── internals_xmlnode.go
        │   │   ├── log.go
        │   │   ├── logger.go
        │   │   ├── writers_bufferedwriter.go
        │   │   ├── writers_connwriter.go
        │   │   ├── writers_consolewriter.go
        │   │   ├── writers_filewriter.go
        │   │   ├── writers_formattedwriter.go
        │   │   ├── writers_rollingfilewriter.go
        │   │   └── writers_smtpwriter.go
        │   └── tusd
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── Dockerfile
        │   │   ├── LICENSE.txt
        │   │   ├── README.md
        │   │   ├── appveyor.yml
        │   │   ├── composer.go
        │   │   ├── composer.mgo
        │   │   ├── config.go
        │   │   ├── datastore.go
        │   │   ├── doc.go
        │   │   ├── filestore
        │   │       └── filestore.go
        │   │   ├── handler.go
        │   │   ├── log.go
        │   │   ├── metrics.go
        │   │   ├── tusd.code-workspace
        │   │   ├── uid
        │   │       └── uid.go
        │   │   └── unrouted_handler.go
        ├── spf13
        │   ├── cobra
        │   │   ├── .gitignore
        │   │   ├── .golangci.yml
        │   │   ├── .mailmap
        │   │   ├── .travis.yml
        │   │   ├── CHANGELOG.md
        │   │   ├── CONDUCT.md
        │   │   ├── CONTRIBUTING.md
        │   │   ├── LICENSE.txt
        │   │   ├── Makefile
        │   │   ├── README.md
        │   │   ├── args.go
        │   │   ├── bash_completions.go
        │   │   ├── bash_completions.md
        │   │   ├── cobra.go
        │   │   ├── command.go
        │   │   ├── command_notwin.go
        │   │   ├── command_win.go
        │   │   ├── custom_completions.go
        │   │   ├── fish_completions.go
        │   │   ├── fish_completions.md
        │   │   ├── powershell_completions.go
        │   │   ├── powershell_completions.md
        │   │   ├── projects_using_cobra.md
        │   │   ├── shell_completions.go
        │   │   ├── shell_completions.md
        │   │   ├── zsh_completions.go
        │   │   └── zsh_completions.md
        │   └── pflag
        │   │   ├── .gitignore
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── bool.go
        │   │   ├── bool_slice.go
        │   │   ├── bytes.go
        │   │   ├── count.go
        │   │   ├── duration.go
        │   │   ├── duration_slice.go
        │   │   ├── flag.go
        │   │   ├── float32.go
        │   │   ├── float32_slice.go
        │   │   ├── float64.go
        │   │   ├── float64_slice.go
        │   │   ├── golangflag.go
        │   │   ├── int.go
        │   │   ├── int16.go
        │   │   ├── int32.go
        │   │   ├── int32_slice.go
        │   │   ├── int64.go
        │   │   ├── int64_slice.go
        │   │   ├── int8.go
        │   │   ├── int_slice.go
        │   │   ├── ip.go
        │   │   ├── ip_slice.go
        │   │   ├── ipmask.go
        │   │   ├── ipnet.go
        │   │   ├── string.go
        │   │   ├── string_array.go
        │   │   ├── string_slice.go
        │   │   ├── string_to_int.go
        │   │   ├── string_to_int64.go
        │   │   ├── string_to_string.go
        │   │   ├── uint.go
        │   │   ├── uint16.go
        │   │   ├── uint32.go
        │   │   ├── uint64.go
        │   │   ├── uint8.go
        │   │   └── uint_slice.go
        ├── syndtr
        │   └── goleveldb
        │   │   ├── LICENSE
        │   │   └── leveldb
        │   │       ├── batch.go
        │   │       ├── cache
        │   │           ├── cache.go
        │   │           └── lru.go
        │   │       ├── comparer.go
        │   │       ├── comparer
        │   │           ├── bytes_comparer.go
        │   │           └── comparer.go
        │   │       ├── db.go
        │   │       ├── db_compaction.go
        │   │       ├── db_iter.go
        │   │       ├── db_snapshot.go
        │   │       ├── db_state.go
        │   │       ├── db_transaction.go
        │   │       ├── db_util.go
        │   │       ├── db_write.go
        │   │       ├── doc.go
        │   │       ├── errors.go
        │   │       ├── errors
        │   │           └── errors.go
        │   │       ├── filter.go
        │   │       ├── filter
        │   │           ├── bloom.go
        │   │           └── filter.go
        │   │       ├── iterator
        │   │           ├── array_iter.go
        │   │           ├── indexed_iter.go
        │   │           ├── iter.go
        │   │           └── merged_iter.go
        │   │       ├── journal
        │   │           └── journal.go
        │   │       ├── key.go
        │   │       ├── memdb
        │   │           └── memdb.go
        │   │       ├── opt
        │   │           └── options.go
        │   │       ├── options.go
        │   │       ├── session.go
        │   │       ├── session_compaction.go
        │   │       ├── session_record.go
        │   │       ├── session_util.go
        │   │       ├── storage.go
        │   │       ├── storage
        │   │           ├── file_storage.go
        │   │           ├── file_storage_nacl.go
        │   │           ├── file_storage_plan9.go
        │   │           ├── file_storage_solaris.go
        │   │           ├── file_storage_unix.go
        │   │           ├── file_storage_windows.go
        │   │           ├── mem_storage.go
        │   │           └── storage.go
        │   │       ├── table.go
        │   │       ├── table
        │   │           ├── reader.go
        │   │           ├── table.go
        │   │           └── writer.go
        │   │       ├── util.go
        │   │       ├── util
        │   │           ├── buffer.go
        │   │           ├── buffer_pool.go
        │   │           ├── crc32.go
        │   │           ├── hash.go
        │   │           ├── range.go
        │   │           └── util.go
        │   │       └── version.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_solaris.go
        │   │   ├── numcpus_unsupported.go
        │   │   └── numcpus_windows.go
        └── yusufpapurcu
        │   └── wmi
        │       ├── LICENSE
        │       ├── README.md
        │       ├── swbemservices.go
        │       └── wmi.go
    ├── golang.org
        └── x
        │   └── sys
        │       ├── LICENSE
        │       ├── PATENTS
        │       ├── internal
        │           └── unsafeheader
        │           │   └── unsafeheader.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
        │           ├── bluetooth_linux.go
        │           ├── 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
        │           ├── epoll_zos.go
        │           ├── fcntl.go
        │           ├── fcntl_darwin.go
        │           ├── fcntl_linux_32bit.go
        │           ├── fdset.go
        │           ├── fstatfs_zos.go
        │           ├── gccgo.go
        │           ├── gccgo_c.c
        │           ├── gccgo_linux_amd64.go
        │           ├── ifreq_linux.go
        │           ├── ioctl.go
        │           ├── ioctl_linux.go
        │           ├── ioctl_zos.go
        │           ├── mkall.sh
        │           ├── mkerrors.sh
        │           ├── 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
        │           ├── 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
        │           ├── 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
        │           ├── 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
        │           ├── empty.s
        │           ├── 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
    ├── gopkg.in
        ├── Acconut
        │   └── lockfile.v1
        │   │   ├── .gitignore
        │   │   ├── .gitmodules
        │   │   ├── .travis.yml
        │   │   ├── LICENSE
        │   │   ├── README.md
        │   │   ├── appveyor.yml
        │   │   ├── lockfile.go
        │   │   ├── lockfile_unix.go
        │   │   └── lockfile_windows.go
        └── yaml.v2
        │   ├── .travis.yml
        │   ├── LICENSE
        │   ├── LICENSE.libyaml
        │   ├── 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/workflows/main.yml:
--------------------------------------------------------------------------------
 1 | on: [push, pull_request]
 2 | name: build
 3 | jobs:
 4 |   test:
 5 |     env:
 6 |       CGO_ENABLED: 0
 7 |     strategy:
 8 |       matrix:
 9 |         go-version: [1.17.x,1.18.x,1.19.x,1.20.x]
10 |         platform: [ubuntu-latest, macos-latest]
11 |     runs-on: ${{ matrix.platform }}
12 |     steps:
13 |       - name: Install Go
14 |         uses: actions/setup-go@v1
15 |         with:
16 |           go-version: ${{ matrix.go-version }}
17 |       - name: Checkout code
18 |         uses: actions/checkout@v2
19 |       - name: Build
20 |         run: |
21 |           go mod tidy
22 |           go mod vendor
23 |           go build
24 | 
25 | 


--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | vendor/*
3 | data/*
4 | files/*
5 | conf/*
6 | build/*
7 | log/*


--------------------------------------------------------------------------------
/SECURITY.md:
--------------------------------------------------------------------------------
1 | s_jqzhang@163.com
2 | 


--------------------------------------------------------------------------------
/auth.py:
--------------------------------------------------------------------------------
 1 | from flask import  Flask,request
 2 | app = Flask(__name__)
 3 | @app.route('/',methods=["GET", "POST"])
 4 | def index():
 5 |     print(request.headers)
 6 |     auth_token = request.headers.get("auth_token") # check auth_token here
 7 |     print(auth_token)
 8 |     if auth_token=='abc':
 9 |         return 'ok' #success
10 |     else:
11 |         return 'fail'
12 | if __name__ == '__main__':
13 |     app.run(host='0.0.0.0',debug=True)


--------------------------------------------------------------------------------
/benchmark.py:
--------------------------------------------------------------------------------
 1 | # -*- coding: utf-8 -*-
 2 | import requests
 3 | 
 4 | import gevent
 5 | 
 6 | 
 7 | from Queue import Queue
 8 | 
 9 | q=Queue()
10 | 
11 | import commands
12 | 
13 | from gevent import monkey
14 | 
15 | monkey.patch_all()
16 | import os
17 | out=commands.getoutput('find . -type f')
18 | 
19 | lines=out.split("\n")
20 | 
21 | for i in lines:
22 |     q.put(i)
23 | 
24 | 
25 | def task():
26 |     while True:
27 |         name=q.get(block=False)
28 |         if name=="":
29 |             break
30 |         url = 'http://10.1.5.20:8080/group1/upload'
31 |         files = {'file': open(name, 'rb')}
32 |         options = {'output': 'json', 'path': '', 'scene': ''}
33 |         try:
34 |             r = requests.post(url, files=files)
35 |         except Exception as er:
36 |             print(er)
37 | 
38 | th=[]
39 | for i in range(200):
40 |     th.append(gevent.spawn(task))
41 | gevent.joinall(th)
42 | 
43 | 


--------------------------------------------------------------------------------
/cmd/doc/cmd.go:
--------------------------------------------------------------------------------
 1 | package doc
 2 | 
 3 | import (
 4 | 	"github.com/sjqzhang/go-fastdfs/doc"
 5 | 	"github.com/spf13/cobra"
 6 | )
 7 | 
 8 | // Cmd run http server
 9 | var Cmd = &cobra.Command{
10 | 	Use:   "doc",
11 | 	Short: "Run doc server",
12 | 	Long:  `Run doc server`,
13 | 	Run: func(cmd *cobra.Command, args []string) {
14 | 		main()
15 | 	},
16 | }
17 | 
18 | var (
19 | 	url    string
20 | 	dir    string
21 | 	scene  string
22 | 	worker int
23 | )
24 | 
25 | func init() {
26 | 	Cmd.Flags().StringVar(&url, "url", "http://127.0.0.1:8080/group1/upload", "url")
27 | 	Cmd.Flags().StringVar(&dir, "dir", "./", "dir to upload")
28 | 	Cmd.Flags().StringVar(&scene, "scene", "default", "scene")
29 | 	Cmd.Flags().IntVar(&worker, "worker", 100, "num of worker")
30 | }
31 | 
32 | func main() {
33 | 	doc.Url = &url
34 | 	doc.Dir = &dir
35 | 	doc.Worker = &worker
36 | 	doc.Scene = &scene
37 | 	doc.StartServer()
38 | }
39 | 


--------------------------------------------------------------------------------
/cmd/server/cmd.go:
--------------------------------------------------------------------------------
 1 | package server
 2 | 
 3 | import (
 4 | 	"github.com/sjqzhang/go-fastdfs/server"
 5 | 	"github.com/spf13/cobra"
 6 | )
 7 | 
 8 | // Cmd run http server
 9 | var Cmd = &cobra.Command{
10 | 	Use:   "server",
11 | 	Short: "Run fastdfs server",
12 | 	Long:  `Run fastdfs server`,
13 | 	Run: func(cmd *cobra.Command, args []string) {
14 | 		main()
15 | 	},
16 | }
17 | 
18 | func main() {
19 | 	server.InitServer()
20 | 	server.Start()
21 | }
22 | 


--------------------------------------------------------------------------------
/cmd/version/cmd.go:
--------------------------------------------------------------------------------
 1 | package version
 2 | 
 3 | import (
 4 | 	"fmt"
 5 | 
 6 | 	"github.com/sjqzhang/go-fastdfs/server"
 7 | 	"github.com/spf13/cobra"
 8 | )
 9 | 
10 | var Cmd = &cobra.Command{
11 | 	Use:   "version",
12 | 	Short: "version",
13 | 	Long:  `version`,
14 | 	Run: func(cmd *cobra.Command, args []string) {
15 | 		fmt.Printf("Version   : %s\n", server.VERSION)
16 | 		fmt.Printf("GO_VERSION: %s\n", server.GO_VERSION)
17 | 		fmt.Printf("GIT_COMMIT: %s\n", server.GIT_VERSION)
18 | 		fmt.Printf("BUILD_TIME: %s\n", server.BUILD_TIME)
19 | 	},
20 | }
21 | 


--------------------------------------------------------------------------------
/doc/authentication.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/authentication.png


--------------------------------------------------------------------------------
/doc/authentication2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/authentication2.png


--------------------------------------------------------------------------------
/doc/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/download.png


--------------------------------------------------------------------------------
/doc/go-fastdfs-deploy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/go-fastdfs-deploy.png


--------------------------------------------------------------------------------
/doc/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/logo.png


--------------------------------------------------------------------------------
/doc/pay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/pay.png


--------------------------------------------------------------------------------
/doc/upload.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/upload.png


--------------------------------------------------------------------------------
/doc/wechat.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/doc/wechat.jpg


--------------------------------------------------------------------------------
/docker-compose/fastdfs-web/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM openjdk:8-jdk-alpine
2 | VOLUME /tmp
3 | ADD go-fastdfs-web.jar app.jar
4 | #RUN bash -c 'touch /app.jar'
5 | ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]
6 | 


--------------------------------------------------------------------------------
/docker-compose/fastdfs-web/db/go-fastdfs.db:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/docker-compose/fastdfs-web/db/go-fastdfs.db


--------------------------------------------------------------------------------
/docker-compose/fastdfs-web/go-fastdfs-web.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/docker-compose/fastdfs-web/go-fastdfs-web.jar


--------------------------------------------------------------------------------
/docker-compose/fastdfs-web/logs/go-fastdfs-web.log:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/docker-compose/fastdfs-web/logs/go-fastdfs-web.log


--------------------------------------------------------------------------------
/docker-compose/start.sh:
--------------------------------------------------------------------------------
1 | docker stop land-nginx
2 | docker stop land-fastdfs
3 | docker rm land-nginx
4 | docker rm land-fastdfs
5 | docker-compose up -d
6 | 


--------------------------------------------------------------------------------
/gen_file.py:
--------------------------------------------------------------------------------
 1 | # -*- coding: utf-8 -*-
 2 | import os
 3 | import random
 4 | j=0
 5 | for i in range(0,1000000):
 6 |     if i%1000==0:
 7 |         j=i
 8 |         os.system('mkdir -p %s'%(i))
 9 |     with open('%s/%s.txt'%(j,i),'w+') as f:
10 |         f.write(str(random.random())*100000)


--------------------------------------------------------------------------------
/gofastdfs.service:
--------------------------------------------------------------------------------
 1 | [Unit]
 2 | Description=gofastdfs service 
 3 | Wants=network.target 
 4 | 
 5 | [Service]
 6 | PIDFile=/home/gofastdfs/conf/app.pid
 7 | WorkingDirectory=/home/gofastdfs
 8 | Environment="GO_FASTDFS_DIR=/home/gofastdfs" #/home/gofastdfs 修改成你的安装路径
 9 | ExecStart=/home/gofastdfs/fileserver $GO_FASTDFS_DIR
10 | ExecReload=/bin/kill -s HUP $MAINPID
11 | ExecStop=/bin/kill -s QUIT $MAINPID
12 | PrivateTmp=true
13 | Restart=always
14 | 
15 | [Install] 
16 | WantedBy=multi-user.target


--------------------------------------------------------------------------------
/nginx/README.md:
--------------------------------------------------------------------------------
1 | ## 注意点:
2 | ```
3 | 	一、如果不知道文件大小时,需设置
4 | 	    client_max_body_size 0;
5 | 	二、如果要开启tus,并使用nginx反向代理,需要设置proxy_redirect
6 | 		并且重定向
7 | 		proxy_redirect ~/(\w+)/big/upload/(.*) /$1/big/upload/$2;  #继点续传一定要设置(注意)
8 | ```
9 | 


--------------------------------------------------------------------------------
/server/error.go:
--------------------------------------------------------------------------------
 1 | package server
 2 | 
 3 | type httpError struct {
 4 | 	error
 5 | 	statusCode int
 6 | }
 7 | 
 8 | func (err httpError) StatusCode() int {
 9 | 	return err.statusCode
10 | }
11 | 
12 | func (err httpError) Body() []byte {
13 | 	return []byte(err.Error())
14 | }
15 | 


--------------------------------------------------------------------------------
/server/mail.go:
--------------------------------------------------------------------------------
 1 | package server
 2 | 
 3 | import (
 4 | 	"net/smtp"
 5 | 	"strings"
 6 | )
 7 | 
 8 | type Mail struct {
 9 | 	User     string `json:"user"`
10 | 	Password string `json:"password"`
11 | 	Host     string `json:"host"`
12 | }
13 | 
14 | func (c *Server) SendToMail(to, subject, body, mailtype string) error {
15 | 	host := Config().Mail.Host
16 | 	user := Config().Mail.User
17 | 	password := Config().Mail.Password
18 | 	hp := strings.Split(host, ":")
19 | 	auth := smtp.PlainAuth("", user, password, hp[0])
20 | 	var contentType string
21 | 	if mailtype == "html" {
22 | 		contentType = "Content-Type: text/" + mailtype + "; charset=UTF-8"
23 | 	} else {
24 | 		contentType = "Content-Type: text/plain" + "; charset=UTF-8"
25 | 	}
26 | 	msg := []byte("To: " + to + "\r\nFrom: " + user + ">\r\nSubject: " + "\r\n" + contentType + "\r\n\r\n" + body)
27 | 	sendTo := strings.Split(to, ";")
28 | 	err := smtp.SendMail(host, auth, user, sendTo, msg)
29 | 	return err
30 | }
31 | 


--------------------------------------------------------------------------------
/server/version.go:
--------------------------------------------------------------------------------
1 | package server
2 | 
3 | var (
4 | 	VERSION     string
5 | 	BUILD_TIME  string
6 | 	GO_VERSION  string
7 | 	GIT_VERSION string
8 | )
9 | 


--------------------------------------------------------------------------------
/static/css/main.css:
--------------------------------------------------------------------------------
 1 | .page-view-totla {
 2 |     font-size: 36px;
 3 |     color: #666;
 4 |     line-height: 36px;
 5 |     padding: 5px 0 10px;
 6 |     overflow: hidden;
 7 |     text-overflow: ellipsis;
 8 |     word-break: break-all;
 9 |     white-space: nowrap;
10 | }
11 | .shortcut-button{
12 |     width: 100px;
13 |     height: 80px;
14 |     display: block;
15 |     float: left;
16 |     margin-left: 10px;
17 |     margin-top: 10px;
18 |     cursor: pointer;
19 |     text-align: center;
20 | }
21 | .shortcut-button-icon{
22 |     display: block;
23 |     height: 55px;
24 |     text-align: center;
25 |     line-height: 55px;
26 |     background: #F8F8F8;
27 | }
28 | .shortcut-button:hover{
29 |     color: #2F4056;
30 | }


--------------------------------------------------------------------------------
/static/images/aiwrap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/images/aiwrap.png


--------------------------------------------------------------------------------
/static/images/bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/images/bg.png


--------------------------------------------------------------------------------
/static/images/head.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/images/head.jpg


--------------------------------------------------------------------------------
/static/plugins/font-awesome/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/font-awesome/fonts/FontAwesome.otf


--------------------------------------------------------------------------------
/static/plugins/font-awesome/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/font-awesome/fonts/fontawesome-webfont.eot


--------------------------------------------------------------------------------
/static/plugins/font-awesome/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/font-awesome/fonts/fontawesome-webfont.ttf


--------------------------------------------------------------------------------
/static/plugins/font-awesome/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/font-awesome/fonts/fontawesome-webfont.woff


--------------------------------------------------------------------------------
/static/plugins/font-awesome/fonts/fontawesome-webfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/font-awesome/fonts/fontawesome-webfont.woff2


--------------------------------------------------------------------------------
/static/plugins/iconfont/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/iconfont/iconfont.eot


--------------------------------------------------------------------------------
/static/plugins/iconfont/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/iconfont/iconfont.ttf


--------------------------------------------------------------------------------
/static/plugins/iconfont/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/iconfont/iconfont.woff


--------------------------------------------------------------------------------
/static/plugins/iconfont/iconfont.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/iconfont/iconfont.woff2


--------------------------------------------------------------------------------
/static/plugins/layer/theme/default/icon-ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layer/theme/default/icon-ext.png


--------------------------------------------------------------------------------
/static/plugins/layer/theme/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layer/theme/default/icon.png


--------------------------------------------------------------------------------
/static/plugins/layer/theme/default/loading-0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layer/theme/default/loading-0.gif


--------------------------------------------------------------------------------
/static/plugins/layer/theme/default/loading-1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layer/theme/default/loading-1.gif


--------------------------------------------------------------------------------
/static/plugins/layer/theme/default/loading-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layer/theme/default/loading-2.gif


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/code.css:
--------------------------------------------------------------------------------
1 | /** layui-v2.4.5 MIT License By https://www.layui.com */
2 |  html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/layer/default/icon-ext.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/css/modules/layer/default/icon-ext.png


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/layer/default/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/css/modules/layer/default/icon.png


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/layer/default/loading-0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/css/modules/layer/default/loading-0.gif


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/layer/default/loading-1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/css/modules/layer/default/loading-1.gif


--------------------------------------------------------------------------------
/static/plugins/layui/css/modules/layer/default/loading-2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/css/modules/layer/default/loading-2.gif


--------------------------------------------------------------------------------
/static/plugins/layui/font/iconfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/font/iconfont.eot


--------------------------------------------------------------------------------
/static/plugins/layui/font/iconfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/font/iconfont.ttf


--------------------------------------------------------------------------------
/static/plugins/layui/font/iconfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/font/iconfont.woff


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/0.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/0.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/1.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/1.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/10.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/11.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/11.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/12.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/13.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/13.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/14.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/14.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/15.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/15.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/16.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/17.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/17.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/18.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/18.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/19.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/19.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/2.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/2.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/20.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/20.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/21.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/21.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/22.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/22.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/23.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/23.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/24.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/24.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/25.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/25.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/26.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/26.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/27.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/27.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/28.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/28.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/29.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/29.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/3.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/3.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/30.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/30.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/31.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/31.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/32.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/33.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/33.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/34.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/34.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/35.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/35.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/36.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/36.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/37.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/37.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/38.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/38.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/39.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/39.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/4.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/4.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/40.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/40.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/41.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/41.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/42.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/42.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/43.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/43.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/44.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/44.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/45.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/45.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/46.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/46.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/47.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/47.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/48.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/49.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/49.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/5.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/5.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/50.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/51.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/51.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/52.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/52.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/53.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/54.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/54.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/55.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/55.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/56.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/56.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/57.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/58.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/58.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/59.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/59.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/6.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/6.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/60.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/60.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/61.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/61.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/62.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/62.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/63.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/63.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/64.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/64.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/65.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/65.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/66.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/66.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/67.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/67.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/68.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/68.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/69.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/69.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/7.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/7.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/70.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/70.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/71.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/71.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/8.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/8.gif


--------------------------------------------------------------------------------
/static/plugins/layui/images/face/9.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/static/plugins/layui/images/face/9.gif


--------------------------------------------------------------------------------
/static/plugins/layui/lay/modules/code.js:
--------------------------------------------------------------------------------
1 | /** layui-v2.4.5 MIT License By https://www.layui.com */
2 |  ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");


--------------------------------------------------------------------------------
/vendor/github.com/astaxie/beego/LICENSE:
--------------------------------------------------------------------------------
 1 | Copyright 2014 astaxie
 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.


--------------------------------------------------------------------------------
/vendor/github.com/bmizerany/pat/.gitignore:
--------------------------------------------------------------------------------
1 | *.prof
2 | *.out
3 | example/example
4 | 


--------------------------------------------------------------------------------
/vendor/github.com/bmizerany/pat/LICENSE:
--------------------------------------------------------------------------------
 1 | Copyright (C) 2012 by Keith Rarick, Blake Mizerany
 2 | 
 3 | Permission is hereby granted, free of charge, to any person obtaining a copy
 4 | of this software and associated documentation files (the "Software"), to deal
 5 | in the Software without restriction, including without limitation the rights
 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 7 | copies of the Software, and to permit persons to whom the Software is
 8 | furnished to do so, subject to the following conditions:
 9 | 
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 | 
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 | 


--------------------------------------------------------------------------------
/vendor/github.com/deckarep/golang-set/.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/deckarep/golang-set/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | go:
 4 |     - 1.8
 5 |     - 1.9
 6 |     - tip
 7 | 
 8 | script:
 9 |     - go test -race ./...
10 |     - go test -bench=.
11 | 
12 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/.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 | 
26 | .DS_Store
27 | 
28 | .idea/


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | go:
 3 |   - 1.13
 4 |   - tip
 5 | script: go test -v ./...
 6 | notifications:
 7 |   email:
 8 |     recipients:
 9 |       - devs@eventials.com
10 |     on_success: never
11 |     on_failure: always
12 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/Dockerfile:
--------------------------------------------------------------------------------
 1 | FROM golang:1.13
 2 | 
 3 | RUN mkdir -p /go/src/github.com/eventials/go-tus
 4 | 
 5 | WORKDIR /go/src/github.com/eventials/go-tus
 6 | 
 7 | RUN go get github.com/stretchr/testify
 8 | RUN go get github.com/tus/tusd
 9 | RUN go get github.com/syndtr/goleveldb/leveldb
10 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/LICENSE:
--------------------------------------------------------------------------------
 1 | MIT License
 2 | 
 3 | Copyright (c) 2016 Eventials
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy
 6 | of this software and associated documentation files (the "Software"), to deal
 7 | in the Software without restriction, including without limitation the rights
 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/doc.go:
--------------------------------------------------------------------------------
1 | // Package tus provides a client to tus protocol version 1.0.0.
2 | //
3 | // tus is a protocol based on HTTP for resumable file uploads. Resumable means that
4 | // an upload can be interrupted at any moment and can be resumed without
5 | // re-uploading the previous data again. An interruption may happen willingly, if
6 | // the user wants to pause, or by accident in case of an network issue or server
7 | // outage (http://tus.io).
8 | package tus
9 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '2'
2 | services:
3 |   app:
4 |     build: .
5 |     working_dir: /go/src/github.com/eventials/go-tus
6 |     command: go run main.go
7 |     volumes:
8 |      - .:/go/src/github.com/eventials/go-tus
9 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/errors.go:
--------------------------------------------------------------------------------
 1 | package tus
 2 | 
 3 | import (
 4 | 	"errors"
 5 | 	"fmt"
 6 | )
 7 | 
 8 | var (
 9 | 	ErrChuckSize         = errors.New("chunk size must be greater than zero.")
10 | 	ErrNilLogger         = errors.New("logger can't be nil.")
11 | 	ErrNilStore          = errors.New("store can't be nil if Resume is enable.")
12 | 	ErrNilUpload         = errors.New("upload can't be nil.")
13 | 	ErrLargeUpload       = errors.New("upload body is to large.")
14 | 	ErrVersionMismatch   = errors.New("protocol version mismatch.")
15 | 	ErrOffsetMismatch    = errors.New("upload offset mismatch.")
16 | 	ErrUploadNotFound    = errors.New("upload not found.")
17 | 	ErrResumeNotEnabled  = errors.New("resuming not enabled.")
18 | 	ErrFingerprintNotSet = errors.New("fingerprint not set.")
19 | 	ErrUrlNotRecognized  = errors.New("url not recognized")
20 | )
21 | 
22 | type ClientError struct {
23 | 	Code int
24 | 	Body []byte
25 | }
26 | 
27 | func (c ClientError) Error() string {
28 | 	return fmt.Sprintf("unexpected status code: %d", c.Code)
29 | }
30 | 


--------------------------------------------------------------------------------
/vendor/github.com/eventials/go-tus/store.go:
--------------------------------------------------------------------------------
1 | package tus
2 | 
3 | type Store interface {
4 | 	Get(fingerprint string) (string, bool)
5 | 	Set(fingerprint, url string)
6 | 	Delete(fingerprint string)
7 | 	Close()
8 | }
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/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/iconnectionpoint_windows.go:
--------------------------------------------------------------------------------
 1 | // +build windows
 2 | 
 3 | package ole
 4 | 
 5 | import (
 6 | 	"syscall"
 7 | 	"unsafe"
 8 | )
 9 | 
10 | func (v *IConnectionPoint) GetConnectionInterface(piid **GUID) int32 {
11 | 	// XXX: This doesn't look like it does what it's supposed to
12 | 	return release((*IUnknown)(unsafe.Pointer(v)))
13 | }
14 | 
15 | func (v *IConnectionPoint) Advise(unknown *IUnknown) (cookie uint32, err error) {
16 | 	hr, _, _ := syscall.Syscall(
17 | 		v.VTable().Advise,
18 | 		3,
19 | 		uintptr(unsafe.Pointer(v)),
20 | 		uintptr(unsafe.Pointer(unknown)),
21 | 		uintptr(unsafe.Pointer(&cookie)))
22 | 	if hr != 0 {
23 | 		err = NewError(hr)
24 | 	}
25 | 	return
26 | }
27 | 
28 | func (v *IConnectionPoint) Unadvise(cookie uint32) (err error) {
29 | 	hr, _, _ := syscall.Syscall(
30 | 		v.VTable().Unadvise,
31 | 		2,
32 | 		uintptr(unsafe.Pointer(v)),
33 | 		uintptr(cookie),
34 | 		0)
35 | 	if hr != 0 {
36 | 		err = NewError(hr)
37 | 	}
38 | 	return
39 | }
40 | 
41 | func (v *IConnectionPoint) EnumConnections(p *unsafe.Pointer) error {
42 | 	return NewError(E_NOTIMPL)
43 | }
44 | 


--------------------------------------------------------------------------------
/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-ole/go-ole/winrt_doc.go:
--------------------------------------------------------------------------------
 1 | // +build !windows
 2 | 
 3 | package ole
 4 | 
 5 | // RoInitialize
 6 | func RoInitialize(thread_type uint32) (err error) {
 7 | 	return NewError(E_NOTIMPL)
 8 | }
 9 | 
10 | // RoActivateInstance
11 | func RoActivateInstance(clsid string) (ins *IInspectable, err error) {
12 | 	return nil, NewError(E_NOTIMPL)
13 | }
14 | 
15 | // RoGetActivationFactory
16 | func RoGetActivationFactory(clsid string, iid *GUID) (ins *IInspectable, err error) {
17 | 	return nil, NewError(E_NOTIMPL)
18 | }
19 | 
20 | // HString is handle string for pointers.
21 | type HString uintptr
22 | 
23 | // NewHString returns a new HString for Go string.
24 | func NewHString(s string) (hstring HString, err error) {
25 | 	return HString(uintptr(0)), NewError(E_NOTIMPL)
26 | }
27 | 
28 | // DeleteHString deletes HString.
29 | func DeleteHString(hstring HString) (err error) {
30 | 	return NewError(E_NOTIMPL)
31 | }
32 | 
33 | // String returns Go string value of HString.
34 | func (h HString) String() string {
35 | 	return ""
36 | }
37 | 


--------------------------------------------------------------------------------
/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 <email address>
 7 | # The email address is not required for organizations.
 8 | 
 9 | # Please keep the list sorted.
10 | 
11 | Damian Gryski <dgryski@gmail.com>
12 | Google Inc.
13 | Jan Mercl <0xjnml@gmail.com>
14 | Rodolfo Carvalho <rhcarvalho@gmail.com>
15 | Sebastien Binet <seb.binet@gmail.com>
16 | 


--------------------------------------------------------------------------------
/vendor/github.com/golang/snappy/decode_amd64.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 | 
 9 | package snappy
10 | 
11 | // decode has the same semantics as in decode_other.go.
12 | //
13 | //go:noescape
14 | func decode(dst, src []byte) int
15 | 


--------------------------------------------------------------------------------
/vendor/github.com/golang/snappy/encode_amd64.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 | 
 9 | package snappy
10 | 
11 | // emitLiteral has the same semantics as in encode_other.go.
12 | //
13 | //go:noescape
14 | func emitLiteral(dst, lit []byte) int
15 | 
16 | // emitCopy has the same semantics as in encode_other.go.
17 | //
18 | //go:noescape
19 | func emitCopy(dst []byte, offset, length int) int
20 | 
21 | // extendMatch has the same semantics as in encode_other.go.
22 | //
23 | //go:noescape
24 | func extendMatch(src []byte, i, j int) int
25 | 
26 | // encodeBlock has the same semantics as in encode_other.go.
27 | //
28 | //go:noescape
29 | func encodeBlock(dst, src []byte) (d int)
30 | 


--------------------------------------------------------------------------------
/vendor/github.com/inconshreveable/mousetrap/LICENSE:
--------------------------------------------------------------------------------
 1 | Copyright 2014 Alan Shreve
 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 | 


--------------------------------------------------------------------------------
/vendor/github.com/inconshreveable/mousetrap/README.md:
--------------------------------------------------------------------------------
 1 | # mousetrap
 2 | 
 3 | mousetrap is a tiny library that answers a single question.
 4 | 
 5 | On a Windows machine, was the process invoked by someone double clicking on
 6 | the executable file while browsing in explorer?
 7 | 
 8 | ### Motivation
 9 | 
10 | Windows developers unfamiliar with command line tools will often "double-click"
11 | the executable for a tool. Because most CLI tools print the help and then exit
12 | when invoked without arguments, this is often very frustrating for those users.
13 | 
14 | mousetrap provides a way to detect these invocations so that you can provide
15 | more helpful behavior and instructions on how to run the CLI tool. To see what
16 | this looks like, both from an organizational and a technical perspective, see
17 | https://inconshreveable.com/09-09-2014/sweat-the-small-stuff/
18 | 
19 | ### The interface
20 | 
21 | The library exposes a single interface:
22 | 
23 |     func StartedByExplorer() (bool)
24 | 


--------------------------------------------------------------------------------
/vendor/github.com/inconshreveable/mousetrap/trap_others.go:
--------------------------------------------------------------------------------
 1 | // +build !windows
 2 | 
 3 | package mousetrap
 4 | 
 5 | // StartedByExplorer returns true if the program was invoked by the user
 6 | // double-clicking on the executable from explorer.exe
 7 | //
 8 | // It is conservative and returns false if any of the internal calls fail.
 9 | // It does not guarantee that the program was run from a terminal. It only can tell you
10 | // whether it was launched from explorer.exe
11 | //
12 | // On non-Windows platforms, it always returns false.
13 | func StartedByExplorer() bool {
14 | 	return false
15 | }
16 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/.codecov.yml:
--------------------------------------------------------------------------------
1 | ignore:
2 |     - "output_tests/.*"
3 | 
4 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | /bug_test.go
3 | /coverage.txt
4 | /.idea
5 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | go:
 4 |   - 1.8.x
 5 |   - 1.x
 6 | 
 7 | before_install:
 8 |   - go get -t -v ./...
 9 | 
10 | script:
11 |   - ./test.sh
12 | 
13 | after_success:
14 |   - bash <(curl -s https://codecov.io/bash)
15 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/Gopkg.lock:
--------------------------------------------------------------------------------
 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
 2 | 
 3 | 
 4 | [[projects]]
 5 |   name = "github.com/modern-go/concurrent"
 6 |   packages = ["."]
 7 |   revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a"
 8 |   version = "1.0.0"
 9 | 
10 | [[projects]]
11 |   name = "github.com/modern-go/reflect2"
12 |   packages = ["."]
13 |   revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd"
14 |   version = "1.0.1"
15 | 
16 | [solve-meta]
17 |   analyzer-name = "dep"
18 |   analyzer-version = 1
19 |   inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8"
20 |   solver-name = "gps-cdcl"
21 |   solver-version = 1
22 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/Gopkg.toml:
--------------------------------------------------------------------------------
 1 | # Gopkg.toml example
 2 | #
 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
 4 | # for detailed Gopkg.toml documentation.
 5 | #
 6 | # required = ["github.com/user/thing/cmd/thing"]
 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
 8 | #
 9 | # [[constraint]]
10 | #   name = "github.com/user/project"
11 | #   version = "1.0.0"
12 | #
13 | # [[constraint]]
14 | #   name = "github.com/user/project2"
15 | #   branch = "dev"
16 | #   source = "github.com/myfork/project2"
17 | #
18 | # [[override]]
19 | #  name = "github.com/x/y"
20 | #  version = "2.4.0"
21 | 
22 | ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"]
23 | 
24 | [[constraint]]
25 |   name = "github.com/modern-go/reflect2"
26 |   version = "1.0.1"
27 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/LICENSE:
--------------------------------------------------------------------------------
 1 | MIT License
 2 | 
 3 | Copyright (c) 2016 json-iterator
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy
 6 | of this software and associated documentation files (the "Software"), to deal
 7 | in the Software without restriction, including without limitation the rights
 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/build.sh:
--------------------------------------------------------------------------------
 1 | #!/bin/bash
 2 | set -e
 3 | set -x
 4 | 
 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then
 6 |     mkdir -p /tmp/build-golang/src/github.com/json-iterator
 7 |     ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go
 8 | fi
 9 | export GOPATH=/tmp/build-golang
10 | go get -u github.com/golang/dep/cmd/dep
11 | cd /tmp/build-golang/src/github.com/json-iterator/go
12 | exec $GOPATH/bin/dep ensure -update
13 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md:
--------------------------------------------------------------------------------
1 | | json type \ dest type | bool | int | uint | float |string|
2 | | --- | --- | --- | --- |--|--|
3 | | number | positive => true <br/> negative => true <br/> zero => false| 23.2 => 23 <br/> -32.1 => -32| 12.1 => 12 <br/> -12.1 => 0|as normal|same as origin|
4 | | string | empty string => false <br/> string "0" => false <br/> other strings => true | "123.32" => 123 <br/> "-123.4" => -123 <br/> "123.23xxxw" => 123 <br/>  "abcde12" => 0 <br/> "-32.1" => -32| 13.2 => 13 <br/> -1.1 => 0 |12.1 => 12.1 <br/> -12.3 => -12.3<br/> 12.4xxa => 12.4 <br/> +1.1e2 =>110 |same as origin|
5 | | bool | true => true <br/> false => false| true => 1 <br/> false => 0 | true => 1 <br/> false => 0 |true => 1 <br/>false => 0|true => "true" <br/> false => "false"|
6 | | object | true | 0 | 0 |0|originnal json|
7 | | array | empty array => false <br/> nonempty array => true| [] => 0 <br/> [1,2] => 1 | [] => 0 <br/> [1,2] => 1 |[] => 0<br/>[1,2] => 1|original json|


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/jsoniter.go:
--------------------------------------------------------------------------------
 1 | // Package jsoniter implements encoding and decoding of JSON as defined in
 2 | // RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json.
 3 | // Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter
 4 | // and variable type declarations (if any).
 5 | // jsoniter interfaces gives 100% compatibility with code using standard lib.
 6 | //
 7 | // "JSON and Go"
 8 | // (https://golang.org/doc/articles/json_and_go.html)
 9 | // gives a description of how Marshal/Unmarshal operate
10 | // between arbitrary or predefined json objects and bytes,
11 | // and it applies to jsoniter.Marshal/Unmarshal as well.
12 | //
13 | // Besides, jsoniter.Iterator provides a different set of interfaces
14 | // iterating given bytes/string/reader
15 | // and yielding parsed elements one by one.
16 | // This set of interfaces reads input as required and gives
17 | // better performance.
18 | package jsoniter
19 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/pool.go:
--------------------------------------------------------------------------------
 1 | package jsoniter
 2 | 
 3 | import (
 4 | 	"io"
 5 | )
 6 | 
 7 | // IteratorPool a thread safe pool of iterators with same configuration
 8 | type IteratorPool interface {
 9 | 	BorrowIterator(data []byte) *Iterator
10 | 	ReturnIterator(iter *Iterator)
11 | }
12 | 
13 | // StreamPool a thread safe pool of streams with same configuration
14 | type StreamPool interface {
15 | 	BorrowStream(writer io.Writer) *Stream
16 | 	ReturnStream(stream *Stream)
17 | }
18 | 
19 | func (cfg *frozenConfig) BorrowStream(writer io.Writer) *Stream {
20 | 	stream := cfg.streamPool.Get().(*Stream)
21 | 	stream.Reset(writer)
22 | 	return stream
23 | }
24 | 
25 | func (cfg *frozenConfig) ReturnStream(stream *Stream) {
26 | 	stream.out = nil
27 | 	stream.Error = nil
28 | 	stream.Attachment = nil
29 | 	cfg.streamPool.Put(stream)
30 | }
31 | 
32 | func (cfg *frozenConfig) BorrowIterator(data []byte) *Iterator {
33 | 	iter := cfg.iteratorPool.Get().(*Iterator)
34 | 	iter.ResetBytes(data)
35 | 	return iter
36 | }
37 | 
38 | func (cfg *frozenConfig) ReturnIterator(iter *Iterator) {
39 | 	iter.Error = nil
40 | 	iter.Attachment = nil
41 | 	cfg.iteratorPool.Put(iter)
42 | }
43 | 


--------------------------------------------------------------------------------
/vendor/github.com/json-iterator/go/test.sh:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env bash
 2 | 
 3 | set -e
 4 | echo "" > coverage.txt
 5 | 
 6 | for d in $(go list ./... | grep -v vendor); do
 7 |     go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d
 8 |     if [ -f profile.out ]; then
 9 |         cat profile.out >> coverage.txt
10 |         rm profile.out
11 |     fi
12 | done
13 | 


--------------------------------------------------------------------------------
/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 | 


--------------------------------------------------------------------------------
/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) Err() error {
30 | 	return p.err
31 | }
32 | 


--------------------------------------------------------------------------------
/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/modern-go/concurrent/.gitignore:
--------------------------------------------------------------------------------
1 | /coverage.txt
2 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | go:
 4 |   - 1.8.x
 5 |   - 1.x
 6 | 
 7 | before_install:
 8 |   - go get -t -v ./...
 9 | 
10 | script:
11 |   - ./test.sh
12 | 
13 | after_success:
14 |   - bash <(curl -s https://codecov.io/bash)
15 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/executor.go:
--------------------------------------------------------------------------------
 1 | package concurrent
 2 | 
 3 | import "context"
 4 | 
 5 | // Executor replace go keyword to start a new goroutine
 6 | // the goroutine should cancel itself if the context passed in has been cancelled
 7 | // the goroutine started by the executor, is owned by the executor
 8 | // we can cancel all executors owned by the executor just by stop the executor itself
 9 | // however Executor interface does not Stop method, the one starting and owning executor
10 | // should use the concrete type of executor, instead of this interface.
11 | type Executor interface {
12 | 	// Go starts a new goroutine controlled by the context
13 | 	Go(handler func(ctx context.Context))
14 | }
15 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/go_above_19.go:
--------------------------------------------------------------------------------
 1 | //+build go1.9
 2 | 
 3 | package concurrent
 4 | 
 5 | import "sync"
 6 | 
 7 | // Map is a wrapper for sync.Map introduced in go1.9
 8 | type Map struct {
 9 | 	sync.Map
10 | }
11 | 
12 | // NewMap creates a thread safe Map
13 | func NewMap() *Map {
14 | 	return &Map{}
15 | }
16 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/go_below_19.go:
--------------------------------------------------------------------------------
 1 | //+build !go1.9
 2 | 
 3 | package concurrent
 4 | 
 5 | import "sync"
 6 | 
 7 | // Map implements a thread safe map for go version below 1.9 using mutex
 8 | type Map struct {
 9 | 	lock sync.RWMutex
10 | 	data map[interface{}]interface{}
11 | }
12 | 
13 | // NewMap creates a thread safe map
14 | func NewMap() *Map {
15 | 	return &Map{
16 | 		data: make(map[interface{}]interface{}, 32),
17 | 	}
18 | }
19 | 
20 | // Load is same as sync.Map Load
21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) {
22 | 	m.lock.RLock()
23 | 	elem, found = m.data[key]
24 | 	m.lock.RUnlock()
25 | 	return
26 | }
27 | 
28 | // Load is same as sync.Map Store
29 | func (m *Map) Store(key interface{}, elem interface{}) {
30 | 	m.lock.Lock()
31 | 	m.data[key] = elem
32 | 	m.lock.Unlock()
33 | }
34 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/log.go:
--------------------------------------------------------------------------------
 1 | package concurrent
 2 | 
 3 | import (
 4 | 	"os"
 5 | 	"log"
 6 | 	"io/ioutil"
 7 | )
 8 | 
 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr
10 | var ErrorLogger = log.New(os.Stderr, "", 0)
11 | 
12 | // InfoLogger is used to print informational message, default to off
13 | var InfoLogger = log.New(ioutil.Discard, "", 0)


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/concurrent/test.sh:
--------------------------------------------------------------------------------
 1 | #!/usr/bin/env bash
 2 | 
 3 | set -e
 4 | echo "" > coverage.txt
 5 | 
 6 | for d in $(go list ./... | grep -v vendor); do
 7 |     go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d
 8 |     if [ -f profile.out ]; then
 9 |         cat profile.out >> coverage.txt
10 |         rm profile.out
11 |     fi
12 | done
13 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/.gitignore:
--------------------------------------------------------------------------------
1 | /vendor
2 | /coverage.txt
3 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | go:
 4 |   - 1.9.x
 5 |   - 1.x
 6 | 
 7 | before_install:
 8 |   - go get -t -v ./...
 9 |   - go get -t -v github.com/modern-go/reflect2-tests/...
10 | 
11 | script:
12 |   - ./test.sh
13 | 
14 | after_success:
15 |   - bash <(curl -s https://codecov.io/bash)
16 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/Gopkg.lock:
--------------------------------------------------------------------------------
 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
 2 | 
 3 | 
 4 | [solve-meta]
 5 |   analyzer-name = "dep"
 6 |   analyzer-version = 1
 7 |   input-imports = []
 8 |   solver-name = "gps-cdcl"
 9 |   solver-version = 1
10 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/Gopkg.toml:
--------------------------------------------------------------------------------
 1 | # Gopkg.toml example
 2 | #
 3 | # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
 4 | # for detailed Gopkg.toml documentation.
 5 | #
 6 | # required = ["github.com/user/thing/cmd/thing"]
 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
 8 | #
 9 | # [[constraint]]
10 | #   name = "github.com/user/project"
11 | #   version = "1.0.0"
12 | #
13 | # [[constraint]]
14 | #   name = "github.com/user/project2"
15 | #   branch = "dev"
16 | #   source = "github.com/myfork/project2"
17 | #
18 | # [[override]]
19 | #   name = "github.com/x/y"
20 | #   version = "2.4.0"
21 | #
22 | # [prune]
23 | #   non-go = false
24 | #   go-tests = true
25 | #   unused-packages = true
26 | 
27 | ignored = []
28 | 
29 | [prune]
30 |   go-tests = true
31 |   unused-packages = true
32 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/go_above_118.go:
--------------------------------------------------------------------------------
 1 | //+build go1.18
 2 | 
 3 | package reflect2
 4 | 
 5 | import (
 6 | 	"unsafe"
 7 | )
 8 | 
 9 | // m escapes into the return value, but the caller of mapiterinit
10 | // doesn't let the return value escape.
11 | //go:noescape
12 | //go:linkname mapiterinit reflect.mapiterinit
13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter)
14 | 
15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
16 | 	var it hiter
17 | 	mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it)
18 | 	return &UnsafeMapIterator{
19 | 		hiter:      &it,
20 | 		pKeyRType:  type2.pKeyRType,
21 | 		pElemRType: type2.pElemRType,
22 | 	}
23 | }


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/go_above_19.go:
--------------------------------------------------------------------------------
 1 | //+build go1.9
 2 | 
 3 | package reflect2
 4 | 
 5 | import (
 6 | 	"unsafe"
 7 | )
 8 | 
 9 | //go:linkname resolveTypeOff reflect.resolveTypeOff
10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer
11 | 
12 | //go:linkname makemap reflect.makemap
13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer)
14 | 
15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer {
16 | 	return makemap(rtype, cap)
17 | }
18 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/go_below_118.go:
--------------------------------------------------------------------------------
 1 | //+build !go1.18
 2 | 
 3 | package reflect2
 4 | 
 5 | import (
 6 | 	"unsafe"
 7 | )
 8 | 
 9 | // m escapes into the return value, but the caller of mapiterinit
10 | // doesn't let the return value escape.
11 | //go:noescape
12 | //go:linkname mapiterinit reflect.mapiterinit
13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter)
14 | 
15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator {
16 | 	return &UnsafeMapIterator{
17 | 		hiter:      mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)),
18 | 		pKeyRType:  type2.pKeyRType,
19 | 		pElemRType: type2.pElemRType,
20 | 	}
21 | }


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/reflect2_amd64.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/reflect2_amd64.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/reflect2_kind.go:
--------------------------------------------------------------------------------
 1 | package reflect2
 2 | 
 3 | import (
 4 | 	"reflect"
 5 | 	"unsafe"
 6 | )
 7 | 
 8 | // DefaultTypeOfKind return the non aliased default type for the kind
 9 | func DefaultTypeOfKind(kind reflect.Kind) Type {
10 | 	return kindTypes[kind]
11 | }
12 | 
13 | var kindTypes = map[reflect.Kind]Type{
14 | 	reflect.Bool:          TypeOf(true),
15 | 	reflect.Uint8:         TypeOf(uint8(0)),
16 | 	reflect.Int8:          TypeOf(int8(0)),
17 | 	reflect.Uint16:        TypeOf(uint16(0)),
18 | 	reflect.Int16:         TypeOf(int16(0)),
19 | 	reflect.Uint32:        TypeOf(uint32(0)),
20 | 	reflect.Int32:         TypeOf(int32(0)),
21 | 	reflect.Uint64:        TypeOf(uint64(0)),
22 | 	reflect.Int64:         TypeOf(int64(0)),
23 | 	reflect.Uint:          TypeOf(uint(0)),
24 | 	reflect.Int:           TypeOf(int(0)),
25 | 	reflect.Float32:       TypeOf(float32(0)),
26 | 	reflect.Float64:       TypeOf(float64(0)),
27 | 	reflect.Uintptr:       TypeOf(uintptr(0)),
28 | 	reflect.String:        TypeOf(""),
29 | 	reflect.UnsafePointer: TypeOf(unsafe.Pointer(nil)),
30 | }
31 | 


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_386.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_386.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_arm.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_arm.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_arm64.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_arm64.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/relfect2_s390x.s:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjqzhang/go-fastdfs/d2f3218640c0dc04177280b064c106f6a3358308/vendor/github.com/modern-go/reflect2/relfect2_s390x.s


--------------------------------------------------------------------------------
/vendor/github.com/modern-go/reflect2/safe_struct.go:
--------------------------------------------------------------------------------
 1 | package reflect2
 2 | 
 3 | type safeStructType struct {
 4 | 	safeType
 5 | }
 6 | 
 7 | func (type2 *safeStructType) FieldByName(name string) StructField {
 8 | 	field, found := type2.Type.FieldByName(name)
 9 | 	if !found {
10 | 		panic("field " + name + " not found")
11 | 	}
12 | 	return &safeField{StructField: field}
13 | }
14 | 
15 | func (type2 *safeStructType) Field(i int) StructField {
16 | 	return &safeField{StructField: type2.Type.Field(i)}
17 | }
18 | 
19 | func (type2 *safeStructType) FieldByIndex(index []int) StructField {
20 | 	return &safeField{StructField: type2.Type.FieldByIndex(index)}
21 | }
22 | 
23 | func (type2 *safeStructType) FieldByNameFunc(match func(string) bool) StructField {
24 | 	field, found := type2.Type.FieldByNameFunc(match)
25 | 	if !found {
26 | 		panic("field match condition not found in " + type2.Type.String())
27 | 	}
28 | 	return &safeField{StructField: field}
29 | }
30 | 


--------------------------------------------------------------------------------
/vendor/github.com/nfnt/resize/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | 
3 | go:
4 |   - "1.x"
5 |   - "1.1"
6 |   - "1.4"
7 |   - "1.10"
8 | 


--------------------------------------------------------------------------------
/vendor/github.com/nfnt/resize/LICENSE:
--------------------------------------------------------------------------------
 1 | Copyright (c) 2012, Jan Schlicht <jan.schlicht@gmail.com>
 2 | 
 3 | Permission to use, copy, modify, and/or distribute this software for any purpose
 4 | with or without fee is hereby granted, provided that the above copyright notice
 5 | and this permission notice appear in all copies.
 6 | 
 7 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 8 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
 9 | FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11 | OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
12 | TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
13 | THIS SOFTWARE.
14 | 


--------------------------------------------------------------------------------
/vendor/github.com/power-devops/perfstat/config.go:
--------------------------------------------------------------------------------
 1 | // +build aix
 2 | 
 3 | package perfstat
 4 | 
 5 | /*
 6 | #cgo LDFLAGS: -lperfstat
 7 | 
 8 | #include <libperfstat.h>
 9 | */
10 | import "C"
11 | 
12 | func EnableLVMStat() {
13 | 	C.perfstat_config(C.PERFSTAT_ENABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil)
14 | }
15 | 
16 | func DisableLVMStat() {
17 | 	C.perfstat_config(C.PERFSTAT_DISABLE|C.PERFSTAT_LV|C.PERFSTAT_VG, nil)
18 | }
19 | 


--------------------------------------------------------------------------------
/vendor/github.com/power-devops/perfstat/fsstat.go:
--------------------------------------------------------------------------------
 1 | // +build aix
 2 | 
 3 | package perfstat
 4 | 
 5 | /*
 6 | #include "c_helpers.h"
 7 | */
 8 | import "C"
 9 | 
10 | import (
11 | 	"fmt"
12 | )
13 | 
14 | func FileSystemStat() ([]FileSystem, error) {
15 | 	var fsinfo *C.struct_fsinfo
16 | 	var nmounts C.int
17 | 
18 | 	fsinfo = C.get_all_fs(&nmounts)
19 | 	if nmounts <= 0 {
20 | 		return nil, fmt.Errorf("No mounts found")
21 | 	}
22 | 
23 | 	fs := make([]FileSystem, nmounts)
24 | 	for i := 0; i < int(nmounts); i++ {
25 | 		f := C.get_filesystem_stat(fsinfo, C.int(i))
26 | 		if f != nil {
27 | 			fs[i] = fsinfo2filesystem(f)
28 | 		}
29 | 	}
30 | 	return fs, nil
31 | }
32 | 


--------------------------------------------------------------------------------
/vendor/github.com/power-devops/perfstat/lparstat.go:
--------------------------------------------------------------------------------
 1 | // +build aix
 2 | 
 3 | package perfstat
 4 | 
 5 | /*
 6 | #cgo LDFLAGS: -lperfstat
 7 | 
 8 | #include <libperfstat.h>
 9 | */
10 | import "C"
11 | 
12 | import (
13 | 	"fmt"
14 | )
15 | 
16 | func PartitionStat() (*PartitionConfig, error) {
17 | 	var part C.perfstat_partition_config_t
18 | 
19 | 	rc := C.perfstat_partition_config(nil, &part, C.sizeof_perfstat_partition_config_t, 1)
20 | 	if rc != 1 {
21 | 		return nil, fmt.Errorf("perfstat_partition_config() error")
22 | 	}
23 | 	p := perfstatpartitionconfig2partitionconfig(part)
24 | 	return &p, nil
25 | 
26 | }
27 | 


--------------------------------------------------------------------------------
/vendor/github.com/power-devops/perfstat/uptime.go:
--------------------------------------------------------------------------------
 1 | // +build aix
 2 | 
 3 | package perfstat
 4 | 
 5 | /*
 6 | #include "c_helpers.h"
 7 | */
 8 | import "C"
 9 | 
10 | import (
11 | 	"fmt"
12 | 	"time"
13 | )
14 | 
15 | func timeSince(ts uint64) uint64 {
16 | 	return uint64(time.Now().Unix()) - ts
17 | }
18 | 
19 | // BootTime() returns the time of the last boot in UNIX seconds
20 | func BootTime() (uint64, error) {
21 | 	sec := C.boottime()
22 | 	if sec == -1 {
23 | 		return 0, fmt.Errorf("Can't determine boot time")
24 | 	}
25 | 	return uint64(sec), nil
26 | }
27 | 
28 | // UptimeSeconds() calculates uptime in seconds
29 | func UptimeSeconds() (uint64, error) {
30 | 	boot, err := BootTime()
31 | 	if err != nil {
32 | 		return 0, err
33 | 	}
34 | 	return timeSince(boot), nil
35 | }
36 | 


--------------------------------------------------------------------------------
/vendor/github.com/radovskyb/watcher/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go:
3 |   - 1.7
4 |   - tip


--------------------------------------------------------------------------------
/vendor/github.com/radovskyb/watcher/ishidden.go:
--------------------------------------------------------------------------------
 1 | // +build !windows
 2 | 
 3 | package watcher
 4 | 
 5 | import (
 6 | 	"path/filepath"
 7 | 	"strings"
 8 | )
 9 | 
10 | func isHiddenFile(path string) (bool, error) {
11 | 	return strings.HasPrefix(filepath.Base(path), "."), nil
12 | }
13 | 


--------------------------------------------------------------------------------
/vendor/github.com/radovskyb/watcher/ishidden_windows.go:
--------------------------------------------------------------------------------
 1 | // +build windows
 2 | 
 3 | package watcher
 4 | 
 5 | import (
 6 | 	"syscall"
 7 | )
 8 | 
 9 | func isHiddenFile(path string) (bool, error) {
10 | 	pointer, err := syscall.UTF16PtrFromString(path)
11 | 	if err != nil {
12 | 		return false, err
13 | 	}
14 | 
15 | 	attributes, err := syscall.GetFileAttributes(pointer)
16 | 	if err != nil {
17 | 		return false, err
18 | 	}
19 | 
20 | 	return attributes&syscall.FILE_ATTRIBUTE_HIDDEN != 0, nil
21 | }
22 | 


--------------------------------------------------------------------------------
/vendor/github.com/radovskyb/watcher/samefile.go:
--------------------------------------------------------------------------------
 1 | // +build !windows
 2 | 
 3 | package watcher
 4 | 
 5 | import "os"
 6 | 
 7 | func sameFile(fi1, fi2 os.FileInfo) bool {
 8 | 	return os.SameFile(fi1, fi2)
 9 | }
10 | 


--------------------------------------------------------------------------------
/vendor/github.com/radovskyb/watcher/samefile_windows.go:
--------------------------------------------------------------------------------
 1 | // +build windows
 2 | 
 3 | package watcher
 4 | 
 5 | import "os"
 6 | 
 7 | func sameFile(fi1, fi2 os.FileInfo) bool {
 8 | 	return fi1.ModTime() == fi2.ModTime() &&
 9 | 		fi1.Size() == fi2.Size() &&
10 | 		fi1.Mode() == fi2.Mode() &&
11 | 		fi1.IsDir() == fi2.IsDir()
12 | }
13 | 


--------------------------------------------------------------------------------
/vendor/github.com/shirou/gopsutil/v3/disk/disk_aix.go:
--------------------------------------------------------------------------------
 1 | //go:build aix
 2 | // +build aix
 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 | 
16 | func SerialNumberWithContext(ctx context.Context, name string) (string, error) {
17 | 	return "", common.ErrNotImplementedError
18 | }
19 | 
20 | func LabelWithContext(ctx context.Context, name string) (string, error) {
21 | 	return "", common.ErrNotImplementedError
22 | }
23 | 


--------------------------------------------------------------------------------
/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_fallback.go:
--------------------------------------------------------------------------------
 1 | //go:build !darwin && !linux && !freebsd && !openbsd && !windows && !solaris && !aix
 2 | // +build !darwin,!linux,!freebsd,!openbsd,!windows,!solaris,!aix
 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 | 
16 | func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, error) {
17 | 	return []PartitionStat{}, common.ErrNotImplementedError
18 | }
19 | 
20 | func UsageWithContext(ctx context.Context, path string) (*UsageStat, error) {
21 | 	return nil, common.ErrNotImplementedError
22 | }
23 | 
24 | func SerialNumberWithContext(ctx context.Context, name string) (string, error) {
25 | 	return "", common.ErrNotImplementedError
26 | }
27 | 
28 | func LabelWithContext(ctx context.Context, name string) (string, error) {
29 | 	return "", common.ErrNotImplementedError
30 | }
31 | 


--------------------------------------------------------------------------------
/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/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/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 cancelation.
10 | func Sleep(ctx context.Context, interval time.Duration) error {
11 | 	timer := time.NewTimer(interval)
12 | 	select {
13 | 	case <-ctx.Done():
14 | 		return ctx.Err()
15 | 	case <-timer.C:
16 | 		return nil
17 | 	}
18 | }
19 | 


--------------------------------------------------------------------------------
/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/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_fallback.go:
--------------------------------------------------------------------------------
 1 | //go:build !darwin && !linux && !freebsd && !openbsd && !solaris && !windows && !plan9 && !aix
 2 | // +build !darwin,!linux,!freebsd,!openbsd,!solaris,!windows,!plan9,!aix
 3 | 
 4 | package mem
 5 | 
 6 | import (
 7 | 	"context"
 8 | 
 9 | 	"github.com/shirou/gopsutil/v3/internal/common"
10 | )
11 | 
12 | func VirtualMemory() (*VirtualMemoryStat, error) {
13 | 	return VirtualMemoryWithContext(context.Background())
14 | }
15 | 
16 | func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
17 | 	return nil, common.ErrNotImplementedError
18 | }
19 | 
20 | func SwapMemory() (*SwapMemoryStat, error) {
21 | 	return SwapMemoryWithContext(context.Background())
22 | }
23 | 
24 | func SwapMemoryWithContext(ctx context.Context) (*SwapMemoryStat, error) {
25 | 	return nil, common.ErrNotImplementedError
26 | }
27 | 
28 | func SwapDevices() ([]*SwapDevice, error) {
29 | 	return SwapDevicesWithContext(context.Background())
30 | }
31 | 
32 | func SwapDevicesWithContext(ctx context.Context) ([]*SwapDevice, error) {
33 | 	return nil, common.ErrNotImplementedError
34 | }
35 | 


--------------------------------------------------------------------------------
/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/sjqzhang/googleAuthenticator/auth.go:
--------------------------------------------------------------------------------
 1 | /*******************************************************
 2 | 	File Name: auth.go
 3 | 	Author: An
 4 | 	Mail:lijian@cmcm.com
 5 | 	Created Time: 14/11/25 - 10:24:49
 6 | 	Modify Time: 14/11/25 - 10:24:49
 7 |  *******************************************************/
 8 | package googleAuthenticator
 9 | 
10 | var (
11 | 	Table = []string{
12 | 		"A", "B", "C", "D", "E", "F", "G", "H", // 7
13 | 		"I", "J", "K", "L", "M", "N", "O", "P", // 15
14 | 		"Q", "R", "S", "T", "U", "V", "W", "X", // 23
15 | 		"Y", "Z", "2", "3", "4", "5", "6", "7", // 31
16 | 		"=", // padding char
17 | 	}
18 | 
19 | 	allowedValues = map[int]string{
20 | 		6: "======",
21 | 		4: "====",
22 | 		3: "===",
23 | 		1: "=",
24 | 		0: "",
25 | 	}
26 | )
27 | 
28 | func arrayFlip(oldArr []string) map[string]int {
29 | 	newArr := make(map[string]int, len(oldArr))
30 | 	for key, value := range oldArr {
31 | 		newArr[value] = key
32 | 	}
33 | 	return newArr
34 | }
35 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/googleAuthenticator/error.go:
--------------------------------------------------------------------------------
 1 | /*******************************************************
 2 | 	File Name: error.go
 3 | 	Author: An
 4 | 	Mail:lijian@cmcm.com
 5 | 	Created Time: 14/11/26 - 10:23:52
 6 | 	Modify Time: 14/11/26 - 10:23:52
 7 |  *******************************************************/
 8 | package googleAuthenticator
 9 | 
10 | import "errors"
11 | 
12 | var (
13 | 	ErrSecretLengthLss     = errors.New("secret length lss 6 error")
14 | 	ErrSecretLength        = errors.New("secret length error")
15 | 	ErrPaddingCharCount    = errors.New("padding char count error")
16 | 	ErrPaddingCharLocation = errors.New("padding char Location error")
17 | 	ErrParam               = errors.New("param error")
18 | )
19 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/googleAuthenticator/hmac.go:
--------------------------------------------------------------------------------
 1 | /*******************************************************
 2 | 	File Name: hmac.go
 3 | 	Author: An
 4 | 	Mail:lijian@cmcm.com
 5 | 	Created Time: 14/11/25 - 16:16:09
 6 | 	Modify Time: 14/11/25 - 16:16:09
 7 |  *******************************************************/
 8 | package googleAuthenticator
 9 | 
10 | import (
11 | 	"crypto/hmac"
12 | 	"crypto/sha1"
13 | )
14 | 
15 | func HmacSha1(key, data []byte) []byte {
16 | 	mac := hmac.New(sha1.New, key)
17 | 	mac.Write(data)
18 | 	return mac.Sum(nil)
19 | }
20 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/seelog/internals_baseerror.go:
--------------------------------------------------------------------------------
 1 | package seelog
 2 | 
 3 | // Base struct for custom errors.
 4 | type baseError struct {
 5 | 	message string
 6 | }
 7 | 
 8 | func (be baseError) Error() string {
 9 | 	return be.message
10 | }
11 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/.gitignore:
--------------------------------------------------------------------------------
1 | tusd/data
2 | cover.out
3 | data/
4 | node_modules/
5 | .DS_Store
6 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/LICENSE.txt:
--------------------------------------------------------------------------------
 1 | Copyright (c) 2013-2017 Transloadit Ltd and Contributors
 2 | 
 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of
 4 | this software and associated documentation files (the "Software"), to deal in
 5 | the Software without restriction, including without limitation the rights to
 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 7 | of the Software, and to permit persons to whom the Software is furnished to do
 8 | so, subject to the following conditions:
 9 | 
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 | 
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/appveyor.yml:
--------------------------------------------------------------------------------
 1 | clone_folder: c:\projects\go\src\github.com\tus\tusd
 2 | 
 3 | environment:
 4 |   GOPATH: c:\projects\go
 5 |   GO15VENDOREXPERIMENT: 1
 6 | 
 7 | install:
 8 |   - git submodule update --init --recursive
 9 | 
10 | build_script:
11 |   - set PATH=%GOPATH%\bin;%PATH%
12 |   - go env
13 |   - go version
14 |   - go get ./s3store
15 |   - go get ./consullocker
16 |   - go get ./prometheuscollector
17 |   - go get github.com/hashicorp/consul
18 | 
19 | test_script:
20 |   - go test .
21 |   - go test ./filestore
22 |   - go test ./limitedstore
23 |   - go test ./memorylocker
24 |   - go test ./s3store
25 |   - go vet ./prometheuscollector
26 |   - go test ./gcsstore
27 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/log.go:
--------------------------------------------------------------------------------
 1 | package tusd
 2 | 
 3 | import (
 4 | 	"log"
 5 | )
 6 | 
 7 | func (h *UnroutedHandler) log(eventName string, details ...string) {
 8 | 	LogEvent(h.logger, eventName, details...)
 9 | }
10 | 
11 | func LogEvent(logger *log.Logger, eventName string, details ...string) {
12 | 	result := make([]byte, 0, 100)
13 | 
14 | 	result = append(result, `event="`...)
15 | 	result = append(result, eventName...)
16 | 	result = append(result, `" `...)
17 | 
18 | 	for i := 0; i < len(details); i += 2 {
19 | 		result = append(result, details[i]...)
20 | 		result = append(result, `="`...)
21 | 		result = append(result, details[i+1]...)
22 | 		result = append(result, `" `...)
23 | 	}
24 | 
25 | 	result = append(result, "\n"...)
26 | 	logger.Output(2, string(result))
27 | }
28 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/tusd.code-workspace:
--------------------------------------------------------------------------------
1 | {
2 | 	"folders": [
3 | 		{
4 | 			"path": "."
5 | 		}
6 | 	],
7 | 	"settings": {}
8 | }
9 | 


--------------------------------------------------------------------------------
/vendor/github.com/sjqzhang/tusd/uid/uid.go:
--------------------------------------------------------------------------------
 1 | package uid
 2 | 
 3 | import (
 4 | 	"crypto/rand"
 5 | 	"encoding/hex"
 6 | 	"io"
 7 | )
 8 | 
 9 | // uid returns a unique id. These ids consist of 128 bits from a
10 | // cryptographically strong pseudo-random generator and are like uuids, but
11 | // without the dashes and significant bits.
12 | //
13 | // See: http://en.wikipedia.org/wiki/UUID#Random_UUID_probability_of_duplicates
14 | func Uid() string {
15 | 	id := make([]byte, 16)
16 | 	_, err := io.ReadFull(rand.Reader, id)
17 | 	if err != nil {
18 | 		// This is probably an appropriate way to handle errors from our source
19 | 		// for random bits.
20 | 		panic(err)
21 | 	}
22 | 	return hex.EncodeToString(id)
23 | }
24 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.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 | # Vim files https://github.com/github/gitignore/blob/master/Global/Vim.gitignore
23 | # swap
24 | [._]*.s[a-w][a-z]
25 | [._]s[a-w][a-z]
26 | # session
27 | Session.vim
28 | # temporary
29 | .netrwhist
30 | *~
31 | # auto-generated tag files
32 | tags
33 | 
34 | *.exe
35 | cobra.test
36 | bin
37 | 
38 | .idea/
39 | *.iml
40 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.golangci.yml:
--------------------------------------------------------------------------------
 1 | run:
 2 |   deadline: 5m
 3 | 
 4 | linters:
 5 |   disable-all: true
 6 |   enable:
 7 |     #- bodyclose
 8 |     - deadcode
 9 |     #- depguard
10 |     #- dogsled
11 |     #- dupl
12 |     - errcheck
13 |     #- exhaustive
14 |     #- funlen
15 |     - gas
16 |     #- gochecknoinits
17 |     - goconst
18 |     #- gocritic
19 |     #- gocyclo
20 |     #- gofmt
21 |     - goimports
22 |     - golint
23 |     #- gomnd
24 |     #- goprintffuncname
25 |     #- gosec
26 |     #- gosimple
27 |     - govet
28 |     - ineffassign
29 |     - interfacer
30 |     #- lll
31 |     - maligned
32 |     - megacheck
33 |     #- misspell
34 |     #- nakedret
35 |     #- noctx
36 |     #- nolintlint
37 |     #- rowserrcheck
38 |     #- scopelint
39 |     #- staticcheck
40 |     - structcheck
41 |     #- stylecheck
42 |     #- typecheck
43 |     - unconvert
44 |     #- unparam
45 |     #- unused
46 |     - varcheck
47 |     #- whitespace
48 |   fast: false
49 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.mailmap:
--------------------------------------------------------------------------------
1 | Steve Francia <steve.francia@gmail.com>
2 | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
3 | Fabiano Franz <ffranz@redhat.com>                   <contact@fabianofranz.com>
4 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | stages:
 4 |   - test
 5 |   - build
 6 | 
 7 | go:
 8 |   - 1.12.x
 9 |   - 1.13.x
10 |   - tip
11 | 
12 | env: GO111MODULE=on
13 | 
14 | before_install:
15 |   - go get -u github.com/kyoh86/richgo
16 |   - go get -u github.com/mitchellh/gox
17 |   - curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
18 | 
19 | matrix:
20 |   allow_failures:
21 |     - go: tip
22 |   include:
23 |     - stage: build
24 |       go: 1.13.x
25 |       script: make cobra_generator
26 | 
27 | script:
28 |  - make test
29 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/command_notwin.go:
--------------------------------------------------------------------------------
1 | // +build !windows
2 | 
3 | package cobra
4 | 
5 | var preExecHookFn func(*Command)
6 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/command_win.go:
--------------------------------------------------------------------------------
 1 | // +build windows
 2 | 
 3 | package cobra
 4 | 
 5 | import (
 6 | 	"fmt"
 7 | 	"os"
 8 | 	"time"
 9 | 
10 | 	"github.com/inconshreveable/mousetrap"
11 | )
12 | 
13 | var preExecHookFn = preExecHook
14 | 
15 | func preExecHook(c *Command) {
16 | 	if MousetrapHelpText != "" && mousetrap.StartedByExplorer() {
17 | 		c.Print(MousetrapHelpText)
18 | 		if MousetrapDisplayDuration > 0 {
19 | 			time.Sleep(MousetrapDisplayDuration)
20 | 		} else {
21 | 			c.Println("Press return to continue...")
22 | 			fmt.Scanln()
23 | 		}
24 | 		os.Exit(1)
25 | 	}
26 | }
27 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/fish_completions.md:
--------------------------------------------------------------------------------
1 | ## Generating Fish Completions For Your cobra.Command
2 | 
3 | Please refer to [Shell Completions](shell_completions.md) for details.
4 | 
5 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/cobra/powershell_completions.md:
--------------------------------------------------------------------------------
1 | # Generating PowerShell Completions For Your Own cobra.Command
2 | 
3 | Please refer to [Shell Completions](shell_completions.md#powershell-completions) for details.
4 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/*
2 | 
3 | 


--------------------------------------------------------------------------------
/vendor/github.com/spf13/pflag/.travis.yml:
--------------------------------------------------------------------------------
 1 | sudo: false
 2 | 
 3 | language: go
 4 | 
 5 | go:
 6 |   - 1.9.x
 7 |   - 1.10.x
 8 |   - 1.11.x
 9 |   - tip
10 | 
11 | matrix:
12 |   allow_failures:
13 |     - go: tip
14 | 
15 | install:
16 |   - go get golang.org/x/lint/golint
17 |   - export PATH=$GOPATH/bin:$PATH
18 |   - go install ./...
19 | 
20 | script:
21 |   - verify/all.sh -v
22 |   - go test ./...
23 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/errors.go:
--------------------------------------------------------------------------------
 1 | // Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
 2 | // All rights reserved.
 3 | //
 4 | // Use of this source code is governed by a BSD-style license that can be
 5 | // found in the LICENSE file.
 6 | 
 7 | package leveldb
 8 | 
 9 | import (
10 | 	"github.com/syndtr/goleveldb/leveldb/errors"
11 | )
12 | 
13 | // Common errors.
14 | var (
15 | 	ErrNotFound         = errors.ErrNotFound
16 | 	ErrReadOnly         = errors.New("leveldb: read-only mode")
17 | 	ErrSnapshotReleased = errors.New("leveldb: snapshot released")
18 | 	ErrIterReleased     = errors.New("leveldb: iterator released")
19 | 	ErrClosed           = errors.New("leveldb: closed")
20 | )
21 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/filter.go:
--------------------------------------------------------------------------------
 1 | // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
 2 | // All rights reserved.
 3 | //
 4 | // Use of this source code is governed by a BSD-style license that can be
 5 | // found in the LICENSE file.
 6 | 
 7 | package leveldb
 8 | 
 9 | import (
10 | 	"github.com/syndtr/goleveldb/leveldb/filter"
11 | )
12 | 
13 | type iFilter struct {
14 | 	filter.Filter
15 | }
16 | 
17 | func (f iFilter) Contains(filter, key []byte) bool {
18 | 	return f.Filter.Contains(filter, internalKey(key).ukey())
19 | }
20 | 
21 | func (f iFilter) NewGenerator() filter.FilterGenerator {
22 | 	return iFilterGenerator{f.Filter.NewGenerator()}
23 | }
24 | 
25 | type iFilterGenerator struct {
26 | 	filter.FilterGenerator
27 | }
28 | 
29 | func (g iFilterGenerator) Add(key []byte) {
30 | 	g.FilterGenerator.Add(internalKey(key).ukey())
31 | }
32 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/storage/file_storage_nacl.go:
--------------------------------------------------------------------------------
 1 | // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
 2 | // All rights reserved.
 3 | //
 4 | // Use of this source code is governed by a BSD-style license that can be
 5 | // found in the LICENSE file.
 6 | 
 7 | // +build nacl
 8 | 
 9 | package storage
10 | 
11 | import (
12 | 	"os"
13 | 	"syscall"
14 | )
15 | 
16 | func newFileLock(path string, readOnly bool) (fl fileLock, err error) {
17 | 	return nil, syscall.ENOTSUP
18 | }
19 | 
20 | func setFileLock(f *os.File, readOnly, lock bool) error {
21 | 	return syscall.ENOTSUP
22 | }
23 | 
24 | func rename(oldpath, newpath string) error {
25 | 	return syscall.ENOTSUP
26 | }
27 | 
28 | func isErrInvalid(err error) bool {
29 | 	return false
30 | }
31 | 
32 | func syncDir(name string) error {
33 | 	return syscall.ENOTSUP
34 | }
35 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/util/crc32.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2011 The LevelDB-Go Authors. All rights reserved.
 2 | //
 3 | // Use of this source code is governed by a BSD-style license that can be
 4 | // found in the LICENSE file.
 5 | 
 6 | package util
 7 | 
 8 | import (
 9 | 	"hash/crc32"
10 | )
11 | 
12 | var table = crc32.MakeTable(crc32.Castagnoli)
13 | 
14 | // CRC is a CRC-32 checksum computed using Castagnoli's polynomial.
15 | type CRC uint32
16 | 
17 | // NewCRC creates a new crc based on the given bytes.
18 | func NewCRC(b []byte) CRC {
19 | 	return CRC(0).Update(b)
20 | }
21 | 
22 | // Update updates the crc with the given bytes.
23 | func (c CRC) Update(b []byte) CRC {
24 | 	return CRC(crc32.Update(uint32(c), table, b))
25 | }
26 | 
27 | // Value returns a masked crc.
28 | func (c CRC) Value() uint32 {
29 | 	return uint32(c>>15|c<<17) + 0xa282ead8
30 | }
31 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/util/hash.go:
--------------------------------------------------------------------------------
 1 | // Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
 2 | // All rights reserved.
 3 | //
 4 | // Use of this source code is governed by a BSD-style license that can be
 5 | // found in the LICENSE file.
 6 | 
 7 | package util
 8 | 
 9 | import (
10 | 	"encoding/binary"
11 | )
12 | 
13 | // Hash return hash of the given data.
14 | func Hash(data []byte, seed uint32) uint32 {
15 | 	// Similar to murmur hash
16 | 	const (
17 | 		m = uint32(0xc6a4a793)
18 | 		r = uint32(24)
19 | 	)
20 | 	var (
21 | 		h = seed ^ (uint32(len(data)) * m)
22 | 		i int
23 | 	)
24 | 
25 | 	for n := len(data) - len(data)%4; i < n; i += 4 {
26 | 		h += binary.LittleEndian.Uint32(data[i:])
27 | 		h *= m
28 | 		h ^= (h >> 16)
29 | 	}
30 | 
31 | 	switch len(data) - i {
32 | 	default:
33 | 		panic("not reached")
34 | 	case 3:
35 | 		h += uint32(data[i+2]) << 16
36 | 		fallthrough
37 | 	case 2:
38 | 		h += uint32(data[i+1]) << 8
39 | 		fallthrough
40 | 	case 1:
41 | 		h += uint32(data[i])
42 | 		h *= m
43 | 		h ^= (h >> r)
44 | 	case 0:
45 | 	}
46 | 
47 | 	return h
48 | }
49 | 


--------------------------------------------------------------------------------
/vendor/github.com/syndtr/goleveldb/leveldb/util/range.go:
--------------------------------------------------------------------------------
 1 | // Copyright (c) 2014, Suryandaru Triandana <syndtr@gmail.com>
 2 | // All rights reserved.
 3 | //
 4 | // Use of this source code is governed by a BSD-style license that can be
 5 | // found in the LICENSE file.
 6 | 
 7 | package util
 8 | 
 9 | // Range is a key range.
10 | type Range struct {
11 | 	// Start of the key range, include in the range.
12 | 	Start []byte
13 | 
14 | 	// Limit of the key range, not include in the range.
15 | 	Limit []byte
16 | }
17 | 
18 | // BytesPrefix returns key range that satisfy the given prefix.
19 | // This only applicable for the standard 'bytes comparer'.
20 | func BytesPrefix(prefix []byte) *Range {
21 | 	var limit []byte
22 | 	for i := len(prefix) - 1; i >= 0; i-- {
23 | 		c := prefix[i]
24 | 		if c < 0xff {
25 | 			limit = make([]byte, i+1)
26 | 			copy(limit, prefix)
27 | 			limit[i] = c + 1
28 | 			break
29 | 		}
30 | 	}
31 | 	return &Range{prefix, limit}
32 | }
33 | 


--------------------------------------------------------------------------------
/vendor/github.com/tklauser/go-sysconf/.cirrus.yml:
--------------------------------------------------------------------------------
 1 | env:
 2 |   CIRRUS_CLONE_DEPTH: 1
 3 |   GO_VERSION: go1.19.1
 4 | 
 5 | freebsd_12_task:
 6 |   freebsd_instance:
 7 |     image_family: freebsd-12-3
 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_13_task:
16 |   freebsd_instance:
17 |     image_family: freebsd-13-0
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 | // +build darwin dragonfly freebsd netbsd openbsd
 7 | 
 8 | package sysconf
 9 | 
10 | import "golang.org/x/sys/unix"
11 | 
12 | func pathconf(path string, name int) int64 {
13 | 	if val, err := unix.Pathconf(path, name); err == nil {
14 | 		return int64(val)
15 | 	}
16 | 	return -1
17 | }
18 | 
19 | func sysctl32(name string) int64 {
20 | 	if val, err := unix.SysctlUint32(name); err == nil {
21 | 		return int64(val)
22 | 	}
23 | 	return -1
24 | }
25 | 
26 | func sysctl64(name string) int64 {
27 | 	if val, err := unix.SysctlUint64(name); err == nil {
28 | 		return int64(val)
29 | 	}
30 | 	return -1
31 | }
32 | 
33 | func yesno(val int64) int64 {
34 | 	if val == 0 {
35 | 		return -1
36 | 	}
37 | 	return val
38 | }
39 | 


--------------------------------------------------------------------------------
/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 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris
 7 | 
 8 | package sysconf
 9 | 
10 | import (
11 | 	"fmt"
12 | 	"runtime"
13 | )
14 | 
15 | func sysconf(name int) (int64, error) {
16 | 	return -1, fmt.Errorf("unsupported on %s", runtime.GOOS)
17 | }
18 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd,386
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffff
11 | 	_SHRT_MAX = 0x7fff
12 | )
13 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd,amd64
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffffffffffff
11 | 	_SHRT_MAX = 0x7fff
12 | )
13 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd,arm
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffff
11 | 	_SHRT_MAX = 0x7fff
12 | )
13 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd,arm64
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffffffffffff
11 | 	_SHRT_MAX = 0x7fff
12 | )
13 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd,riscv64
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffffffffffff
11 | 	_SHRT_MAX = 0x7fff
12 | )
13 | 


--------------------------------------------------------------------------------
/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 | // +build netbsd,386
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffff
11 | )
12 | 


--------------------------------------------------------------------------------
/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 | // +build netbsd,amd64
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffffffffffff
11 | )
12 | 


--------------------------------------------------------------------------------
/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 | // +build netbsd,arm
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffff
11 | )
12 | 


--------------------------------------------------------------------------------
/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 | // +build netbsd,arm64
 6 | 
 7 | package sysconf
 8 | 
 9 | const (
10 | 	_LONG_MAX = 0x7fffffffffffffff
11 | )
12 | 


--------------------------------------------------------------------------------
/vendor/github.com/tklauser/numcpus/.cirrus.yml:
--------------------------------------------------------------------------------
 1 | env:
 2 |   CIRRUS_CLONE_DEPTH: 1
 3 |   GO_VERSION: go1.19.1
 4 | 
 5 | freebsd_12_task:
 6 |   freebsd_instance:
 7 |     image_family: freebsd-12-3
 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 -buildvcs=false -v ./...
13 |   test_script: bin/${GO_VERSION} test -buildvcs=false -race ./...
14 | 


--------------------------------------------------------------------------------
/vendor/github.com/yusufpapurcu/wmi/LICENSE:
--------------------------------------------------------------------------------
 1 | The MIT License (MIT)
 2 | 
 3 | Copyright (c) 2013 Stack Exchange
 4 | 
 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of
 6 | this software and associated documentation files (the "Software"), to deal in
 7 | the Software without restriction, including without limitation the rights to
 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 9 | the Software, and to permit persons to whom the Software is furnished to do so,
10 | subject to the following conditions:
11 | 
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 | 
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 | 


--------------------------------------------------------------------------------
/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 | 
 8 | ---
 9 | 
10 | NOTE: This project is no longer being actively maintained.  If you would like
11 | to become its new owner, please contact tlimoncelli at stack over flow dot com.
12 | 
13 | ---
14 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/internal/unsafeheader/unsafeheader.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 unsafeheader contains header declarations for the Go runtime's
 6 | // slice and string implementations.
 7 | //
 8 | // This package allows x/sys to use types equivalent to
 9 | // reflect.SliceHeader and reflect.StringHeader without introducing
10 | // a dependency on the (relatively heavy) "reflect" package.
11 | package unsafeheader
12 | 
13 | import (
14 | 	"unsafe"
15 | )
16 | 
17 | // Slice is the runtime representation of a slice.
18 | // It cannot be used safely or portably and its representation may change in a later release.
19 | type Slice struct {
20 | 	Data unsafe.Pointer
21 | 	Len  int
22 | 	Cap  int
23 | }
24 | 
25 | // String is the runtime representation of a string.
26 | // It cannot be used safely or portably and its representation may change in a later release.
27 | type String struct {
28 | 	Data unsafe.Pointer
29 | 	Len  int
30 | }
31 | 


--------------------------------------------------------------------------------
/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) && go1.9
 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 7 | // +build go1.9
 8 | 
 9 | package unix
10 | 
11 | import "syscall"
12 | 
13 | type Signal = syscall.Signal
14 | type Errno = syscall.Errno
15 | type SysProcAttr = syscall.SysProcAttr
16 | 


--------------------------------------------------------------------------------
/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 | // +build gc
 7 | 
 8 | #include "textflag.h"
 9 | 
10 | //
11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go
12 | //
13 | 
14 | TEXT ·syscall6(SB),NOSPLIT,$0-88
15 | 	JMP	syscall·syscall6(SB)
16 | 
17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88
18 | 	JMP	syscall·rawSyscall6(SB)
19 | 


--------------------------------------------------------------------------------
/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 | // +build freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | // System call support for 386 BSD
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-28
17 | 	JMP	syscall·Syscall(SB)
18 | 
19 | TEXT	·Syscall6(SB),NOSPLIT,$0-40
20 | 	JMP	syscall·Syscall6(SB)
21 | 
22 | TEXT	·Syscall9(SB),NOSPLIT,$0-52
23 | 	JMP	syscall·Syscall9(SB)
24 | 
25 | TEXT	·RawSyscall(SB),NOSPLIT,$0-28
26 | 	JMP	syscall·RawSyscall(SB)
27 | 
28 | TEXT	·RawSyscall6(SB),NOSPLIT,$0-40
29 | 	JMP	syscall·RawSyscall6(SB)
30 | 


--------------------------------------------------------------------------------
/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 | // +build darwin dragonfly freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | // System call support for AMD64 BSD
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_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 | // +build freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | // System call support for ARM BSD
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-28
17 | 	B	syscall·Syscall(SB)
18 | 
19 | TEXT	·Syscall6(SB),NOSPLIT,$0-40
20 | 	B	syscall·Syscall6(SB)
21 | 
22 | TEXT	·Syscall9(SB),NOSPLIT,$0-52
23 | 	B	syscall·Syscall9(SB)
24 | 
25 | TEXT	·RawSyscall(SB),NOSPLIT,$0-28
26 | 	B	syscall·RawSyscall(SB)
27 | 
28 | TEXT	·RawSyscall6(SB),NOSPLIT,$0-40
29 | 	B	syscall·RawSyscall6(SB)
30 | 


--------------------------------------------------------------------------------
/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 | // +build darwin freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | // System call support for ARM64 BSD
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_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 | // +build darwin freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | //
12 | // System call support for ppc64, BSD
13 | //
14 | 
15 | // Just jump to package syscall's implementation for all these functions.
16 | // The runtime may know about them.
17 | 
18 | TEXT	·Syscall(SB),NOSPLIT,$0-56
19 | 	JMP	syscall·Syscall(SB)
20 | 
21 | TEXT	·Syscall6(SB),NOSPLIT,$0-80
22 | 	JMP	syscall·Syscall6(SB)
23 | 
24 | TEXT	·Syscall9(SB),NOSPLIT,$0-104
25 | 	JMP	syscall·Syscall9(SB)
26 | 
27 | TEXT	·RawSyscall(SB),NOSPLIT,$0-56
28 | 	JMP	syscall·RawSyscall(SB)
29 | 
30 | TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
31 | 	JMP	syscall·RawSyscall6(SB)
32 | 


--------------------------------------------------------------------------------
/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 | // +build darwin freebsd netbsd openbsd
 7 | // +build gc
 8 | 
 9 | #include "textflag.h"
10 | 
11 | // System call support for RISCV64 BSD
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_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 | // +build gc
 7 | 
 8 | #include "textflag.h"
 9 | 
10 | //
11 | // System call support for mips64, OpenBSD
12 | //
13 | 
14 | // Just jump to package syscall's implementation for all these functions.
15 | // The runtime may know about them.
16 | 
17 | TEXT	·Syscall(SB),NOSPLIT,$0-56
18 | 	JMP	syscall·Syscall(SB)
19 | 
20 | TEXT	·Syscall6(SB),NOSPLIT,$0-80
21 | 	JMP	syscall·Syscall6(SB)
22 | 
23 | TEXT	·Syscall9(SB),NOSPLIT,$0-104
24 | 	JMP	syscall·Syscall9(SB)
25 | 
26 | TEXT	·RawSyscall(SB),NOSPLIT,$0-56
27 | 	JMP	syscall·RawSyscall(SB)
28 | 
29 | TEXT	·RawSyscall6(SB),NOSPLIT,$0-80
30 | 	JMP	syscall·RawSyscall6(SB)
31 | 


--------------------------------------------------------------------------------
/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 | // +build gc
 7 | 
 8 | #include "textflag.h"
 9 | 
10 | //
11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go
12 | //
13 | 
14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88
15 | 	JMP	syscall·sysvicall6(SB)
16 | 
17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88
18 | 	JMP	syscall·rawSysvicall6(SB)
19 | 


--------------------------------------------------------------------------------
/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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 7 | 
 8 | package unix
 9 | 
10 | const (
11 | 	R_OK = 0x4
12 | 	W_OK = 0x2
13 | 	X_OK = 0x1
14 | )
15 | 


--------------------------------------------------------------------------------
/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 | // +build aix,ppc
 7 | 
 8 | // Functions to access/create device major and minor numbers matching the
 9 | // encoding used by AIX.
10 | 
11 | package unix
12 | 
13 | // Major returns the major component of a Linux device number.
14 | func Major(dev uint64) uint32 {
15 | 	return uint32((dev >> 16) & 0xffff)
16 | }
17 | 
18 | // Minor returns the minor component of a Linux device number.
19 | func Minor(dev uint64) uint32 {
20 | 	return uint32(dev & 0xffff)
21 | }
22 | 
23 | // Mkdev returns a Linux device number generated from the given major and minor
24 | // components.
25 | func Mkdev(major, minor uint32) uint64 {
26 | 	return uint64(((major) << 16) | (minor))
27 | }
28 | 


--------------------------------------------------------------------------------
/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 | // +build aix,ppc64
 7 | 
 8 | // Functions to access/create device major and minor numbers matching the
 9 | // encoding used AIX.
10 | 
11 | package unix
12 | 
13 | // Major returns the major component of a Linux device number.
14 | func Major(dev uint64) uint32 {
15 | 	return uint32((dev & 0x3fffffff00000000) >> 32)
16 | }
17 | 
18 | // Minor returns the minor component of a Linux device number.
19 | func Minor(dev uint64) uint32 {
20 | 	return uint32((dev & 0x00000000ffffffff) >> 0)
21 | }
22 | 
23 | // Mkdev returns a Linux device number generated from the given major and minor
24 | // components.
25 | func Mkdev(major, minor uint32) uint64 {
26 | 	var DEVNO64 uint64
27 | 	DEVNO64 = 0x8000000000000000
28 | 	return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64)
29 | }
30 | 


--------------------------------------------------------------------------------
/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_dragonfly.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 Dragonfly's sys/types.h header.
 7 | //
 8 | // The information below is extracted and adapted from sys/types.h:
 9 | //
10 | // Minor gives a cookie instead of an index since in order to avoid changing the
11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for
12 | // devices that don't use them.
13 | 
14 | package unix
15 | 
16 | // Major returns the major component of a DragonFlyBSD device number.
17 | func Major(dev uint64) uint32 {
18 | 	return uint32((dev >> 8) & 0xff)
19 | }
20 | 
21 | // Minor returns the minor component of a DragonFlyBSD device number.
22 | func Minor(dev uint64) uint32 {
23 | 	return uint32(dev & 0xffff00ff)
24 | }
25 | 
26 | // Mkdev returns a DragonFlyBSD device number generated from the given major and
27 | // minor components.
28 | func Mkdev(major, minor uint32) uint64 {
29 | 	return (uint64(major) << 8) | uint64(minor)
30 | }
31 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_freebsd.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 FreeBSD's sys/types.h header.
 7 | //
 8 | // The information below is extracted and adapted from sys/types.h:
 9 | //
10 | // Minor gives a cookie instead of an index since in order to avoid changing the
11 | // meanings of bits 0-15 or wasting time and space shifting bits 16-31 for
12 | // devices that don't use them.
13 | 
14 | package unix
15 | 
16 | // Major returns the major component of a FreeBSD device number.
17 | func Major(dev uint64) uint32 {
18 | 	return uint32((dev >> 8) & 0xff)
19 | }
20 | 
21 | // Minor returns the minor component of a FreeBSD device number.
22 | func Minor(dev uint64) uint32 {
23 | 	return uint32(dev & 0xffff00ff)
24 | }
25 | 
26 | // Mkdev returns a FreeBSD device number generated from the given major and
27 | // minor components.
28 | func Mkdev(major, minor uint32) uint64 {
29 | 	return (uint64(major) << 8) | uint64(minor)
30 | }
31 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_netbsd.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 NetBSD's sys/types.h header.
 7 | 
 8 | package unix
 9 | 
10 | // Major returns the major component of a NetBSD device number.
11 | func Major(dev uint64) uint32 {
12 | 	return uint32((dev & 0x000fff00) >> 8)
13 | }
14 | 
15 | // Minor returns the minor component of a NetBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | 	minor := uint32((dev & 0x000000ff) >> 0)
18 | 	minor |= uint32((dev & 0xfff00000) >> 12)
19 | 	return minor
20 | }
21 | 
22 | // Mkdev returns a NetBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | 	dev := (uint64(major) << 8) & 0x000fff00
26 | 	dev |= (uint64(minor) << 12) & 0xfff00000
27 | 	dev |= (uint64(minor) << 0) & 0x000000ff
28 | 	return dev
29 | }
30 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/dev_openbsd.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 OpenBSD's sys/types.h header.
 7 | 
 8 | package unix
 9 | 
10 | // Major returns the major component of an OpenBSD device number.
11 | func Major(dev uint64) uint32 {
12 | 	return uint32((dev & 0x0000ff00) >> 8)
13 | }
14 | 
15 | // Minor returns the minor component of an OpenBSD device number.
16 | func Minor(dev uint64) uint32 {
17 | 	minor := uint32((dev & 0x000000ff) >> 0)
18 | 	minor |= uint32((dev & 0xffff0000) >> 8)
19 | 	return minor
20 | }
21 | 
22 | // Mkdev returns an OpenBSD device number generated from the given major and minor
23 | // components.
24 | func Mkdev(major, minor uint32) uint64 {
25 | 	dev := (uint64(major) << 8) & 0x0000ff00
26 | 	dev |= (uint64(minor) << 8) & 0xffff0000
27 | 	dev |= (uint64(minor) << 0) & 0x000000ff
28 | 	return dev
29 | }
30 | 


--------------------------------------------------------------------------------
/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 | // +build zos,s390x
 7 | 
 8 | // Functions to access/create device major and minor numbers matching the
 9 | // encoding used by z/OS.
10 | //
11 | // The information below is extracted and adapted from <sys/stat.h> macros.
12 | 
13 | package unix
14 | 
15 | // Major returns the major component of a z/OS device number.
16 | func Major(dev uint64) uint32 {
17 | 	return uint32((dev >> 16) & 0x0000FFFF)
18 | }
19 | 
20 | // Minor returns the minor component of a z/OS device number.
21 | func Minor(dev uint64) uint32 {
22 | 	return uint32(dev & 0x0000FFFF)
23 | }
24 | 
25 | // Mkdev returns a z/OS device number generated from the given major and minor
26 | // components.
27 | func Mkdev(major, minor uint32) uint64 {
28 | 	return (uint64(major) << 16) | uint64(minor)
29 | }
30 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/endian_big.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2016 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | //
 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64
 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64
 7 | 
 8 | package unix
 9 | 
10 | const isBigEndian = true
11 | 


--------------------------------------------------------------------------------
/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 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh
 7 | 
 8 | package unix
 9 | 
10 | const isBigEndian = false
11 | 


--------------------------------------------------------------------------------
/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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 7 | 
 8 | // Unix environment variables.
 9 | 
10 | package unix
11 | 
12 | import "syscall"
13 | 
14 | func Getenv(key string) (value string, found bool) {
15 | 	return syscall.Getenv(key)
16 | }
17 | 
18 | func Setenv(key, value string) error {
19 | 	return syscall.Setenv(key, value)
20 | }
21 | 
22 | func Clearenv() {
23 | 	syscall.Clearenv()
24 | }
25 | 
26 | func Environ() []string {
27 | 	return syscall.Environ()
28 | }
29 | 
30 | func Unsetenv(key string) error {
31 | 	return syscall.Unsetenv(key)
32 | }
33 | 


--------------------------------------------------------------------------------
/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 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc
 7 | 
 8 | package unix
 9 | 
10 | func init() {
11 | 	// On 32-bit Linux systems, the fcntl syscall that matches Go's
12 | 	// Flock_t type is SYS_FCNTL64, not SYS_FCNTL.
13 | 	fcntl64Syscall = SYS_FCNTL64
14 | }
15 | 


--------------------------------------------------------------------------------
/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 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos
 7 | 
 8 | package unix
 9 | 
10 | // Set adds fd to the set fds.
11 | func (fds *FdSet) Set(fd int) {
12 | 	fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS))
13 | }
14 | 
15 | // Clear removes fd from the set fds.
16 | func (fds *FdSet) Clear(fd int) {
17 | 	fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS))
18 | }
19 | 
20 | // IsSet returns whether fd is in the set fds.
21 | func (fds *FdSet) IsSet(fd int) bool {
22 | 	return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0
23 | }
24 | 
25 | // Zero clears the set fds.
26 | func (fds *FdSet) Zero() {
27 | 	for i := range fds.Bits {
28 | 		fds.Bits[i] = 0
29 | 	}
30 | }
31 | 


--------------------------------------------------------------------------------
/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 | // +build gccgo,linux,amd64
 7 | 
 8 | package unix
 9 | 
10 | import "syscall"
11 | 
12 | //extern gettimeofday
13 | func realGettimeofday(*Timeval, *byte) int32
14 | 
15 | func gettimeofday(tv *Timeval) (err syscall.Errno) {
16 | 	r := realGettimeofday(tv, nil)
17 | 	if r < 0 {
18 | 		return syscall.GetErrno()
19 | 	}
20 | 	return 0
21 | }
22 | 


--------------------------------------------------------------------------------
/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
 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
 7 | 
 8 | // For Unix, get the pagesize from the runtime.
 9 | 
10 | package unix
11 | 
12 | import "syscall"
13 | 
14 | func Getpagesize() int {
15 | 	return syscall.Getpagesize()
16 | }
17 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/ptrace_darwin.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2020 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build darwin && !ios
 6 | // +build darwin,!ios
 7 | 
 8 | package unix
 9 | 
10 | import "unsafe"
11 | 
12 | func ptrace(request int, pid int, addr uintptr, data uintptr) error {
13 | 	return ptrace1(request, pid, addr, data)
14 | }
15 | 
16 | func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) error {
17 | 	return ptrace1Ptr(request, pid, addr, data)
18 | }
19 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/ptrace_ios.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2020 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build ios
 6 | // +build ios
 7 | 
 8 | package unix
 9 | 
10 | import "unsafe"
11 | 
12 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
13 | 	return ENOTSUP
14 | }
15 | 
16 | func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) {
17 | 	return ENOTSUP
18 | }
19 | 


--------------------------------------------------------------------------------
/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 | // +build darwin,race linux,race freebsd,race
 7 | 
 8 | package unix
 9 | 
10 | import (
11 | 	"runtime"
12 | 	"unsafe"
13 | )
14 | 
15 | const raceenabled = true
16 | 
17 | func raceAcquire(addr unsafe.Pointer) {
18 | 	runtime.RaceAcquire(addr)
19 | }
20 | 
21 | func raceReleaseMerge(addr unsafe.Pointer) {
22 | 	runtime.RaceReleaseMerge(addr)
23 | }
24 | 
25 | func raceReadRange(addr unsafe.Pointer, len int) {
26 | 	runtime.RaceReadRange(addr, len)
27 | }
28 | 
29 | func raceWriteRange(addr unsafe.Pointer, len int) {
30 | 	runtime.RaceWriteRange(addr, len)
31 | }
32 | 


--------------------------------------------------------------------------------
/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 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos
 7 | 
 8 | package unix
 9 | 
10 | import (
11 | 	"unsafe"
12 | )
13 | 
14 | const raceenabled = false
15 | 
16 | func raceAcquire(addr unsafe.Pointer) {
17 | }
18 | 
19 | func raceReleaseMerge(addr unsafe.Pointer) {
20 | }
21 | 
22 | func raceReadRange(addr unsafe.Pointer, len int) {
23 | }
24 | 
25 | func raceWriteRange(addr unsafe.Pointer, len int) {
26 | }
27 | 


--------------------------------------------------------------------------------
/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 | // +build aix dragonfly freebsd linux netbsd openbsd
 7 | 
 8 | package unix
 9 | 
10 | // ReadDirent reads directory entries from fd and writes them into buf.
11 | func ReadDirent(fd int, buf []byte) (n int, err error) {
12 | 	return Getdents(fd, buf)
13 | }
14 | 


--------------------------------------------------------------------------------
/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
 6 | // +build darwin
 7 | 
 8 | package unix
 9 | 
10 | import "unsafe"
11 | 
12 | // ReadDirent reads directory entries from fd and writes them into buf.
13 | func ReadDirent(fd int, buf []byte) (n int, err error) {
14 | 	// Final argument is (basep *uintptr) and the syscall doesn't take nil.
15 | 	// 64 bits should be enough. (32 bits isn't even on 386). Since the
16 | 	// actual system call is getdirentries64, 64 is a good guess.
17 | 	// TODO(rsc): Can we use a single global basep for all calls?
18 | 	var base = (*uintptr)(unsafe.Pointer(new(uint64)))
19 | 	return Getdirentries(fd, buf, base)
20 | }
21 | 


--------------------------------------------------------------------------------
/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 | // +build hurd
 7 | 
 8 | package unix
 9 | 
10 | /*
11 | #include <stdint.h>
12 | int ioctl(int, unsigned long int, uintptr_t);
13 | */
14 | import "C"
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 | // +build 386,hurd
 7 | 
 8 | package unix
 9 | 
10 | const (
11 | 	TIOCGETA = 0x62251713
12 | )
13 | 
14 | type Winsize struct {
15 | 	Row    uint16
16 | 	Col    uint16
17 | 	Xpixel uint16
18 | 	Ypixel uint16
19 | }
20 | 
21 | type Termios struct {
22 | 	Iflag  uint32
23 | 	Oflag  uint32
24 | 	Cflag  uint32
25 | 	Lflag  uint32
26 | 	Cc     [20]uint8
27 | 	Ispeed int32
28 | 	Ospeed int32
29 | }
30 | 


--------------------------------------------------------------------------------
/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 | // +build linux
 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64
 8 | 
 9 | package unix
10 | 
11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH
12 | // values.
13 | 
14 | //sys	Alarm(seconds uint) (remaining uint, err error)
15 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2016 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build amd64 && linux && gc
 6 | // +build amd64,linux,gc
 7 | 
 8 | package unix
 9 | 
10 | import "syscall"
11 | 
12 | //go:noescape
13 | func gettimeofday(tv *Timeval) (err syscall.Errno)
14 | 


--------------------------------------------------------------------------------
/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 | // +build linux,gc
 7 | 
 8 | package unix
 9 | 
10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail.
11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
12 | 
13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't
14 | // fail.
15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr)
16 | 


--------------------------------------------------------------------------------
/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 | // +build linux,gc,386
 7 | 
 8 | package unix
 9 | 
10 | import "syscall"
11 | 
12 | // Underlying system call writes to newoffset via pointer.
13 | // Implemented in assembly to avoid allocation.
14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
15 | 
16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
18 | 


--------------------------------------------------------------------------------
/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 | // +build arm,gc,linux
 7 | 
 8 | package unix
 9 | 
10 | import "syscall"
11 | 
12 | // Underlying system call writes to newoffset via pointer.
13 | // Implemented in assembly to avoid allocation.
14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
15 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_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 && gccgo && 386
 6 | // +build linux,gccgo,386
 7 | 
 8 | package unix
 9 | 
10 | import (
11 | 	"syscall"
12 | 	"unsafe"
13 | )
14 | 
15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
16 | 	var newoffset int64
17 | 	offsetLow := uint32(offset & 0xffffffff)
18 | 	offsetHigh := uint32((offset >> 32) & 0xffffffff)
19 | 	_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
20 | 	return newoffset, err
21 | }
22 | 
23 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
24 | 	fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
25 | 	return int(fd), err
26 | }
27 | 
28 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
29 | 	fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
30 | 	return int(fd), err
31 | }
32 | 


--------------------------------------------------------------------------------
/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 | // +build linux,gccgo,arm
 7 | 
 8 | package unix
 9 | 
10 | import (
11 | 	"syscall"
12 | 	"unsafe"
13 | )
14 | 
15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
16 | 	var newoffset int64
17 | 	offsetLow := uint32(offset & 0xffffffff)
18 | 	offsetHigh := uint32((offset >> 32) & 0xffffffff)
19 | 	_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
20 | 	return newoffset, err
21 | }
22 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_386.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 386 && netbsd
 6 | // +build 386,netbsd
 7 | 
 8 | package unix
 9 | 
10 | func setTimespec(sec, nsec int64) Timespec {
11 | 	return Timespec{Sec: sec, Nsec: int32(nsec)}
12 | }
13 | 
14 | func setTimeval(sec, usec int64) Timeval {
15 | 	return Timeval{Sec: sec, Usec: int32(usec)}
16 | }
17 | 
18 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
19 | 	k.Ident = uint32(fd)
20 | 	k.Filter = uint32(mode)
21 | 	k.Flags = uint32(flags)
22 | }
23 | 
24 | func (iov *Iovec) SetLen(length int) {
25 | 	iov.Len = uint32(length)
26 | }
27 | 
28 | func (msghdr *Msghdr) SetControllen(length int) {
29 | 	msghdr.Controllen = uint32(length)
30 | }
31 | 
32 | func (msghdr *Msghdr) SetIovlen(length int) {
33 | 	msghdr.Iovlen = int32(length)
34 | }
35 | 
36 | func (cmsg *Cmsghdr) SetLen(length int) {
37 | 	cmsg.Len = uint32(length)
38 | }
39 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_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 && netbsd
 6 | // +build amd64,netbsd
 7 | 
 8 | package unix
 9 | 
10 | func setTimespec(sec, nsec int64) Timespec {
11 | 	return Timespec{Sec: sec, Nsec: nsec}
12 | }
13 | 
14 | func setTimeval(sec, usec int64) Timeval {
15 | 	return Timeval{Sec: sec, Usec: int32(usec)}
16 | }
17 | 
18 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
19 | 	k.Ident = uint64(fd)
20 | 	k.Filter = uint32(mode)
21 | 	k.Flags = uint32(flags)
22 | }
23 | 
24 | func (iov *Iovec) SetLen(length int) {
25 | 	iov.Len = uint64(length)
26 | }
27 | 
28 | func (msghdr *Msghdr) SetControllen(length int) {
29 | 	msghdr.Controllen = uint32(length)
30 | }
31 | 
32 | func (msghdr *Msghdr) SetIovlen(length int) {
33 | 	msghdr.Iovlen = int32(length)
34 | }
35 | 
36 | func (cmsg *Cmsghdr) SetLen(length int) {
37 | 	cmsg.Len = uint32(length)
38 | }
39 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2013 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 && netbsd
 6 | // +build arm,netbsd
 7 | 
 8 | package unix
 9 | 
10 | func setTimespec(sec, nsec int64) Timespec {
11 | 	return Timespec{Sec: sec, Nsec: int32(nsec)}
12 | }
13 | 
14 | func setTimeval(sec, usec int64) Timeval {
15 | 	return Timeval{Sec: sec, Usec: int32(usec)}
16 | }
17 | 
18 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
19 | 	k.Ident = uint32(fd)
20 | 	k.Filter = uint32(mode)
21 | 	k.Flags = uint32(flags)
22 | }
23 | 
24 | func (iov *Iovec) SetLen(length int) {
25 | 	iov.Len = uint32(length)
26 | }
27 | 
28 | func (msghdr *Msghdr) SetControllen(length int) {
29 | 	msghdr.Controllen = uint32(length)
30 | }
31 | 
32 | func (msghdr *Msghdr) SetIovlen(length int) {
33 | 	msghdr.Iovlen = int32(length)
34 | }
35 | 
36 | func (cmsg *Cmsghdr) SetLen(length int) {
37 | 	cmsg.Len = uint32(length)
38 | }
39 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_netbsd_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 arm64 && netbsd
 6 | // +build arm64,netbsd
 7 | 
 8 | package unix
 9 | 
10 | func setTimespec(sec, nsec int64) Timespec {
11 | 	return Timespec{Sec: sec, Nsec: nsec}
12 | }
13 | 
14 | func setTimeval(sec, usec int64) Timeval {
15 | 	return Timeval{Sec: sec, Usec: int32(usec)}
16 | }
17 | 
18 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
19 | 	k.Ident = uint64(fd)
20 | 	k.Filter = uint32(mode)
21 | 	k.Flags = uint32(flags)
22 | }
23 | 
24 | func (iov *Iovec) SetLen(length int) {
25 | 	iov.Len = uint64(length)
26 | }
27 | 
28 | func (msghdr *Msghdr) SetControllen(length int) {
29 | 	msghdr.Controllen = uint32(length)
30 | }
31 | 
32 | func (msghdr *Msghdr) SetIovlen(length int) {
33 | 	msghdr.Iovlen = int32(length)
34 | }
35 | 
36 | func (cmsg *Cmsghdr) SetLen(length int) {
37 | 	cmsg.Len = uint32(length)
38 | }
39 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/unix/syscall_openbsd_mips64.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 | func setTimespec(sec, nsec int64) Timespec {
 8 | 	return Timespec{Sec: sec, Nsec: nsec}
 9 | }
10 | 
11 | func setTimeval(sec, usec int64) Timeval {
12 | 	return Timeval{Sec: sec, Usec: usec}
13 | }
14 | 
15 | func SetKevent(k *Kevent_t, fd, mode, flags int) {
16 | 	k.Ident = uint64(fd)
17 | 	k.Filter = int16(mode)
18 | 	k.Flags = uint16(flags)
19 | }
20 | 
21 | func (iov *Iovec) SetLen(length int) {
22 | 	iov.Len = uint64(length)
23 | }
24 | 
25 | func (msghdr *Msghdr) SetControllen(length int) {
26 | 	msghdr.Controllen = uint32(length)
27 | }
28 | 
29 | func (msghdr *Msghdr) SetIovlen(length int) {
30 | 	msghdr.Iovlen = uint32(length)
31 | }
32 | 
33 | func (cmsg *Cmsghdr) SetLen(length int) {
34 | 	cmsg.Len = uint32(length)
35 | }
36 | 
37 | // SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
38 | // of OpenBSD the syscall is called sysctl instead of __sysctl.
39 | const SYS___SYSCTL = SYS_SYSCTL
40 | 


--------------------------------------------------------------------------------
/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 | // +build amd64,solaris
 7 | 
 8 | package unix
 9 | 
10 | func setTimespec(sec, nsec int64) Timespec {
11 | 	return Timespec{Sec: sec, Nsec: nsec}
12 | }
13 | 
14 | func setTimeval(sec, usec int64) Timeval {
15 | 	return Timeval{Sec: sec, Usec: usec}
16 | }
17 | 
18 | func (iov *Iovec) SetLen(length int) {
19 | 	iov.Len = uint64(length)
20 | }
21 | 
22 | func (msghdr *Msghdr) SetIovlen(length int) {
23 | 	msghdr.Iovlen = int32(length)
24 | }
25 | 
26 | func (cmsg *Cmsghdr) SetLen(length int) {
27 | 	cmsg.Len = uint32(length)
28 | }
29 | 


--------------------------------------------------------------------------------
/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 | // +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
 7 | // +build gc
 8 | 
 9 | package unix
10 | 
11 | import "syscall"
12 | 
13 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
15 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno)
16 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno)
17 | 


--------------------------------------------------------------------------------
/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 | // +build linux
 7 | // +build ppc64le ppc64
 8 | // +build gc
 9 | 
10 | package unix
11 | 
12 | import "syscall"
13 | 
14 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
15 | 	return syscall.Syscall(trap, a1, a2, a3)
16 | }
17 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
18 | 	return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
19 | }
20 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
21 | 	return syscall.RawSyscall(trap, a1, a2, a3)
22 | }
23 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
24 | 	return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
25 | }
26 | 


--------------------------------------------------------------------------------
/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 | // +build linux
 7 | 
 8 | package unix
 9 | 
10 | import "runtime"
11 | 
12 | // SysvShmCtl performs control operations on the shared memory segment
13 | // specified by id.
14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
15 | 	if runtime.GOARCH == "arm" ||
16 | 		runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" {
17 | 		cmd |= ipc_64
18 | 	}
19 | 
20 | 	return shmctl(id, cmd, desc)
21 | }
22 | 


--------------------------------------------------------------------------------
/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
 6 | // +build darwin,!ios
 7 | 
 8 | package unix
 9 | 
10 | // SysvShmCtl performs control operations on the shared memory segment
11 | // specified by id.
12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) {
13 | 	return shmctl(id, cmd, desc)
14 | }
15 | 


--------------------------------------------------------------------------------
/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 && go1.9
 6 | // +build windows,go1.9
 7 | 
 8 | package windows
 9 | 
10 | import "syscall"
11 | 
12 | type Errno = syscall.Errno
13 | type SysProcAttr = syscall.SysProcAttr
14 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/empty.s:
--------------------------------------------------------------------------------
 1 | // Copyright 2019 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build !go1.12
 6 | // +build !go1.12
 7 | 
 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11
 9 | // and earlier (see https://golang.org/issue/23311).
10 | 


--------------------------------------------------------------------------------
/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 | // +build windows
 7 | 
 8 | package windows
 9 | 
10 | const (
11 | 	EVENTLOG_SUCCESS          = 0
12 | 	EVENTLOG_ERROR_TYPE       = 1
13 | 	EVENTLOG_WARNING_TYPE     = 2
14 | 	EVENTLOG_INFORMATION_TYPE = 4
15 | 	EVENTLOG_AUDIT_SUCCESS    = 8
16 | 	EVENTLOG_AUDIT_FAILURE    = 16
17 | )
18 | 
19 | //sys	RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
20 | //sys	DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
21 | //sys	ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW
22 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/mksyscall.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2009 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build generate
 6 | // +build generate
 7 | 
 8 | package windows
 9 | 
10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go
11 | 


--------------------------------------------------------------------------------
/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 | // +build windows,race
 7 | 
 8 | package windows
 9 | 
10 | import (
11 | 	"runtime"
12 | 	"unsafe"
13 | )
14 | 
15 | const raceenabled = true
16 | 
17 | func raceAcquire(addr unsafe.Pointer) {
18 | 	runtime.RaceAcquire(addr)
19 | }
20 | 
21 | func raceReleaseMerge(addr unsafe.Pointer) {
22 | 	runtime.RaceReleaseMerge(addr)
23 | }
24 | 
25 | func raceReadRange(addr unsafe.Pointer, len int) {
26 | 	runtime.RaceReadRange(addr, len)
27 | }
28 | 
29 | func raceWriteRange(addr unsafe.Pointer, len int) {
30 | 	runtime.RaceWriteRange(addr, len)
31 | }
32 | 


--------------------------------------------------------------------------------
/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 | // +build windows,!race
 7 | 
 8 | package windows
 9 | 
10 | import (
11 | 	"unsafe"
12 | )
13 | 
14 | const raceenabled = false
15 | 
16 | func raceAcquire(addr unsafe.Pointer) {
17 | }
18 | 
19 | func raceReleaseMerge(addr unsafe.Pointer) {
20 | }
21 | 
22 | func raceReadRange(addr unsafe.Pointer, len int) {
23 | }
24 | 
25 | func raceWriteRange(addr unsafe.Pointer, len int) {
26 | }
27 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/registry/mksyscall.go:
--------------------------------------------------------------------------------
 1 | // Copyright 2015 The Go Authors. All rights reserved.
 2 | // Use of this source code is governed by a BSD-style
 3 | // license that can be found in the LICENSE file.
 4 | 
 5 | //go:build generate
 6 | // +build generate
 7 | 
 8 | package registry
 9 | 
10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go
11 | 


--------------------------------------------------------------------------------
/vendor/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 | // +build windows
 7 | 
 8 | package windows
 9 | 
10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency
11 | 	if val < 0 {
12 | 		return "-" + itoa(-val)
13 | 	}
14 | 	var buf [32]byte // big enough for int64
15 | 	i := len(buf) - 1
16 | 	for val >= 10 {
17 | 		buf[i] = byte(val%10 + '0')
18 | 		i--
19 | 		val /= 10
20 | 	}
21 | 	buf[i] = byte(val + '0')
22 | 	return string(buf[i:])
23 | }
24 | 


--------------------------------------------------------------------------------
/vendor/golang.org/x/sys/windows/types_windows_386.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 | 	Description  [WSADESCRIPTION_LEN + 1]byte
11 | 	SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 | 	MaxSockets   uint16
13 | 	MaxUdpDg     uint16
14 | 	VendorInfo   *byte
15 | }
16 | 
17 | type Servent struct {
18 | 	Name    *byte
19 | 	Aliases **byte
20 | 	Port    uint16
21 | 	Proto   *byte
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 | 	_                       uint32 // pad to 8 byte boundary
35 | }
36 | 


--------------------------------------------------------------------------------
/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_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 | package windows
 6 | 
 7 | type WSAData struct {
 8 | 	Version      uint16
 9 | 	HighVersion  uint16
10 | 	Description  [WSADESCRIPTION_LEN + 1]byte
11 | 	SystemStatus [WSASYS_STATUS_LEN + 1]byte
12 | 	MaxSockets   uint16
13 | 	MaxUdpDg     uint16
14 | 	VendorInfo   *byte
15 | }
16 | 
17 | type Servent struct {
18 | 	Name    *byte
19 | 	Aliases **byte
20 | 	Port    uint16
21 | 	Proto   *byte
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 | 	_                       uint32 // pad to 8 byte boundary
35 | }
36 | 


--------------------------------------------------------------------------------
/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/Acconut/lockfile.v1/.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 | # popular temporaries
11 | .err
12 | .out
13 | .diff
14 | 
15 | # Architecture specific extensions/prefixes
16 | *.[568vq]
17 | [568vq].out
18 | 
19 | *.cgo1.go
20 | *.cgo2.c
21 | _cgo_defun.c
22 | _cgo_gotypes.go
23 | _cgo_export.*
24 | 
25 | _testmain.go
26 | 
27 | *.exe
28 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "git-hooks"]
2 | 	path = git-hooks
3 | 	url = https://github.com/nightlyone/git-hooks
4 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | go:
 3 |   - 1.4
 4 |   - 1.5
 5 |   - 1.6
 6 |   - 1.7
 7 |   - 1.8
 8 | 
 9 | script:
10 |   - go test .
11 |   - go vet .
12 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/LICENSE:
--------------------------------------------------------------------------------
 1 | Copyright (c) 2012 Ingo Oeser
 2 | 
 3 | Permission is hereby granted, free of charge, to any person obtaining a copy
 4 | of this software and associated documentation files (the "Software"), to deal
 5 | in the Software without restriction, including without limitation the rights
 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 7 | copies of the Software, and to permit persons to whom the Software is
 8 | furnished to do so, subject to the following conditions:
 9 | 
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 | 
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/appveyor.yml:
--------------------------------------------------------------------------------
 1 | clone_folder: c:\gopath\src\github.com\Acconut\lockfile
 2 | 
 3 | environment:
 4 |   GOPATH: c:\gopath
 5 | 
 6 | install:
 7 |   - go version
 8 |   - go env
 9 |   - go get -v -t ./...
10 | 
11 | build_script:
12 |   - go test -v .
13 |   - go vet .
14 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/lockfile_unix.go:
--------------------------------------------------------------------------------
 1 | // +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
 2 | 
 3 | package lockfile
 4 | 
 5 | import (
 6 | 	"os"
 7 | 	"syscall"
 8 | )
 9 | 
10 | func isRunning(pid int) (bool, error) {
11 | 	proc, err := os.FindProcess(pid)
12 | 	if err != nil {
13 | 		return false, err
14 | 	}
15 | 
16 | 	if err := proc.Signal(syscall.Signal(0)); err != nil {
17 | 		return false, nil
18 | 	}
19 | 	return true, nil
20 | }
21 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/Acconut/lockfile.v1/lockfile_windows.go:
--------------------------------------------------------------------------------
 1 | package lockfile
 2 | 
 3 | import (
 4 | 	"syscall"
 5 | )
 6 | 
 7 | //For some reason these consts don't exist in syscall.
 8 | const (
 9 | 	error_invalid_parameter = 87
10 | 	code_still_active       = 259
11 | )
12 | 
13 | func isRunning(pid int) (bool, error) {
14 | 	procHnd, err := syscall.OpenProcess(syscall.PROCESS_QUERY_INFORMATION, true, uint32(pid))
15 | 	if err != nil {
16 | 		if scerr, ok := err.(syscall.Errno); ok {
17 | 			if uintptr(scerr) == error_invalid_parameter {
18 | 				return false, nil
19 | 			}
20 | 		}
21 | 	}
22 | 
23 | 	var code uint32
24 | 	err = syscall.GetExitCodeProcess(procHnd, &code)
25 | 	if err != nil {
26 | 		return false, err
27 | 	}
28 | 
29 | 	return code == code_still_active, nil
30 | }
31 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v2/.travis.yml:
--------------------------------------------------------------------------------
 1 | language: go
 2 | 
 3 | go:
 4 |     - "1.4.x"
 5 |     - "1.5.x"
 6 |     - "1.6.x"
 7 |     - "1.7.x"
 8 |     - "1.8.x"
 9 |     - "1.9.x"
10 |     - "1.10.x"
11 |     - "1.11.x"
12 |     - "1.12.x"
13 |     - "1.13.x"
14 |     - "1.14.x"
15 |     - "tip"
16 | 
17 | go_import_path: gopkg.in/yaml.v2
18 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v2/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 | 


--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v2/writerc.go:
--------------------------------------------------------------------------------
 1 | package yaml
 2 | 
 3 | // Set the writer error and return false.
 4 | func yaml_emitter_set_writer_error(emitter *yaml_emitter_t, problem string) bool {
 5 | 	emitter.error = yaml_WRITER_ERROR
 6 | 	emitter.problem = problem
 7 | 	return false
 8 | }
 9 | 
10 | // Flush the output buffer.
11 | func yaml_emitter_flush(emitter *yaml_emitter_t) bool {
12 | 	if emitter.write_handler == nil {
13 | 		panic("write handler not set")
14 | 	}
15 | 
16 | 	// Check if the buffer is empty.
17 | 	if emitter.buffer_pos == 0 {
18 | 		return true
19 | 	}
20 | 
21 | 	if err := emitter.write_handler(emitter, emitter.buffer[:emitter.buffer_pos]); err != nil {
22 | 		return yaml_emitter_set_writer_error(emitter, "write error: "+err.Error())
23 | 	}
24 | 	emitter.buffer_pos = 0
25 | 	return true
26 | }
27 | 


--------------------------------------------------------------------------------