├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── ci.yml │ └── release.yml ├── .gitignore ├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── Makefile ├── README.md ├── SECURITY.md ├── azure-pipelines.yml ├── cni ├── cni.go └── plugin.go ├── common ├── args.go ├── config.go ├── core │ ├── core.go │ └── network.go ├── plugin.go └── utils.go ├── example ├── flannel_l2bridge.conf ├── flannel_overlay.conf ├── l2bridge-dualstack-cni-template.conf ├── l2bridge.conf ├── l2bridgedualstack_host-local_ipam.conf ├── l2tunnel.conf └── nat.conf ├── go.mod ├── go.sum ├── network ├── endpoint.go ├── manager.go ├── network.go └── policy.go ├── plugins ├── nat │ ├── nat_windows.go │ └── nat_windows_test.go ├── sdnbridge │ ├── sdnbridge_windows.go │ └── sdnbridge_windows_test.go └── sdnoverlay │ ├── sdnoverlay_windows.go │ └── sdnoverlay_windows_test.go ├── scripts └── autogencniconf │ ├── SPEC.md │ ├── generateCNIConfig.ps1 │ └── test │ ├── autogencniconf_suite_test.go │ ├── autogencniconf_test.go │ └── configs │ ├── tc1_input.json │ ├── tc2_input.json │ ├── tc2_output.json │ ├── tc3a_input.json │ ├── tc3a_output.json │ ├── tc3b_input.json │ ├── tc3b_output.json │ ├── tc5_input.json │ ├── tc5_output.json │ ├── tc6a_input.json │ ├── tc6b_input.json │ ├── tc6c_input.json │ ├── tc6d_input.json │ ├── tc6e_input.json │ ├── tc6f_input.json │ ├── tc6g_input.json │ ├── tc7a_input.json │ ├── tc7b_input.json │ ├── tc8a_input.json │ ├── tc8b_input.json │ ├── tc8c_input.json │ ├── tc8d_input.json │ └── tc8e_input.json ├── test ├── container │ └── container_windows.go └── utilities │ ├── connectivity_testing.go │ ├── container_testing.go │ ├── plugin_testing.go │ └── testing_windows.go └── vendor ├── github.com ├── Microsoft │ ├── go-winio │ │ ├── .gitignore │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── backup.go │ │ ├── ea.go │ │ ├── file.go │ │ ├── fileinfo.go │ │ ├── hvsock.go │ │ ├── pipe.go │ │ ├── pkg │ │ │ ├── etw │ │ │ │ ├── etw.go │ │ │ │ ├── eventdata.go │ │ │ │ ├── eventdatadescriptor.go │ │ │ │ ├── eventdescriptor.go │ │ │ │ ├── eventmetadata.go │ │ │ │ ├── eventopt.go │ │ │ │ ├── fieldopt.go │ │ │ │ ├── newprovider.go │ │ │ │ ├── newprovider_unsupported.go │ │ │ │ ├── provider.go │ │ │ │ ├── providerglobal.go │ │ │ │ ├── ptr64_32.go │ │ │ │ ├── ptr64_64.go │ │ │ │ ├── wrapper_32.go │ │ │ │ ├── wrapper_64.go │ │ │ │ └── zsyscall_windows.go │ │ │ ├── etwlogrus │ │ │ │ ├── HookTest.wprp │ │ │ │ └── hook.go │ │ │ ├── guid │ │ │ │ ├── guid.go │ │ │ │ ├── guid_nonwindows.go │ │ │ │ └── guid_windows.go │ │ │ └── security │ │ │ │ ├── grantvmgroupaccess.go │ │ │ │ ├── syscall_windows.go │ │ │ │ └── zsyscall_windows.go │ │ ├── privilege.go │ │ ├── reparse.go │ │ ├── sd.go │ │ ├── syscall.go │ │ ├── vhd │ │ │ ├── vhd.go │ │ │ └── zvhd_windows.go │ │ └── zsyscall_windows.go │ └── hcsshim │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── CODEOWNERS │ │ ├── LICENSE │ │ ├── Protobuild.toml │ │ ├── README.md │ │ ├── computestorage │ │ ├── attach.go │ │ ├── destroy.go │ │ ├── detach.go │ │ ├── export.go │ │ ├── format.go │ │ ├── helpers.go │ │ ├── import.go │ │ ├── initialize.go │ │ ├── mount.go │ │ ├── setup.go │ │ ├── storage.go │ │ └── zsyscall_windows.go │ │ ├── container.go │ │ ├── errors.go │ │ ├── functional_tests.ps1 │ │ ├── hcn │ │ ├── hcn.go │ │ ├── hcnendpoint.go │ │ ├── hcnerrors.go │ │ ├── hcnglobals.go │ │ ├── hcnloadbalancer.go │ │ ├── hcnnamespace.go │ │ ├── hcnnetwork.go │ │ ├── hcnpolicy.go │ │ ├── hcnroute.go │ │ ├── hcnsupport.go │ │ └── zsyscall_windows.go │ │ ├── hcsshim.go │ │ ├── hnsendpoint.go │ │ ├── hnsglobals.go │ │ ├── hnsnetwork.go │ │ ├── hnspolicy.go │ │ ├── hnspolicylist.go │ │ ├── hnssupport.go │ │ ├── interface.go │ │ ├── internal │ │ ├── cni │ │ │ └── registry.go │ │ ├── cow │ │ │ └── cow.go │ │ ├── hcs │ │ │ ├── callback.go │ │ │ ├── errors.go │ │ │ ├── process.go │ │ │ ├── schema1 │ │ │ │ └── schema1.go │ │ │ ├── schema2 │ │ │ │ ├── attachment.go │ │ │ │ ├── battery.go │ │ │ │ ├── cache_query_stats_response.go │ │ │ │ ├── chipset.go │ │ │ │ ├── close_handle.go │ │ │ │ ├── com_port.go │ │ │ │ ├── compute_system.go │ │ │ │ ├── configuration.go │ │ │ │ ├── console_size.go │ │ │ │ ├── container.go │ │ │ │ ├── container_credential_guard_add_instance_request.go │ │ │ │ ├── container_credential_guard_hv_socket_service_config.go │ │ │ │ ├── container_credential_guard_instance.go │ │ │ │ ├── container_credential_guard_modify_operation.go │ │ │ │ ├── container_credential_guard_operation_request.go │ │ │ │ ├── container_credential_guard_remove_instance_request.go │ │ │ │ ├── container_credential_guard_state.go │ │ │ │ ├── container_credential_guard_system_info.go │ │ │ │ ├── container_memory_information.go │ │ │ │ ├── cpu_group.go │ │ │ │ ├── cpu_group_affinity.go │ │ │ │ ├── cpu_group_config.go │ │ │ │ ├── cpu_group_configurations.go │ │ │ │ ├── cpu_group_operations.go │ │ │ │ ├── cpu_group_property.go │ │ │ │ ├── create_group_operation.go │ │ │ │ ├── delete_group_operation.go │ │ │ │ ├── device.go │ │ │ │ ├── devices.go │ │ │ │ ├── enhanced_mode_video.go │ │ │ │ ├── flexible_io_device.go │ │ │ │ ├── guest_connection.go │ │ │ │ ├── guest_connection_info.go │ │ │ │ ├── guest_crash_reporting.go │ │ │ │ ├── guest_os.go │ │ │ │ ├── guest_state.go │ │ │ │ ├── host_processor_modify_request.go │ │ │ │ ├── hosted_system.go │ │ │ │ ├── hv_socket.go │ │ │ │ ├── hv_socket_2.go │ │ │ │ ├── hv_socket_address.go │ │ │ │ ├── hv_socket_service_config.go │ │ │ │ ├── hv_socket_system_config.go │ │ │ │ ├── interrupt_moderation_mode.go │ │ │ │ ├── iov_settings.go │ │ │ │ ├── keyboard.go │ │ │ │ ├── layer.go │ │ │ │ ├── linux_kernel_direct.go │ │ │ │ ├── logical_processor.go │ │ │ │ ├── mapped_directory.go │ │ │ │ ├── mapped_pipe.go │ │ │ │ ├── memory.go │ │ │ │ ├── memory_2.go │ │ │ │ ├── memory_information_for_vm.go │ │ │ │ ├── memory_stats.go │ │ │ │ ├── modification_request.go │ │ │ │ ├── modify_setting_request.go │ │ │ │ ├── mouse.go │ │ │ │ ├── network_adapter.go │ │ │ │ ├── networking.go │ │ │ │ ├── pause_notification.go │ │ │ │ ├── pause_options.go │ │ │ │ ├── plan9.go │ │ │ │ ├── plan9_share.go │ │ │ │ ├── process_details.go │ │ │ │ ├── process_modify_request.go │ │ │ │ ├── process_parameters.go │ │ │ │ ├── process_status.go │ │ │ │ ├── processor.go │ │ │ │ ├── processor_2.go │ │ │ │ ├── processor_stats.go │ │ │ │ ├── processor_topology.go │ │ │ │ ├── properties.go │ │ │ │ ├── property_query.go │ │ │ │ ├── property_type.go │ │ │ │ ├── rdp_connection_options.go │ │ │ │ ├── registry_changes.go │ │ │ │ ├── registry_key.go │ │ │ │ ├── registry_value.go │ │ │ │ ├── restore_state.go │ │ │ │ ├── save_options.go │ │ │ │ ├── scsi.go │ │ │ │ ├── service_properties.go │ │ │ │ ├── shared_memory_configuration.go │ │ │ │ ├── shared_memory_region.go │ │ │ │ ├── shared_memory_region_info.go │ │ │ │ ├── silo_properties.go │ │ │ │ ├── statistics.go │ │ │ │ ├── storage.go │ │ │ │ ├── storage_qo_s.go │ │ │ │ ├── storage_stats.go │ │ │ │ ├── topology.go │ │ │ │ ├── uefi.go │ │ │ │ ├── uefi_boot_entry.go │ │ │ │ ├── version.go │ │ │ │ ├── video_monitor.go │ │ │ │ ├── virtual_machine.go │ │ │ │ ├── virtual_node_info.go │ │ │ │ ├── virtual_p_mem_controller.go │ │ │ │ ├── virtual_p_mem_device.go │ │ │ │ ├── virtual_pci_device.go │ │ │ │ ├── virtual_pci_function.go │ │ │ │ ├── virtual_smb.go │ │ │ │ ├── virtual_smb_share.go │ │ │ │ ├── virtual_smb_share_options.go │ │ │ │ ├── vm_memory.go │ │ │ │ ├── vm_processor_limits.go │ │ │ │ └── windows_crash_reporting.go │ │ │ ├── service.go │ │ │ ├── system.go │ │ │ ├── utils.go │ │ │ └── waithelper.go │ │ ├── hcserror │ │ │ └── hcserror.go │ │ ├── hns │ │ │ ├── hns.go │ │ │ ├── hnsendpoint.go │ │ │ ├── hnsfuncs.go │ │ │ ├── hnsglobals.go │ │ │ ├── hnsnetwork.go │ │ │ ├── hnspolicy.go │ │ │ ├── hnspolicylist.go │ │ │ ├── hnssupport.go │ │ │ ├── namespace.go │ │ │ └── zsyscall_windows.go │ │ ├── interop │ │ │ ├── interop.go │ │ │ └── zsyscall_windows.go │ │ ├── log │ │ │ └── g.go │ │ ├── logfields │ │ │ └── fields.go │ │ ├── longpath │ │ │ └── longpath.go │ │ ├── mergemaps │ │ │ └── merge.go │ │ ├── oc │ │ │ ├── exporter.go │ │ │ └── span.go │ │ ├── regstate │ │ │ ├── regstate.go │ │ │ └── zsyscall_windows.go │ │ ├── runhcs │ │ │ ├── container.go │ │ │ ├── util.go │ │ │ └── vm.go │ │ ├── safefile │ │ │ └── safeopen.go │ │ ├── timeout │ │ │ └── timeout.go │ │ ├── vmcompute │ │ │ ├── vmcompute.go │ │ │ └── zsyscall_windows.go │ │ ├── wclayer │ │ │ ├── activatelayer.go │ │ │ ├── baselayer.go │ │ │ ├── createlayer.go │ │ │ ├── createscratchlayer.go │ │ │ ├── deactivatelayer.go │ │ │ ├── destroylayer.go │ │ │ ├── expandscratchsize.go │ │ │ ├── exportlayer.go │ │ │ ├── getlayermountpath.go │ │ │ ├── getsharedbaseimages.go │ │ │ ├── grantvmaccess.go │ │ │ ├── importlayer.go │ │ │ ├── layerexists.go │ │ │ ├── layerid.go │ │ │ ├── layerutils.go │ │ │ ├── legacy.go │ │ │ ├── nametoguid.go │ │ │ ├── preparelayer.go │ │ │ ├── processimage.go │ │ │ ├── unpreparelayer.go │ │ │ ├── wclayer.go │ │ │ └── zsyscall_windows.go │ │ └── winapi │ │ │ ├── devices.go │ │ │ ├── errors.go │ │ │ ├── filesystem.go │ │ │ ├── iocp.go │ │ │ ├── jobobject.go │ │ │ ├── logon.go │ │ │ ├── memory.go │ │ │ ├── net.go │ │ │ ├── path.go │ │ │ ├── process.go │ │ │ ├── processor.go │ │ │ ├── system.go │ │ │ ├── thread.go │ │ │ ├── utils.go │ │ │ ├── winapi.go │ │ │ └── zsyscall_windows.go │ │ ├── layer.go │ │ ├── osversion │ │ ├── osversion_windows.go │ │ └── windowsbuilds.go │ │ ├── pkg │ │ └── go-runhcs │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ ├── runhcs.go │ │ │ ├── runhcs_create-scratch.go │ │ │ ├── runhcs_create.go │ │ │ ├── runhcs_delete.go │ │ │ ├── runhcs_exec.go │ │ │ ├── runhcs_kill.go │ │ │ ├── runhcs_list.go │ │ │ ├── runhcs_pause.go │ │ │ ├── runhcs_ps.go │ │ │ ├── runhcs_resize-tty.go │ │ │ ├── runhcs_resume.go │ │ │ ├── runhcs_start.go │ │ │ └── runhcs_state.go │ │ ├── process.go │ │ └── zsyscall_windows.go ├── blang │ └── semver │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── json.go │ │ ├── package.json │ │ ├── range.go │ │ ├── semver.go │ │ ├── sort.go │ │ └── sql.go ├── containerd │ ├── cgroups │ │ ├── LICENSE │ │ └── stats │ │ │ └── v1 │ │ │ ├── doc.go │ │ │ ├── metrics.pb.go │ │ │ ├── metrics.pb.txt │ │ │ └── metrics.proto │ ├── console │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── console.go │ │ ├── console_linux.go │ │ ├── console_unix.go │ │ ├── console_windows.go │ │ ├── console_zos.go │ │ ├── pty_freebsd_cgo.go │ │ ├── pty_freebsd_nocgo.go │ │ ├── pty_unix.go │ │ ├── tc_darwin.go │ │ ├── tc_freebsd_cgo.go │ │ ├── tc_freebsd_nocgo.go │ │ ├── tc_linux.go │ │ ├── tc_netbsd.go │ │ ├── tc_openbsd_cgo.go │ │ ├── tc_openbsd_nocgo.go │ │ ├── tc_solaris_cgo.go │ │ ├── tc_solaris_nocgo.go │ │ ├── tc_unix.go │ │ └── tc_zos.go │ └── go-runc │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── command_linux.go │ │ ├── command_other.go │ │ ├── console.go │ │ ├── container.go │ │ ├── events.go │ │ ├── io.go │ │ ├── io_unix.go │ │ ├── io_windows.go │ │ ├── monitor.go │ │ ├── runc.go │ │ ├── runc_unix.go │ │ ├── runc_windows.go │ │ └── utils.go ├── containernetworking │ └── cni │ │ ├── LICENSE │ │ └── pkg │ │ ├── invoke │ │ ├── args.go │ │ ├── delegate.go │ │ ├── exec.go │ │ ├── find.go │ │ ├── os_unix.go │ │ ├── os_windows.go │ │ └── raw_exec.go │ │ ├── skel │ │ └── skel.go │ │ ├── types │ │ ├── 100 │ │ │ └── types.go │ │ ├── 020 │ │ │ └── types.go │ │ ├── 040 │ │ │ └── types.go │ │ ├── args.go │ │ ├── create │ │ │ └── create.go │ │ ├── internal │ │ │ ├── convert.go │ │ │ └── create.go │ │ └── types.go │ │ ├── utils │ │ └── utils.go │ │ └── version │ │ ├── conf.go │ │ ├── plugin.go │ │ ├── reconcile.go │ │ └── version.go ├── go-logr │ └── logr │ │ ├── .golangci.yaml │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── discard.go │ │ ├── funcr │ │ └── funcr.go │ │ └── logr.go ├── go-task │ └── slim-sprig │ │ ├── .editorconfig │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── Taskfile.yml │ │ ├── crypto.go │ │ ├── date.go │ │ ├── defaults.go │ │ ├── dict.go │ │ ├── doc.go │ │ ├── functions.go │ │ ├── list.go │ │ ├── network.go │ │ ├── numeric.go │ │ ├── reflect.go │ │ ├── regex.go │ │ ├── strings.go │ │ └── url.go ├── gogo │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── gogoproto │ │ ├── Makefile │ │ ├── doc.go │ │ ├── gogo.pb.go │ │ ├── gogo.pb.golden │ │ ├── gogo.proto │ │ └── helper.go │ │ ├── proto │ │ ├── Makefile │ │ ├── clone.go │ │ ├── custom_gogo.go │ │ ├── decode.go │ │ ├── deprecated.go │ │ ├── discard.go │ │ ├── duration.go │ │ ├── duration_gogo.go │ │ ├── encode.go │ │ ├── encode_gogo.go │ │ ├── equal.go │ │ ├── extensions.go │ │ ├── extensions_gogo.go │ │ ├── lib.go │ │ ├── lib_gogo.go │ │ ├── message_set.go │ │ ├── pointer_reflect.go │ │ ├── pointer_reflect_gogo.go │ │ ├── pointer_unsafe.go │ │ ├── pointer_unsafe_gogo.go │ │ ├── properties.go │ │ ├── properties_gogo.go │ │ ├── skip_gogo.go │ │ ├── table_marshal.go │ │ ├── table_marshal_gogo.go │ │ ├── table_merge.go │ │ ├── table_unmarshal.go │ │ ├── table_unmarshal_gogo.go │ │ ├── text.go │ │ ├── text_gogo.go │ │ ├── text_parser.go │ │ ├── timestamp.go │ │ ├── timestamp_gogo.go │ │ ├── wrappers.go │ │ └── wrappers_gogo.go │ │ └── protoc-gen-gogo │ │ └── descriptor │ │ ├── Makefile │ │ ├── descriptor.go │ │ ├── descriptor.pb.go │ │ ├── descriptor_gostring.gen.go │ │ └── helper.go ├── golang │ └── groupcache │ │ ├── LICENSE │ │ └── lru │ │ └── lru.go ├── google │ ├── go-cmp │ │ ├── LICENSE │ │ └── cmp │ │ │ ├── compare.go │ │ │ ├── export.go │ │ │ ├── internal │ │ │ ├── diff │ │ │ │ ├── debug_disable.go │ │ │ │ ├── debug_enable.go │ │ │ │ └── diff.go │ │ │ ├── flags │ │ │ │ └── flags.go │ │ │ ├── function │ │ │ │ └── func.go │ │ │ └── value │ │ │ │ ├── name.go │ │ │ │ ├── pointer.go │ │ │ │ └── sort.go │ │ │ ├── options.go │ │ │ ├── path.go │ │ │ ├── report.go │ │ │ ├── report_compare.go │ │ │ ├── report_references.go │ │ │ ├── report_reflect.go │ │ │ ├── report_slices.go │ │ │ ├── report_text.go │ │ │ └── report_value.go │ └── pprof │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ └── profile │ │ ├── encode.go │ │ ├── filter.go │ │ ├── index.go │ │ ├── legacy_java_profile.go │ │ ├── legacy_profile.go │ │ ├── merge.go │ │ ├── profile.go │ │ ├── proto.go │ │ └── prune.go ├── hashicorp │ ├── errwrap │ │ ├── LICENSE │ │ ├── README.md │ │ └── errwrap.go │ └── go-multierror │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── append.go │ │ ├── flatten.go │ │ ├── format.go │ │ ├── multierror.go │ │ ├── prefix.go │ │ └── sort.go ├── onsi │ ├── ginkgo │ │ └── v2 │ │ │ ├── .gitignore │ │ │ ├── CHANGELOG.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── RELEASING.md │ │ │ ├── config │ │ │ └── deprecated.go │ │ │ ├── core_dsl.go │ │ │ ├── decorator_dsl.go │ │ │ ├── deprecated_dsl.go │ │ │ ├── formatter │ │ │ ├── colorable_others.go │ │ │ ├── colorable_windows.go │ │ │ └── formatter.go │ │ │ ├── ginkgo │ │ │ ├── build │ │ │ │ └── build_command.go │ │ │ ├── command │ │ │ │ ├── abort.go │ │ │ │ ├── command.go │ │ │ │ └── program.go │ │ │ ├── generators │ │ │ │ ├── boostrap_templates.go │ │ │ │ ├── bootstrap_command.go │ │ │ │ ├── generate_command.go │ │ │ │ ├── generate_templates.go │ │ │ │ └── generators_common.go │ │ │ ├── internal │ │ │ │ ├── compile.go │ │ │ │ ├── profiles_and_reports.go │ │ │ │ ├── run.go │ │ │ │ ├── test_suite.go │ │ │ │ ├── utils.go │ │ │ │ └── verify_version.go │ │ │ ├── labels │ │ │ │ └── labels_command.go │ │ │ ├── main.go │ │ │ ├── outline │ │ │ │ ├── ginkgo.go │ │ │ │ ├── import.go │ │ │ │ ├── outline.go │ │ │ │ └── outline_command.go │ │ │ ├── run │ │ │ │ └── run_command.go │ │ │ ├── unfocus │ │ │ │ └── unfocus_command.go │ │ │ └── watch │ │ │ │ ├── delta.go │ │ │ │ ├── delta_tracker.go │ │ │ │ ├── dependencies.go │ │ │ │ ├── package_hash.go │ │ │ │ ├── package_hashes.go │ │ │ │ ├── suite.go │ │ │ │ └── watch_command.go │ │ │ ├── ginkgo_cli_dependencies.go │ │ │ ├── ginkgo_t_dsl.go │ │ │ ├── internal │ │ │ ├── counter.go │ │ │ ├── failer.go │ │ │ ├── focus.go │ │ │ ├── global │ │ │ │ └── init.go │ │ │ ├── group.go │ │ │ ├── interrupt_handler │ │ │ │ ├── interrupt_handler.go │ │ │ │ ├── sigquit_swallower_unix.go │ │ │ │ └── sigquit_swallower_windows.go │ │ │ ├── node.go │ │ │ ├── ordering.go │ │ │ ├── output_interceptor.go │ │ │ ├── output_interceptor_unix.go │ │ │ ├── output_interceptor_win.go │ │ │ ├── parallel_support │ │ │ │ ├── client_server.go │ │ │ │ ├── http_client.go │ │ │ │ ├── http_server.go │ │ │ │ ├── rpc_client.go │ │ │ │ ├── rpc_server.go │ │ │ │ └── server_handler.go │ │ │ ├── progress_report.go │ │ │ ├── progress_report_bsd.go │ │ │ ├── progress_report_unix.go │ │ │ ├── progress_report_win.go │ │ │ ├── progress_reporter_manager.go │ │ │ ├── report_entry.go │ │ │ ├── spec.go │ │ │ ├── spec_context.go │ │ │ ├── suite.go │ │ │ ├── testingtproxy │ │ │ │ └── testing_t_proxy.go │ │ │ ├── tree.go │ │ │ └── writer.go │ │ │ ├── reporters │ │ │ ├── default_reporter.go │ │ │ ├── deprecated_reporter.go │ │ │ ├── json_report.go │ │ │ ├── junit_report.go │ │ │ ├── reporter.go │ │ │ └── teamcity_report.go │ │ │ ├── reporting_dsl.go │ │ │ ├── table_dsl.go │ │ │ └── types │ │ │ ├── code_location.go │ │ │ ├── config.go │ │ │ ├── deprecated_types.go │ │ │ ├── deprecation_support.go │ │ │ ├── enum_support.go │ │ │ ├── errors.go │ │ │ ├── file_filter.go │ │ │ ├── flags.go │ │ │ ├── label_filter.go │ │ │ ├── report_entry.go │ │ │ ├── types.go │ │ │ └── version.go │ └── gomega │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── RELEASING.md │ │ ├── format │ │ └── format.go │ │ ├── gomega_dsl.go │ │ ├── internal │ │ ├── assertion.go │ │ ├── async_assertion.go │ │ ├── duration_bundle.go │ │ ├── gomega.go │ │ ├── gutil │ │ │ ├── post_ioutil.go │ │ │ └── using_ioutil.go │ │ ├── polling_signal_error.go │ │ └── vetoptdesc.go │ │ ├── matchers.go │ │ ├── matchers │ │ ├── and.go │ │ ├── assignable_to_type_of_matcher.go │ │ ├── attributes_slice.go │ │ ├── be_a_directory.go │ │ ├── be_a_regular_file.go │ │ ├── be_an_existing_file.go │ │ ├── be_closed_matcher.go │ │ ├── be_comparable_to_matcher.go │ │ ├── be_element_of_matcher.go │ │ ├── be_empty_matcher.go │ │ ├── be_equivalent_to_matcher.go │ │ ├── be_false_matcher.go │ │ ├── be_identical_to.go │ │ ├── be_key_of_matcher.go │ │ ├── be_nil_matcher.go │ │ ├── be_numerically_matcher.go │ │ ├── be_sent_matcher.go │ │ ├── be_temporally_matcher.go │ │ ├── be_true_matcher.go │ │ ├── be_zero_matcher.go │ │ ├── consist_of.go │ │ ├── contain_element_matcher.go │ │ ├── contain_elements_matcher.go │ │ ├── contain_substring_matcher.go │ │ ├── equal_matcher.go │ │ ├── have_cap_matcher.go │ │ ├── have_each_matcher.go │ │ ├── have_exact_elements.go │ │ ├── have_existing_field_matcher.go │ │ ├── have_field.go │ │ ├── have_http_body_matcher.go │ │ ├── have_http_header_with_value_matcher.go │ │ ├── have_http_status_matcher.go │ │ ├── have_key_matcher.go │ │ ├── have_key_with_value_matcher.go │ │ ├── have_len_matcher.go │ │ ├── have_occurred_matcher.go │ │ ├── have_prefix_matcher.go │ │ ├── have_suffix_matcher.go │ │ ├── have_value.go │ │ ├── match_error_matcher.go │ │ ├── match_json_matcher.go │ │ ├── match_regexp_matcher.go │ │ ├── match_xml_matcher.go │ │ ├── match_yaml_matcher.go │ │ ├── not.go │ │ ├── or.go │ │ ├── panic_matcher.go │ │ ├── receive_matcher.go │ │ ├── satisfy_matcher.go │ │ ├── semi_structured_data_support.go │ │ ├── succeed_matcher.go │ │ ├── support │ │ │ └── goraph │ │ │ │ ├── bipartitegraph │ │ │ │ ├── bipartitegraph.go │ │ │ │ └── bipartitegraphmatching.go │ │ │ │ ├── edge │ │ │ │ └── edge.go │ │ │ │ ├── node │ │ │ │ └── node.go │ │ │ │ └── util │ │ │ │ └── util.go │ │ ├── type_support.go │ │ └── with_transform.go │ │ └── types │ │ └── types.go ├── opencontainers │ ├── runtime-spec │ │ ├── LICENSE │ │ └── specs-go │ │ │ ├── config.go │ │ │ ├── state.go │ │ │ └── version.go │ ├── runtime-tools │ │ ├── LICENSE │ │ ├── error │ │ │ └── error.go │ │ ├── filepath │ │ │ ├── abs.go │ │ │ ├── ancestor.go │ │ │ ├── clean.go │ │ │ ├── doc.go │ │ │ ├── join.go │ │ │ └── separator.go │ │ ├── generate │ │ │ ├── config.go │ │ │ ├── generate.go │ │ │ └── seccomp │ │ │ │ ├── consts.go │ │ │ │ ├── parse_action.go │ │ │ │ ├── parse_architecture.go │ │ │ │ ├── parse_arguments.go │ │ │ │ ├── parse_remove.go │ │ │ │ ├── seccomp_default.go │ │ │ │ ├── seccomp_default_linux.go │ │ │ │ ├── seccomp_default_unsupported.go │ │ │ │ └── syscall_compare.go │ │ ├── specerror │ │ │ ├── bundle.go │ │ │ ├── config-linux.go │ │ │ ├── config-windows.go │ │ │ ├── config.go │ │ │ ├── error.go │ │ │ ├── runtime-linux.go │ │ │ └── runtime.go │ │ └── validate │ │ │ ├── validate.go │ │ │ ├── validate_linux.go │ │ │ └── validate_unsupported.go │ └── selinux │ │ ├── LICENSE │ │ ├── go-selinux │ │ ├── doc.go │ │ ├── label │ │ │ ├── label.go │ │ │ ├── label_linux.go │ │ │ └── label_stub.go │ │ ├── rchcon.go │ │ ├── rchcon_go115.go │ │ ├── selinux.go │ │ ├── selinux_linux.go │ │ ├── selinux_stub.go │ │ └── xattrs_linux.go │ │ └── pkg │ │ ├── pwalk │ │ ├── README.md │ │ └── pwalk.go │ │ └── pwalkdir │ │ ├── README.md │ │ └── pwalkdir.go ├── pkg │ └── errors │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── errors.go │ │ ├── go113.go │ │ └── stack.go ├── sirupsen │ └── logrus │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── README.md │ │ ├── alt_exit.go │ │ ├── appveyor.yml │ │ ├── buffer_pool.go │ │ ├── doc.go │ │ ├── entry.go │ │ ├── exported.go │ │ ├── formatter.go │ │ ├── hooks.go │ │ ├── json_formatter.go │ │ ├── logger.go │ │ ├── logrus.go │ │ ├── terminal_check_appengine.go │ │ ├── terminal_check_bsd.go │ │ ├── terminal_check_js.go │ │ ├── terminal_check_no_terminal.go │ │ ├── terminal_check_notappengine.go │ │ ├── terminal_check_solaris.go │ │ ├── terminal_check_unix.go │ │ ├── terminal_check_windows.go │ │ ├── text_formatter.go │ │ └── writer.go ├── syndtr │ └── gocapability │ │ ├── LICENSE │ │ └── capability │ │ ├── capability.go │ │ ├── capability_linux.go │ │ ├── capability_noop.go │ │ ├── enum.go │ │ ├── enum_gen.go │ │ └── syscall_linux.go └── xeipuuv │ ├── gojsonpointer │ ├── LICENSE-APACHE-2.0.txt │ ├── README.md │ └── pointer.go │ ├── gojsonreference │ ├── LICENSE-APACHE-2.0.txt │ ├── README.md │ └── reference.go │ └── gojsonschema │ ├── .gitignore │ ├── .travis.yml │ ├── LICENSE-APACHE-2.0.txt │ ├── README.md │ ├── draft.go │ ├── errors.go │ ├── format_checkers.go │ ├── glide.yaml │ ├── internalLog.go │ ├── jsonContext.go │ ├── jsonLoader.go │ ├── locales.go │ ├── result.go │ ├── schema.go │ ├── schemaLoader.go │ ├── schemaPool.go │ ├── schemaReferencePool.go │ ├── schemaType.go │ ├── subSchema.go │ ├── types.go │ ├── utils.go │ └── validation.go ├── go.opencensus.io ├── .gitignore ├── AUTHORS ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── appveyor.yml ├── internal │ ├── internal.go │ ├── sanitize.go │ └── traceinternals.go ├── opencensus.go └── trace │ ├── basetypes.go │ ├── config.go │ ├── doc.go │ ├── evictedqueue.go │ ├── export.go │ ├── internal │ └── internal.go │ ├── lrumap.go │ ├── sampling.go │ ├── spanbucket.go │ ├── spanstore.go │ ├── status_codes.go │ ├── trace.go │ ├── trace_api.go │ ├── trace_go11.go │ ├── trace_nongo11.go │ └── tracestate │ └── tracestate.go ├── golang.org └── x │ ├── net │ ├── LICENSE │ ├── PATENTS │ ├── context │ │ ├── context.go │ │ ├── go17.go │ │ ├── go19.go │ │ ├── pre_go17.go │ │ └── pre_go19.go │ └── html │ │ ├── atom │ │ ├── atom.go │ │ └── table.go │ │ ├── charset │ │ └── charset.go │ │ ├── const.go │ │ ├── doc.go │ │ ├── doctype.go │ │ ├── entity.go │ │ ├── escape.go │ │ ├── foreign.go │ │ ├── iter.go │ │ ├── node.go │ │ ├── parse.go │ │ ├── render.go │ │ └── token.go │ ├── sync │ ├── LICENSE │ ├── PATENTS │ └── errgroup │ │ ├── errgroup.go │ │ ├── go120.go │ │ └── pre_go120.go │ ├── 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_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_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 │ ├── text │ ├── LICENSE │ ├── PATENTS │ ├── encoding │ │ ├── charmap │ │ │ ├── charmap.go │ │ │ └── tables.go │ │ ├── encoding.go │ │ ├── htmlindex │ │ │ ├── htmlindex.go │ │ │ ├── map.go │ │ │ └── tables.go │ │ ├── internal │ │ │ ├── identifier │ │ │ │ ├── identifier.go │ │ │ │ └── mib.go │ │ │ └── internal.go │ │ ├── japanese │ │ │ ├── all.go │ │ │ ├── eucjp.go │ │ │ ├── iso2022jp.go │ │ │ ├── shiftjis.go │ │ │ └── tables.go │ │ ├── korean │ │ │ ├── euckr.go │ │ │ └── tables.go │ │ ├── simplifiedchinese │ │ │ ├── all.go │ │ │ ├── gbk.go │ │ │ ├── hzgb2312.go │ │ │ └── tables.go │ │ ├── traditionalchinese │ │ │ ├── big5.go │ │ │ └── tables.go │ │ └── unicode │ │ │ ├── override.go │ │ │ └── unicode.go │ ├── internal │ │ ├── language │ │ │ ├── common.go │ │ │ ├── compact.go │ │ │ ├── compact │ │ │ │ ├── compact.go │ │ │ │ ├── language.go │ │ │ │ ├── parents.go │ │ │ │ ├── tables.go │ │ │ │ └── tags.go │ │ │ ├── compose.go │ │ │ ├── coverage.go │ │ │ ├── language.go │ │ │ ├── lookup.go │ │ │ ├── match.go │ │ │ ├── parse.go │ │ │ ├── tables.go │ │ │ └── tags.go │ │ ├── tag │ │ │ └── tag.go │ │ └── utf8internal │ │ │ └── utf8internal.go │ ├── language │ │ ├── coverage.go │ │ ├── doc.go │ │ ├── language.go │ │ ├── match.go │ │ ├── parse.go │ │ ├── tables.go │ │ └── tags.go │ ├── runes │ │ ├── cond.go │ │ └── runes.go │ └── transform │ │ └── transform.go │ └── tools │ ├── LICENSE │ ├── PATENTS │ └── go │ └── ast │ └── inspector │ ├── inspector.go │ └── typeof.go ├── gopkg.in └── yaml.v3 │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help improve Windows CNI plugins 4 | title: "[BUG] [CNI v0.3.0] Summary of the issue" 5 | labels: '' 6 | assignees: debj1t 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Create network '...' 16 | 2. Use conf '....' 17 | 3. Create interface '...' 18 | 4. See error. 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **CNI Version** 24 | Share the CNI version / released package name being used 25 | 26 | **Additional context** 27 | Add any other context about the problem here. 28 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for Windows CNIs 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /common/utils.go: -------------------------------------------------------------------------------- 1 | // Copyright Microsoft Corp. 2 | // All rights reserved. 3 | 4 | package common 5 | 6 | import ( 7 | "net" 8 | "strconv" 9 | 10 | "github.com/sirupsen/logrus" 11 | ) 12 | 13 | // LogNetworkInterfaces logs the host's network interfaces in the default namespace. 14 | func LogNetworkInterfaces() { 15 | interfaces, err := net.Interfaces() 16 | if err != nil { 17 | logrus.Errorf("Failed to query network interfaces, err:%v", err) 18 | return 19 | } 20 | 21 | for _, iface := range interfaces { 22 | addrs, _ := iface.Addrs() 23 | logrus.Debugf("[net] Network interface: %+v with IP addresses: %+v", iface, addrs) 24 | } 25 | } 26 | 27 | func GetAddressAsCidr(ip string, prefix uint8) string { 28 | 29 | return ip + string('/') + strconv.FormatUint(uint64(prefix), 10) 30 | 31 | } 32 | -------------------------------------------------------------------------------- /example/nat.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.2.0", 3 | "name": "natNetwork", 4 | "type": "nat", 5 | "master": "Ethernet", 6 | "ipam": { 7 | "subnet": "192.168.100.0/24", 8 | "routes": [ 9 | { 10 | "gateway": "192.168.100.1" 11 | } 12 | ] 13 | } 14 | } -------------------------------------------------------------------------------- /plugins/nat/nat_windows.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/Microsoft/windows-container-networking/common/core" 5 | ) 6 | 7 | func main() { 8 | core.Core() 9 | } 10 | -------------------------------------------------------------------------------- /plugins/nat/nat_windows_test.go: -------------------------------------------------------------------------------- 1 | package main_test 2 | 3 | import ( 4 | "os" 5 | "testing" 6 | 7 | "github.com/Microsoft/hcsshim/hcn" 8 | "github.com/Microsoft/windows-container-networking/cni" 9 | util "github.com/Microsoft/windows-container-networking/test/utilities" 10 | ) 11 | 12 | var testDualStack bool 13 | var imageToUse string 14 | 15 | func CreateNatTestNetwork(t *testing.T) *hcn.HostComputeNetwork { 16 | ipams := util.GetDefaultIpams() 17 | return util.CreateTestNetwork(t, "natNet", cni.NatPluginName, ipams, false) 18 | } 19 | 20 | func TestNatCmdAdd(t *testing.T) { 21 | // t.Skip("Nat test is disabled for now.") 22 | testDualStack = (os.Getenv("TestDualStack") == "1") 23 | imageToUse = os.Getenv("ImageToUse") 24 | testNetwork := CreateNatTestNetwork(t) 25 | pt := util.MakeTestStruct(t, testNetwork, false, false, "", testDualStack, imageToUse) 26 | pt.RunAll(t) 27 | } 28 | -------------------------------------------------------------------------------- /plugins/sdnbridge/sdnbridge_windows.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/Microsoft/windows-container-networking/common/core" 5 | ) 6 | 7 | func main() { 8 | core.Core() 9 | } 10 | -------------------------------------------------------------------------------- /plugins/sdnoverlay/sdnoverlay_windows.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/Microsoft/windows-container-networking/common/core" 5 | ) 6 | 7 | func main() { 8 | core.Core() 9 | } 10 | -------------------------------------------------------------------------------- /scripts/autogencniconf/test/autogencniconf_suite_test.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package autogenCniConfTest 5 | 6 | import ( 7 | . "github.com/onsi/ginkgo/v2" 8 | . "github.com/onsi/gomega" 9 | 10 | "testing" 11 | ) 12 | 13 | func TestAutogenCniConf(t *testing.T) { 14 | RegisterFailHandler(Fail) 15 | RunSpecs(t, "autogencniconf") 16 | } 17 | -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc1_input.json: -------------------------------------------------------------------------------- 1 | { 2 |     "Name": "azure-cni", 3 |     "Type": "sdnbridge", 4 |     "Subnet": "192.168.0.0/24", 5 |     "Gateway": "192.168.0.2", 6 |     "InfraPrefix": "10.0.0.0/24", 7 |     "DnsServers": ["168.63.129.16"], 8 |     "AdditionalPolicies": [{ 9 |             "Type": "ACL", 10 |             "Settings": { 11 |                 "RemoteAddresses": "192.168.0.0/24", 12 |                 "Action": "Allow", 13 |                 "Direction": "Out", 14 |                 "Priority": 3004 15 |             } 16 |         }, 17 |         { 18 |             "Type": "ACL", 19 |             "Settings": { 20 |                 "RemoteAddresses": "10.0.0.0/24", 21 |                 "Action": "Allow", 22 |                 "Direction": "Out", 23 |                 "Priority": 3005 24 |             } 25 |         } 26 |     ] 27 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc2_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "ManagementIp": "10.0.0.10", 8 | "DnsServers": ["168.63.129.16"], 9 | "AdditionalPolicies": [{ 10 | "Type": "ACL", 11 | "Settings": { 12 | "RemoteAddresses": "192.168.0.0/24", 13 | "Action": "Allow", 14 | "Direction": "Out", 15 | "Priority": 3004 16 | } 17 | }, 18 | { 19 | "Type": "ACL", 20 | "Settings": { 21 | "RemoteAddresses": "10.0.0.0/24", 22 | "Action": "Allow", 23 | "Direction": "Out", 24 | "Priority": 3005 25 | } 26 | }] 27 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc3a_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "SkipDefaultPolicies": "true", 10 | "AdditionalPolicies": [{ 11 | "Type": "ACL", 12 | "Settings": { 13 | "RemoteAddresses": "192.168.0.0/24", 14 | "Action": "Allow", 15 | "Direction": "Out", 16 | "Priority": 3004 17 | } 18 | }, 19 | { 20 | "Type": "ACL", 21 | "Settings": { 22 | "RemoteAddresses": "10.0.0.0/24", 23 | "Action": "Allow", 24 | "Direction": "Out", 25 | "Priority": 3005 26 | } 27 | }] 28 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc3b_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "SkipDefaultPolicies": "true" 10 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6a_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Type": "sdnbridge", 3 | "Subnet": "192.168.0.0/24", 4 | "Gateway": "192.168.0.2", 5 | "InfraPrefix": "10.0.0.0/24", 6 | "DnsServers": ["168.63.129.16"], 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6b_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Subnet": "192.168.0.0/24", 4 | "Gateway": "192.168.0.2", 5 | "InfraPrefix": "10.0.0.0/24", 6 | "DnsServers": ["168.63.129.16"], 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6c_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Gateway": "192.168.0.2", 5 | "InfraPrefix": "10.0.0.0/24", 6 | "DnsServers": ["168.63.129.16"], 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6d_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "InfraPrefix": "10.0.0.0/24", 6 | "DnsServers": ["168.63.129.16"], 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6e_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "DnsServers": ["168.63.129.16"], 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6f_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "ManagementIp": "10.0.0.10", 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc6g_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "SkipDefaultPolicies": "true" 9 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc7a_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "ManagementIp": "10.0.0.10", 8 | "DnsServers": ["168.63.129.16"], 9 | "AdditionalPolicies": [{ 10 | "Type": "ACL", 11 | "Settings": { 12 | "RemoteAddresses": "192.168.0.0/24", 13 | "Action": "Allow", 14 | "Direction": "Out", 15 | "Priority": 2999 16 | } 17 | }] 18 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc7b_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "ManagementIp": "10.0.0.10", 8 | "DnsServers": ["168.63.129.16"], 9 | "AdditionalPolicies": [{ 10 | "Type": "ACL", 11 | "Settings": { 12 | "RemoteAddresses": "192.168.0.0/24", 13 | "Action": "Allow", 14 | "Direction": "Out", 15 | "Priority": 8001 16 | } 17 | }] 18 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc8a_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "InfraParams": { "DhcpEnabled": true, "DhcpCheckTimeout": 5 } 10 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc8b_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "InfraParams": { "DhcpEnabled": true, "DhcpCheckTimeout": 800 } 10 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc8c_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "InfraParams": { "DhcpEnabled": true, "DhcpCheckTimeout": 65 } 10 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc8d_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "InfraParams": { "DhcpEnabled": true } 10 | } -------------------------------------------------------------------------------- /scripts/autogencniconf/test/configs/tc8e_input.json: -------------------------------------------------------------------------------- 1 | { 2 | "Name": "azure-cni", 3 | "Type": "sdnbridge", 4 | "Subnet": "192.168.0.0/24", 5 | "Gateway": "192.168.0.2", 6 | "InfraPrefix": "10.0.0.0/24", 7 | "DnsServers": ["168.63.129.16"], 8 | "ManagementIp": "10.0.0.10", 9 | "InfraParams": { "DhcpCheckTimeout": 80 } 10 | } -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat 2 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/etw/eventdatadescriptor.go: -------------------------------------------------------------------------------- 1 | package etw 2 | 3 | import ( 4 | "unsafe" 5 | ) 6 | 7 | type eventDataDescriptorType uint8 8 | 9 | const ( 10 | eventDataDescriptorTypeUserData eventDataDescriptorType = iota 11 | eventDataDescriptorTypeEventMetadata 12 | eventDataDescriptorTypeProviderMetadata 13 | ) 14 | 15 | type eventDataDescriptor struct { 16 | ptr ptr64 17 | size uint32 18 | dataType eventDataDescriptorType 19 | reserved1 uint8 20 | reserved2 uint16 21 | } 22 | 23 | func newEventDataDescriptor(dataType eventDataDescriptorType, buffer []byte) eventDataDescriptor { 24 | return eventDataDescriptor{ 25 | ptr: ptr64{ptr: unsafe.Pointer(&buffer[0])}, 26 | size: uint32(len(buffer)), 27 | dataType: dataType, 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/etw/newprovider_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | // +build arm 3 | 4 | package etw 5 | 6 | // NewProviderWithID returns a nil provider on unsupported platforms. 7 | func NewProviderWithOptions(name string, options ...ProviderOpt) (provider *Provider, err error) { 8 | return nil, nil 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_32.go: -------------------------------------------------------------------------------- 1 | // +build 386 arm 2 | 3 | package etw 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // byteptr64 defines a struct containing a pointer. The struct is guaranteed to 10 | // be 64 bits, regardless of the actual size of a pointer on the platform. This 11 | // is intended for use with certain Windows APIs that expect a pointer as a 12 | // ULONGLONG. 13 | type ptr64 struct { 14 | ptr unsafe.Pointer 15 | _ uint32 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/etw/ptr64_64.go: -------------------------------------------------------------------------------- 1 | // +build amd64 arm64 2 | 3 | package etw 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // byteptr64 defines a struct containing a pointer. The struct is guaranteed to 10 | // be 64 bits, regardless of the actual size of a pointer on the platform. This 11 | // is intended for use with certain Windows APIs that expect a pointer as a 12 | // ULONGLONG. 13 | type ptr64 struct { 14 | ptr unsafe.Pointer 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/etwlogrus/HookTest.wprp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_nonwindows.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package guid 4 | 5 | // GUID represents a GUID/UUID. It has the same structure as 6 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 7 | // that type. It is defined as its own type as that is only available to builds 8 | // targeted at `windows`. The representation matches that used by native Windows 9 | // code. 10 | type GUID struct { 11 | Data1 uint32 12 | Data2 uint16 13 | Data3 uint16 14 | Data4 [8]byte 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/guid/guid_windows.go: -------------------------------------------------------------------------------- 1 | package guid 2 | 3 | import "golang.org/x/sys/windows" 4 | 5 | // GUID represents a GUID/UUID. It has the same structure as 6 | // golang.org/x/sys/windows.GUID so that it can be used with functions expecting 7 | // that type. It is defined as its own type so that stringification and 8 | // marshaling can be supported. The representation matches that used by native 9 | // Windows code. 10 | type GUID windows.GUID 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/pkg/security/syscall_windows.go: -------------------------------------------------------------------------------- 1 | package security 2 | 3 | //go:generate go run mksyscall_windows.go -output zsyscall_windows.go syscall_windows.go 4 | 5 | //sys getSecurityInfo(handle syscall.Handle, objectType uint32, si uint32, ppsidOwner **uintptr, ppsidGroup **uintptr, ppDacl *uintptr, ppSacl *uintptr, ppSecurityDescriptor *uintptr) (win32err error) = advapi32.GetSecurityInfo 6 | //sys setSecurityInfo(handle syscall.Handle, objectType uint32, si uint32, psidOwner uintptr, psidGroup uintptr, pDacl uintptr, pSacl uintptr) (win32err error) = advapi32.SetSecurityInfo 7 | //sys setEntriesInAcl(count uintptr, pListOfEEs uintptr, oldAcl uintptr, newAcl *uintptr) (win32err error) = advapi32.SetEntriesInAclW 8 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | package winio 2 | 3 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go hvsock.go 4 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | .idea 3 | .vscode 4 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @microsoft/containerplat -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/computestorage/destroy.go: -------------------------------------------------------------------------------- 1 | package computestorage 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/oc" 7 | "github.com/pkg/errors" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // DestroyLayer deletes a container layer. 12 | // 13 | // `layerPath` is a path to a directory containing the layer to export. 14 | func DestroyLayer(ctx context.Context, layerPath string) (err error) { 15 | title := "hcsshim.DestroyLayer" 16 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 17 | defer span.End() 18 | defer func() { oc.SetSpanStatus(span, err) }() 19 | span.AddAttributes(trace.StringAttribute("layerPath", layerPath)) 20 | 21 | err = hcsDestroyLayer(layerPath) 22 | if err != nil { 23 | return errors.Wrap(err, "failed to destroy layer") 24 | } 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/computestorage/detach.go: -------------------------------------------------------------------------------- 1 | package computestorage 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/oc" 7 | "github.com/pkg/errors" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // DetachLayerStorageFilter detaches the layer storage filter on a writable container layer. 12 | // 13 | // `layerPath` is a path to a directory containing the layer to export. 14 | func DetachLayerStorageFilter(ctx context.Context, layerPath string) (err error) { 15 | title := "hcsshim.DetachLayerStorageFilter" 16 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 17 | defer span.End() 18 | defer func() { oc.SetSpanStatus(span, err) }() 19 | span.AddAttributes(trace.StringAttribute("layerPath", layerPath)) 20 | 21 | err = hcsDetachLayerStorageFilter(layerPath) 22 | if err != nil { 23 | return errors.Wrap(err, "failed to detach layer storage filter") 24 | } 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/computestorage/format.go: -------------------------------------------------------------------------------- 1 | package computestorage 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/oc" 7 | "github.com/pkg/errors" 8 | "go.opencensus.io/trace" 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | // FormatWritableLayerVhd formats a virtual disk for use as a writable container layer. 13 | // 14 | // If the VHD is not mounted it will be temporarily mounted. 15 | func FormatWritableLayerVhd(ctx context.Context, vhdHandle windows.Handle) (err error) { 16 | title := "hcsshim.FormatWritableLayerVhd" 17 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 18 | defer span.End() 19 | defer func() { oc.SetSpanStatus(span, err) }() 20 | 21 | err = hcsFormatWritableLayerVhd(vhdHandle) 22 | if err != nil { 23 | return errors.Wrap(err, "failed to format writable layer vhd") 24 | } 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/functional_tests.ps1: -------------------------------------------------------------------------------- 1 | # Requirements so far: 2 | # dockerd running 3 | # - image microsoft/nanoserver (matching host base image) docker load -i c:\baseimages\nanoserver.tar 4 | # - image alpine (linux) docker pull --platform=linux alpine 5 | 6 | 7 | # TODO: Add this a parameter for debugging. ie "functional-tests -debug=$true" 8 | #$env:HCSSHIM_FUNCTIONAL_TESTS_DEBUG="yes please" 9 | 10 | #pushd uvm 11 | go test -v -tags "functional uvmcreate uvmscratch uvmscsi uvmvpmem uvmvsmb uvmp9" ./... 12 | #popd -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/hcsshim.go: -------------------------------------------------------------------------------- 1 | // Shim for the Host Compute Service (HCS) to manage Windows Server 2 | // containers and Hyper-V containers. 3 | 4 | package hcsshim 5 | 6 | import ( 7 | "syscall" 8 | 9 | "github.com/Microsoft/hcsshim/internal/hcserror" 10 | ) 11 | 12 | //go:generate go run mksyscall_windows.go -output zsyscall_windows.go hcsshim.go 13 | 14 | //sys SetCurrentThreadCompartmentId(compartmentId uint32) (hr error) = iphlpapi.SetCurrentThreadCompartmentId 15 | 16 | const ( 17 | // Specific user-visible exit codes 18 | WaitErrExecFailed = 32767 19 | 20 | ERROR_GEN_FAILURE = hcserror.ERROR_GEN_FAILURE 21 | ERROR_SHUTDOWN_IN_PROGRESS = syscall.Errno(1115) 22 | WSAEINVAL = syscall.Errno(10022) 23 | 24 | // Timeout on wait calls 25 | TimeoutInfinite = 0xFFFFFFFF 26 | ) 27 | 28 | type HcsError = hcserror.HcsError 29 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/hnsglobals.go: -------------------------------------------------------------------------------- 1 | package hcsshim 2 | 3 | import ( 4 | "github.com/Microsoft/hcsshim/internal/hns" 5 | ) 6 | 7 | type HNSGlobals = hns.HNSGlobals 8 | type HNSVersion = hns.HNSVersion 9 | 10 | var ( 11 | HNSVersion1803 = hns.HNSVersion1803 12 | ) 13 | 14 | func GetHNSGlobals() (*HNSGlobals, error) { 15 | return hns.GetHNSGlobals() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/hnssupport.go: -------------------------------------------------------------------------------- 1 | package hcsshim 2 | 3 | import ( 4 | "github.com/Microsoft/hcsshim/internal/hns" 5 | ) 6 | 7 | type HNSSupportedFeatures = hns.HNSSupportedFeatures 8 | 9 | type HNSAclFeatures = hns.HNSAclFeatures 10 | 11 | func GetHNSSupportedFeatures() HNSSupportedFeatures { 12 | return hns.GetHNSSupportedFeatures() 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/battery.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Battery struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cache_query_stats_response.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CacheQueryStatsResponse struct { 13 | L3OccupancyBytes int32 `json:"L3OccupancyBytes,omitempty"` 14 | 15 | L3TotalBwBytes int32 `json:"L3TotalBwBytes,omitempty"` 16 | 17 | L3LocalBwBytes int32 `json:"L3LocalBwBytes,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/chipset.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Chipset struct { 13 | Uefi *Uefi `json:"Uefi,omitempty"` 14 | 15 | IsNumLockDisabled bool `json:"IsNumLockDisabled,omitempty"` 16 | 17 | BaseBoardSerialNumber string `json:"BaseBoardSerialNumber,omitempty"` 18 | 19 | ChassisSerialNumber string `json:"ChassisSerialNumber,omitempty"` 20 | 21 | ChassisAssetTag string `json:"ChassisAssetTag,omitempty"` 22 | 23 | UseUtc bool `json:"UseUtc,omitempty"` 24 | 25 | // LinuxKernelDirect - Added in v2.2 Builds >=181117 26 | LinuxKernelDirect *LinuxKernelDirect `json:"LinuxKernelDirect,omitempty"` 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/close_handle.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CloseHandle struct { 13 | Handle string `json:"Handle,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/com_port.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // ComPort specifies the named pipe that will be used for the port, with empty string indicating a disconnected port. 13 | type ComPort struct { 14 | NamedPipe string `json:"NamedPipe,omitempty"` 15 | 16 | OptimizeForDebugger bool `json:"OptimizeForDebugger,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/compute_system.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ComputeSystem struct { 13 | Owner string `json:"Owner,omitempty"` 14 | 15 | SchemaVersion *Version `json:"SchemaVersion,omitempty"` 16 | 17 | HostingSystemId string `json:"HostingSystemId,omitempty"` 18 | 19 | HostedSystem interface{} `json:"HostedSystem,omitempty"` 20 | 21 | Container *Container `json:"Container,omitempty"` 22 | 23 | VirtualMachine *VirtualMachine `json:"VirtualMachine,omitempty"` 24 | 25 | ShouldTerminateOnLastHandleClosed bool `json:"ShouldTerminateOnLastHandleClosed,omitempty"` 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/console_size.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ConsoleSize struct { 13 | Height int32 `json:"Height,omitempty"` 14 | 15 | Width int32 `json:"Width,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_add_instance_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardAddInstanceRequest struct { 13 | Id string `json:"Id,omitempty"` 14 | CredentialSpec string `json:"CredentialSpec,omitempty"` 15 | Transport string `json:"Transport,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_hv_socket_service_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardHvSocketServiceConfig struct { 13 | ServiceId string `json:"ServiceId,omitempty"` 14 | ServiceConfig *HvSocketServiceConfig `json:"ServiceConfig,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_instance.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardInstance struct { 13 | Id string `json:"Id,omitempty"` 14 | CredentialGuard *ContainerCredentialGuardState `json:"CredentialGuard,omitempty"` 15 | HvSocketConfig *ContainerCredentialGuardHvSocketServiceConfig `json:"HvSocketConfig,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_modify_operation.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardModifyOperation string 13 | 14 | const ( 15 | AddInstance ContainerCredentialGuardModifyOperation = "AddInstance" 16 | RemoveInstance ContainerCredentialGuardModifyOperation = "RemoveInstance" 17 | ) 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_operation_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardOperationRequest struct { 13 | Operation ContainerCredentialGuardModifyOperation `json:"Operation,omitempty"` 14 | OperationDetails interface{} `json:"OperationDetails,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_remove_instance_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardRemoveInstanceRequest struct { 13 | Id string `json:"Id,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_credential_guard_system_info.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerCredentialGuardSystemInfo struct { 13 | Instances []ContainerCredentialGuardInstance `json:"Instances,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/container_memory_information.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // memory usage as viewed from within the container 13 | type ContainerMemoryInformation struct { 14 | TotalPhysicalBytes int32 `json:"TotalPhysicalBytes,omitempty"` 15 | 16 | TotalUsage int32 `json:"TotalUsage,omitempty"` 17 | 18 | CommittedBytes int32 `json:"CommittedBytes,omitempty"` 19 | 20 | SharedCommittedBytes int32 `json:"SharedCommittedBytes,omitempty"` 21 | 22 | CommitLimitBytes int32 `json:"CommitLimitBytes,omitempty"` 23 | 24 | PeakCommitmentBytes int32 `json:"PeakCommitmentBytes,omitempty"` 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // CPU groups allow Hyper-V administrators to better manage and allocate the host's CPU resources across guest virtual machines 13 | type CpuGroup struct { 14 | Id string `json:"Id,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group_affinity.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CpuGroupAffinity struct { 13 | LogicalProcessorCount int32 `json:"LogicalProcessorCount,omitempty"` 14 | LogicalProcessors []int32 `json:"LogicalProcessors,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group_config.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CpuGroupConfig struct { 13 | GroupId string `json:"GroupId,omitempty"` 14 | Affinity *CpuGroupAffinity `json:"Affinity,omitempty"` 15 | GroupProperties []CpuGroupProperty `json:"GroupProperties,omitempty"` 16 | // Hypervisor CPU group IDs exposed to clients 17 | HypervisorGroupId int32 `json:"HypervisorGroupId,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group_configurations.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Structure used to return cpu groups for a Service property query 13 | type CpuGroupConfigurations struct { 14 | CpuGroups []CpuGroupConfig `json:"CpuGroups,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group_operations.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CPUGroupOperation string 13 | 14 | const ( 15 | CreateGroup CPUGroupOperation = "CreateGroup" 16 | DeleteGroup CPUGroupOperation = "DeleteGroup" 17 | SetProperty CPUGroupOperation = "SetProperty" 18 | ) 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/cpu_group_property.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type CpuGroupProperty struct { 13 | PropertyCode uint32 `json:"PropertyCode,omitempty"` 14 | PropertyValue uint32 `json:"PropertyValue,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/create_group_operation.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Create group operation settings 13 | type CreateGroupOperation struct { 14 | GroupId string `json:"GroupId,omitempty"` 15 | LogicalProcessorCount uint32 `json:"LogicalProcessorCount,omitempty"` 16 | LogicalProcessors []uint32 `json:"LogicalProcessors,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/delete_group_operation.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Delete group operation settings 13 | type DeleteGroupOperation struct { 14 | GroupId string `json:"GroupId,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/enhanced_mode_video.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type EnhancedModeVideo struct { 13 | ConnectionOptions *RdpConnectionOptions `json:"ConnectionOptions,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/flexible_io_device.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type FlexibleIoDevice struct { 13 | EmulatorId string `json:"EmulatorId,omitempty"` 14 | 15 | HostingModel string `json:"HostingModel,omitempty"` 16 | 17 | Configuration []string `json:"Configuration,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_connection.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type GuestConnection struct { 13 | 14 | // Use Vsock rather than Hyper-V sockets to communicate with the guest service. 15 | UseVsock bool `json:"UseVsock,omitempty"` 16 | 17 | // Don't disconnect the guest connection when pausing the virtual machine. 18 | UseConnectedSuspend bool `json:"UseConnectedSuspend,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_connection_info.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Information about the guest. 13 | type GuestConnectionInfo struct { 14 | 15 | // Each schema version x.y stands for the range of versions a.b where a==x and b<=y. This list comes from the SupportedSchemaVersions field in GcsCapabilities. 16 | SupportedSchemaVersions []Version `json:"SupportedSchemaVersions,omitempty"` 17 | 18 | ProtocolVersion int32 `json:"ProtocolVersion,omitempty"` 19 | 20 | GuestDefinedCapabilities *interface{} `json:"GuestDefinedCapabilities,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_crash_reporting.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type GuestCrashReporting struct { 13 | WindowsCrashSettings *WindowsCrashReporting `json:"WindowsCrashSettings,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/guest_os.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type GuestOs struct { 13 | HostName string `json:"HostName,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/host_processor_modify_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Structure used to request a service processor modification 13 | type HostProcessorModificationRequest struct { 14 | Operation CPUGroupOperation `json:"Operation,omitempty"` 15 | OperationDetails interface{} `json:"OperationDetails,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/hosted_system.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type HostedSystem struct { 13 | SchemaVersion *Version `json:"SchemaVersion,omitempty"` 14 | 15 | Container *Container `json:"Container,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/hv_socket.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type HvSocket struct { 13 | Config *HvSocketSystemConfig `json:"Config,omitempty"` 14 | 15 | EnablePowerShellDirect bool `json:"EnablePowerShellDirect,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/hv_socket_2.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // HvSocket configuration for a VM 13 | type HvSocket2 struct { 14 | HvSocketConfig *HvSocketSystemConfig `json:"HvSocketConfig,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/hv_socket_address.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // This class defines address settings applied to a VM 13 | // by the GCS every time a VM starts or restores. 14 | type HvSocketAddress struct { 15 | LocalAddress string `json:"LocalAddress,omitempty"` 16 | ParentAddress string `json:"ParentAddress,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/iov_settings.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type IovSettings struct { 13 | // The weight assigned to this port for I/O virtualization (IOV) offloading. 14 | // Setting this to 0 disables IOV offloading. 15 | OffloadWeight *uint32 `json:"OffloadWeight,omitempty"` 16 | 17 | // The number of queue pairs requested for this port for I/O virtualization (IOV) offloading. 18 | QueuePairsRequested *uint32 `json:"QueuePairsRequested,omitempty"` 19 | 20 | // The interrupt moderation mode for I/O virtualization (IOV) offloading. 21 | InterruptModeration *InterruptModerationName `json:"InterruptModeration,omitempty"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/keyboard.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Keyboard struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/layer.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Layer struct { 13 | Id string `json:"Id,omitempty"` 14 | 15 | Path string `json:"Path,omitempty"` 16 | 17 | PathType string `json:"PathType,omitempty"` 18 | 19 | // Unspecified defaults to Enabled 20 | Cache string `json:"Cache,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/linux_kernel_direct.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.2 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type LinuxKernelDirect struct { 13 | KernelFilePath string `json:"KernelFilePath,omitempty"` 14 | 15 | InitRdPath string `json:"InitRdPath,omitempty"` 16 | 17 | KernelCmdLine string `json:"KernelCmdLine,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/logical_processor.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type LogicalProcessor struct { 13 | LpIndex uint32 `json:"LpIndex,omitempty"` 14 | NodeNumber uint8 `json:"NodeNumber,omitempty"` 15 | PackageId uint32 `json:"PackageId,omitempty"` 16 | CoreId uint32 `json:"CoreId,omitempty"` 17 | RootVpIndex int32 `json:"RootVpIndex,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/mapped_directory.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type MappedDirectory struct { 13 | HostPath string `json:"HostPath,omitempty"` 14 | 15 | HostPathType string `json:"HostPathType,omitempty"` 16 | 17 | ContainerPath string `json:"ContainerPath,omitempty"` 18 | 19 | ReadOnly bool `json:"ReadOnly,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/mapped_pipe.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type MappedPipe struct { 13 | ContainerPipeName string `json:"ContainerPipeName,omitempty"` 14 | 15 | HostPath string `json:"HostPath,omitempty"` 16 | 17 | HostPathType string `json:"HostPathType,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/memory.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Memory struct { 13 | SizeInMB uint64 `json:"SizeInMB,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/memory_information_for_vm.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type MemoryInformationForVm struct { 13 | VirtualNodeCount uint32 `json:"VirtualNodeCount,omitempty"` 14 | 15 | VirtualMachineMemory *VmMemory `json:"VirtualMachineMemory,omitempty"` 16 | 17 | VirtualNodes []VirtualNodeInfo `json:"VirtualNodes,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/memory_stats.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Memory runtime statistics 13 | type MemoryStats struct { 14 | MemoryUsageCommitBytes uint64 `json:"MemoryUsageCommitBytes,omitempty"` 15 | 16 | MemoryUsageCommitPeakBytes uint64 `json:"MemoryUsageCommitPeakBytes,omitempty"` 17 | 18 | MemoryUsagePrivateWorkingSetBytes uint64 `json:"MemoryUsagePrivateWorkingSetBytes,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/modification_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ModificationRequest struct { 13 | PropertyType PropertyType `json:"PropertyType,omitempty"` 14 | Settings interface{} `json:"Settings,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/modify_setting_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ModifySettingRequest struct { 13 | ResourcePath string `json:"ResourcePath,omitempty"` 14 | 15 | RequestType string `json:"RequestType,omitempty"` 16 | 17 | Settings interface{} `json:"Settings,omitempty"` // NOTE: Swagger generated as *interface{}. Locally updated 18 | 19 | GuestRequest interface{} `json:"GuestRequest,omitempty"` // NOTE: Swagger generated as *interface{}. Locally updated 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/mouse.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Mouse struct { 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/network_adapter.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type NetworkAdapter struct { 13 | EndpointId string `json:"EndpointId,omitempty"` 14 | MacAddress string `json:"MacAddress,omitempty"` 15 | // The I/O virtualization (IOV) offloading configuration. 16 | IovSettings *IovSettings `json:"IovSettings,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/networking.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Networking struct { 13 | AllowUnqualifiedDnsQuery bool `json:"AllowUnqualifiedDnsQuery,omitempty"` 14 | 15 | DnsSearchList string `json:"DnsSearchList,omitempty"` 16 | 17 | NetworkSharedContainerName string `json:"NetworkSharedContainerName,omitempty"` 18 | 19 | // Guid in windows; string in linux 20 | Namespace string `json:"Namespace,omitempty"` 21 | 22 | NetworkAdapters []string `json:"NetworkAdapters,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/pause_notification.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Notification data that is indicated to components running in the Virtual Machine. 13 | type PauseNotification struct { 14 | Reason string `json:"Reason,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/pause_options.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Options for HcsPauseComputeSystem 13 | type PauseOptions struct { 14 | SuspensionLevel string `json:"SuspensionLevel,omitempty"` 15 | 16 | HostedNotification *PauseNotification `json:"HostedNotification,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/plan9.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Plan9 struct { 13 | Shares []Plan9Share `json:"Shares,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/process_modify_request.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Passed to HcsRpc_ModifyProcess 13 | type ProcessModifyRequest struct { 14 | Operation string `json:"Operation,omitempty"` 15 | 16 | ConsoleSize *ConsoleSize `json:"ConsoleSize,omitempty"` 17 | 18 | CloseHandle *CloseHandle `json:"CloseHandle,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/process_status.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Status of a process running in a container 13 | type ProcessStatus struct { 14 | ProcessId int32 `json:"ProcessId,omitempty"` 15 | 16 | Exited bool `json:"Exited,omitempty"` 17 | 18 | ExitCode int32 `json:"ExitCode,omitempty"` 19 | 20 | LastWaitResult int32 `json:"LastWaitResult,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/processor.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Processor struct { 13 | Count int32 `json:"Count,omitempty"` 14 | 15 | Maximum int32 `json:"Maximum,omitempty"` 16 | 17 | Weight int32 `json:"Weight,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/processor_2.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.5 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Processor2 struct { 13 | Count int32 `json:"Count,omitempty"` 14 | 15 | Limit int32 `json:"Limit,omitempty"` 16 | 17 | Weight int32 `json:"Weight,omitempty"` 18 | 19 | ExposeVirtualizationExtensions bool `json:"ExposeVirtualizationExtensions,omitempty"` 20 | 21 | // An optional object that configures the CPU Group to which a Virtual Machine is going to bind to. 22 | CpuGroup *CpuGroup `json:"CpuGroup,omitempty"` 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/processor_stats.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // CPU runtime statistics 13 | type ProcessorStats struct { 14 | TotalRuntime100ns uint64 `json:"TotalRuntime100ns,omitempty"` 15 | 16 | RuntimeUser100ns uint64 `json:"RuntimeUser100ns,omitempty"` 17 | 18 | RuntimeKernel100ns uint64 `json:"RuntimeKernel100ns,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/processor_topology.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ProcessorTopology struct { 13 | LogicalProcessorCount uint32 `json:"LogicalProcessorCount,omitempty"` 14 | LogicalProcessors []LogicalProcessor `json:"LogicalProcessors,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/property_query.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // By default the basic properties will be returned. This query provides a way to request specific properties. 13 | type PropertyQuery struct { 14 | PropertyTypes []PropertyType `json:"PropertyTypes,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/rdp_connection_options.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type RdpConnectionOptions struct { 13 | AccessSids []string `json:"AccessSids,omitempty"` 14 | 15 | NamedPipe string `json:"NamedPipe,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/registry_changes.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type RegistryChanges struct { 13 | AddValues []RegistryValue `json:"AddValues,omitempty"` 14 | 15 | DeleteKeys []RegistryKey `json:"DeleteKeys,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/registry_key.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type RegistryKey struct { 13 | Hive string `json:"Hive,omitempty"` 14 | 15 | Name string `json:"Name,omitempty"` 16 | 17 | Volatile bool `json:"Volatile,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/registry_value.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type RegistryValue struct { 13 | Key *RegistryKey `json:"Key,omitempty"` 14 | 15 | Name string `json:"Name,omitempty"` 16 | 17 | Type_ string `json:"Type,omitempty"` 18 | 19 | // One and only one value type must be set. 20 | StringValue string `json:"StringValue,omitempty"` 21 | 22 | BinaryValue string `json:"BinaryValue,omitempty"` 23 | 24 | DWordValue int32 `json:"DWordValue,omitempty"` 25 | 26 | QWordValue int32 `json:"QWordValue,omitempty"` 27 | 28 | // Only used if RegistryValueType is CustomType The data is in BinaryValue 29 | CustomType int32 `json:"CustomType,omitempty"` 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/restore_state.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type RestoreState struct { 13 | 14 | // The path to the save state file to restore the system from. 15 | SaveStateFilePath string `json:"SaveStateFilePath,omitempty"` 16 | 17 | // The ID of the template system to clone this new system off of. An empty string indicates the system should not be cloned from a template. 18 | TemplateSystemId string `json:"TemplateSystemId,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/save_options.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type SaveOptions struct { 13 | 14 | // The type of save operation to be performed. 15 | SaveType string `json:"SaveType,omitempty"` 16 | 17 | // The path to the file that will container the saved state. 18 | SaveStateFilePath string `json:"SaveStateFilePath,omitempty"` 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/scsi.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Scsi struct { 13 | 14 | // Map of attachments, where the key is the integer LUN number on the controller. 15 | Attachments map[string]Attachment `json:"Attachments,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/service_properties.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | import "encoding/json" 13 | 14 | type ServiceProperties struct { 15 | // Changed Properties field to []json.RawMessage from []interface{} to avoid having to 16 | // remarshal sp.Properties[n] and unmarshal into the type(s) we want. 17 | Properties []json.RawMessage `json:"Properties,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/shared_memory_configuration.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type SharedMemoryConfiguration struct { 13 | Regions []SharedMemoryRegion `json:"Regions,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/shared_memory_region.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type SharedMemoryRegion struct { 13 | SectionName string `json:"SectionName,omitempty"` 14 | 15 | StartOffset int32 `json:"StartOffset,omitempty"` 16 | 17 | Length int32 `json:"Length,omitempty"` 18 | 19 | AllowGuestWrite bool `json:"AllowGuestWrite,omitempty"` 20 | 21 | HiddenFromGuest bool `json:"HiddenFromGuest,omitempty"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/shared_memory_region_info.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type SharedMemoryRegionInfo struct { 13 | SectionName string `json:"SectionName,omitempty"` 14 | 15 | GuestPhysicalAddress int32 `json:"GuestPhysicalAddress,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/silo_properties.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Silo job information 13 | type SiloProperties struct { 14 | Enabled bool `json:"Enabled,omitempty"` 15 | 16 | JobName string `json:"JobName,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/statistics.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | import ( 13 | "time" 14 | ) 15 | 16 | // Runtime statistics for a container 17 | type Statistics struct { 18 | Timestamp time.Time `json:"Timestamp,omitempty"` 19 | 20 | ContainerStartTime time.Time `json:"ContainerStartTime,omitempty"` 21 | 22 | Uptime100ns uint64 `json:"Uptime100ns,omitempty"` 23 | 24 | Processor *ProcessorStats `json:"Processor,omitempty"` 25 | 26 | Memory *MemoryStats `json:"Memory,omitempty"` 27 | 28 | Storage *StorageStats `json:"Storage,omitempty"` 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/storage_qo_s.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type StorageQoS struct { 13 | IopsMaximum int32 `json:"IopsMaximum,omitempty"` 14 | 15 | BandwidthMaximum int32 `json:"BandwidthMaximum,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/storage_stats.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // Storage runtime statistics 13 | type StorageStats struct { 14 | ReadCountNormalized uint64 `json:"ReadCountNormalized,omitempty"` 15 | 16 | ReadSizeBytes uint64 `json:"ReadSizeBytes,omitempty"` 17 | 18 | WriteCountNormalized uint64 `json:"WriteCountNormalized,omitempty"` 19 | 20 | WriteSizeBytes uint64 `json:"WriteSizeBytes,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/topology.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Topology struct { 13 | Memory *Memory2 `json:"Memory,omitempty"` 14 | 15 | Processor *Processor2 `json:"Processor,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/uefi.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Uefi struct { 13 | EnableDebugger bool `json:"EnableDebugger,omitempty"` 14 | 15 | SecureBootTemplateId string `json:"SecureBootTemplateId,omitempty"` 16 | 17 | BootThis *UefiBootEntry `json:"BootThis,omitempty"` 18 | 19 | Console string `json:"Console,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/uefi_boot_entry.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type UefiBootEntry struct { 13 | DeviceType string `json:"DeviceType,omitempty"` 14 | 15 | DevicePath string `json:"DevicePath,omitempty"` 16 | 17 | DiskNumber int32 `json:"DiskNumber,omitempty"` 18 | 19 | OptionalData string `json:"OptionalData,omitempty"` 20 | 21 | VmbFsRootPath string `json:"VmbFsRootPath,omitempty"` 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/version.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type Version struct { 13 | Major int32 `json:"Major,omitempty"` 14 | 15 | Minor int32 `json:"Minor,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/video_monitor.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VideoMonitor struct { 13 | HorizontalResolution int32 `json:"HorizontalResolution,omitempty"` 14 | 15 | VerticalResolution int32 `json:"VerticalResolution,omitempty"` 16 | 17 | ConnectionOptions *RdpConnectionOptions `json:"ConnectionOptions,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_node_info.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VirtualNodeInfo struct { 13 | VirtualNodeIndex int32 `json:"VirtualNodeIndex,omitempty"` 14 | 15 | PhysicalNodeNumber int32 `json:"PhysicalNodeNumber,omitempty"` 16 | 17 | VirtualProcessorCount int32 `json:"VirtualProcessorCount,omitempty"` 18 | 19 | MemoryUsageInPages int32 `json:"MemoryUsageInPages,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_p_mem_controller.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VirtualPMemController struct { 13 | Devices map[string]VirtualPMemDevice `json:"Devices,omitempty"` 14 | 15 | MaximumCount uint32 `json:"MaximumCount,omitempty"` 16 | 17 | MaximumSizeBytes uint64 `json:"MaximumSizeBytes,omitempty"` 18 | 19 | Backing string `json:"Backing,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_p_mem_device.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VirtualPMemDevice struct { 13 | HostPath string `json:"HostPath,omitempty"` 14 | 15 | ReadOnly bool `json:"ReadOnly,omitempty"` 16 | 17 | ImageFormat string `json:"ImageFormat,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_pci_device.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.3 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // TODO: This is pre-release support in schema 2.3. Need to add build number 13 | // docs when a public build with this is out. 14 | type VirtualPciDevice struct { 15 | Functions []VirtualPciFunction `json:",omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_pci_function.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.3 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | // TODO: This is pre-release support in schema 2.3. Need to add build number 13 | // docs when a public build with this is out. 14 | type VirtualPciFunction struct { 15 | DeviceInstancePath string `json:",omitempty"` 16 | 17 | VirtualFunction uint16 `json:",omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_smb.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VirtualSmb struct { 13 | Shares []VirtualSmbShare `json:"Shares,omitempty"` 14 | 15 | DirectFileMappingInMB int64 `json:"DirectFileMappingInMB,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/virtual_smb_share.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VirtualSmbShare struct { 13 | Name string `json:"Name,omitempty"` 14 | 15 | Path string `json:"Path,omitempty"` 16 | 17 | AllowedFiles []string `json:"AllowedFiles,omitempty"` 18 | 19 | Options *VirtualSmbShareOptions `json:"Options,omitempty"` 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/vm_memory.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type VmMemory struct { 13 | AvailableMemory int32 `json:"AvailableMemory,omitempty"` 14 | 15 | AvailableMemoryBuffer int32 `json:"AvailableMemoryBuffer,omitempty"` 16 | 17 | ReservedMemory uint64 `json:"ReservedMemory,omitempty"` 18 | 19 | AssignedMemory uint64 `json:"AssignedMemory,omitempty"` 20 | 21 | SlpActive bool `json:"SlpActive,omitempty"` 22 | 23 | BalancingEnabled bool `json:"BalancingEnabled,omitempty"` 24 | 25 | DmOperationInProgress bool `json:"DmOperationInProgress,omitempty"` 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/windows_crash_reporting.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.1 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type WindowsCrashReporting struct { 13 | DumpFileName string `json:"DumpFileName,omitempty"` 14 | 15 | MaxDumpSize int64 `json:"MaxDumpSize,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hns/hns.go: -------------------------------------------------------------------------------- 1 | package hns 2 | 3 | import "fmt" 4 | 5 | //go:generate go run ../../mksyscall_windows.go -output zsyscall_windows.go hns.go 6 | 7 | //sys _hnsCall(method string, path string, object string, response **uint16) (hr error) = vmcompute.HNSCall? 8 | 9 | type EndpointNotFoundError struct { 10 | EndpointName string 11 | } 12 | 13 | func (e EndpointNotFoundError) Error() string { 14 | return fmt.Sprintf("Endpoint %s not found", e.EndpointName) 15 | } 16 | 17 | type NetworkNotFoundError struct { 18 | NetworkName string 19 | } 20 | 21 | func (e NetworkNotFoundError) Error() string { 22 | return fmt.Sprintf("Network %s not found", e.NetworkName) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hns/hnsglobals.go: -------------------------------------------------------------------------------- 1 | package hns 2 | 3 | type HNSGlobals struct { 4 | Version HNSVersion `json:"Version"` 5 | } 6 | 7 | type HNSVersion struct { 8 | Major int `json:"Major"` 9 | Minor int `json:"Minor"` 10 | } 11 | 12 | var ( 13 | HNSVersion1803 = HNSVersion{Major: 7, Minor: 2} 14 | ) 15 | 16 | func GetHNSGlobals() (*HNSGlobals, error) { 17 | var version HNSVersion 18 | err := hnsCall("GET", "/globals/version", "", &version) 19 | if err != nil { 20 | return nil, err 21 | } 22 | 23 | globals := &HNSGlobals{ 24 | Version: version, 25 | } 26 | 27 | return globals, nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/interop/interop.go: -------------------------------------------------------------------------------- 1 | package interop 2 | 3 | import ( 4 | "syscall" 5 | "unsafe" 6 | ) 7 | 8 | //go:generate go run ../../mksyscall_windows.go -output zsyscall_windows.go interop.go 9 | 10 | //sys coTaskMemFree(buffer unsafe.Pointer) = api_ms_win_core_com_l1_1_0.CoTaskMemFree 11 | 12 | func ConvertAndFreeCoTaskMemString(buffer *uint16) string { 13 | str := syscall.UTF16ToString((*[1 << 29]uint16)(unsafe.Pointer(buffer))[:]) 14 | coTaskMemFree(unsafe.Pointer(buffer)) 15 | return str 16 | } 17 | 18 | func Win32FromHresult(hr uintptr) syscall.Errno { 19 | if hr&0x1fff0000 == 0x00070000 { 20 | return syscall.Errno(hr & 0xffff) 21 | } 22 | return syscall.Errno(hr) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/log/g.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/sirupsen/logrus" 7 | "go.opencensus.io/trace" 8 | ) 9 | 10 | // G returns a `logrus.Entry` with the `TraceID, SpanID` from `ctx` if `ctx` 11 | // contains an OpenCensus `trace.Span`. 12 | func G(ctx context.Context) *logrus.Entry { 13 | span := trace.FromContext(ctx) 14 | if span != nil { 15 | sctx := span.SpanContext() 16 | return logrus.WithFields(logrus.Fields{ 17 | "traceID": sctx.TraceID.String(), 18 | "spanID": sctx.SpanID.String(), 19 | // "parentSpanID": TODO: JTERRY75 - Try to convince OC to export this? 20 | }) 21 | } 22 | return logrus.NewEntry(logrus.StandardLogger()) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/logfields/fields.go: -------------------------------------------------------------------------------- 1 | package logfields 2 | 3 | const ( 4 | // Identifiers 5 | 6 | ContainerID = "cid" 7 | UVMID = "uvm-id" 8 | ProcessID = "pid" 9 | 10 | // Common Misc 11 | 12 | // Timeout represents an operation timeout. 13 | Timeout = "timeout" 14 | JSON = "json" 15 | 16 | // Keys/values 17 | 18 | Field = "field" 19 | OCIAnnotation = "oci-annotation" 20 | Value = "value" 21 | 22 | // Golang type's 23 | 24 | ExpectedType = "expected-type" 25 | Bool = "bool" 26 | Uint32 = "uint32" 27 | Uint64 = "uint64" 28 | 29 | // runhcs 30 | 31 | VMShimOperation = "vmshim-op" 32 | ) 33 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/longpath/longpath.go: -------------------------------------------------------------------------------- 1 | package longpath 2 | 3 | import ( 4 | "path/filepath" 5 | "strings" 6 | ) 7 | 8 | // LongAbs makes a path absolute and returns it in NT long path form. 9 | func LongAbs(path string) (string, error) { 10 | if strings.HasPrefix(path, `\\?\`) || strings.HasPrefix(path, `\\.\`) { 11 | return path, nil 12 | } 13 | if !filepath.IsAbs(path) { 14 | absPath, err := filepath.Abs(path) 15 | if err != nil { 16 | return "", err 17 | } 18 | path = absPath 19 | } 20 | if strings.HasPrefix(path, `\\`) { 21 | return `\\?\UNC\` + path[2:], nil 22 | } 23 | return `\\?\` + path, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/oc/span.go: -------------------------------------------------------------------------------- 1 | package oc 2 | 3 | import ( 4 | "go.opencensus.io/trace" 5 | ) 6 | 7 | // SetSpanStatus sets `span.SetStatus` to the proper status depending on `err`. If 8 | // `err` is `nil` assumes `trace.StatusCodeOk`. 9 | func SetSpanStatus(span *trace.Span, err error) { 10 | status := trace.Status{} 11 | if err != nil { 12 | // TODO: JTERRY75 - Handle errors in a non-generic way 13 | status.Code = trace.StatusCodeUnknown 14 | status.Message = err.Error() 15 | } 16 | span.SetStatus(status) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/runhcs/util.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import "net/url" 4 | 5 | const ( 6 | SafePipePrefix = `\\.\pipe\ProtectedPrefix\Administrators\` 7 | ) 8 | 9 | // ShimSuccess is the byte stream returned on a successful operation. 10 | var ShimSuccess = []byte{0, 'O', 'K', 0} 11 | 12 | func SafePipePath(name string) string { 13 | // Use a pipe in the Administrators protected prefixed to prevent malicious 14 | // squatting. 15 | return SafePipePrefix + url.PathEscape(name) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/createlayer.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/hcserror" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // CreateLayer creates a new, empty, read-only layer on the filesystem based on 12 | // the parent layer provided. 13 | func CreateLayer(ctx context.Context, path, parent string) (err error) { 14 | title := "hcsshim::CreateLayer" 15 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 16 | defer span.End() 17 | defer func() { oc.SetSpanStatus(span, err) }() 18 | span.AddAttributes( 19 | trace.StringAttribute("path", path), 20 | trace.StringAttribute("parent", parent)) 21 | 22 | err = createLayer(&stdDriverInfo, path, parent) 23 | if err != nil { 24 | return hcserror.New(err, title+" - failed", "") 25 | } 26 | return nil 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/deactivatelayer.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/hcserror" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // DeactivateLayer will dismount a layer that was mounted via ActivateLayer. 12 | func DeactivateLayer(ctx context.Context, path string) (err error) { 13 | title := "hcsshim::DeactivateLayer" 14 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 15 | defer span.End() 16 | defer func() { oc.SetSpanStatus(span, err) }() 17 | span.AddAttributes(trace.StringAttribute("path", path)) 18 | 19 | err = deactivateLayer(&stdDriverInfo, path) 20 | if err != nil { 21 | return hcserror.New(err, title+"- failed", "") 22 | } 23 | return nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/destroylayer.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/hcserror" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // DestroyLayer will remove the on-disk files representing the layer with the given 12 | // path, including that layer's containing folder, if any. 13 | func DestroyLayer(ctx context.Context, path string) (err error) { 14 | title := "hcsshim::DestroyLayer" 15 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 16 | defer span.End() 17 | defer func() { oc.SetSpanStatus(span, err) }() 18 | span.AddAttributes(trace.StringAttribute("path", path)) 19 | 20 | err = destroyLayer(&stdDriverInfo, path) 21 | if err != nil { 22 | return hcserror.New(err, title+" - failed", "") 23 | } 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/grantvmaccess.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/hcserror" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // GrantVmAccess adds access to a file for a given VM 12 | func GrantVmAccess(ctx context.Context, vmid string, filepath string) (err error) { 13 | title := "hcsshim::GrantVmAccess" 14 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 15 | defer span.End() 16 | defer func() { oc.SetSpanStatus(span, err) }() 17 | span.AddAttributes( 18 | trace.StringAttribute("vm-id", vmid), 19 | trace.StringAttribute("path", filepath)) 20 | 21 | err = grantVmAccess(vmid, filepath) 22 | if err != nil { 23 | return hcserror.New(err, title+" - failed", "") 24 | } 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/layerid.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | "path/filepath" 6 | 7 | "github.com/Microsoft/go-winio/pkg/guid" 8 | "github.com/Microsoft/hcsshim/internal/oc" 9 | "go.opencensus.io/trace" 10 | ) 11 | 12 | // LayerID returns the layer ID of a layer on disk. 13 | func LayerID(ctx context.Context, path string) (_ guid.GUID, err error) { 14 | title := "hcsshim::LayerID" 15 | ctx, span := trace.StartSpan(ctx, title) 16 | defer span.End() 17 | defer func() { oc.SetSpanStatus(span, err) }() 18 | span.AddAttributes(trace.StringAttribute("path", path)) 19 | 20 | _, file := filepath.Split(path) 21 | return NameToGuid(ctx, file) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/unpreparelayer.go: -------------------------------------------------------------------------------- 1 | package wclayer 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/hcserror" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "go.opencensus.io/trace" 9 | ) 10 | 11 | // UnprepareLayer disables the filesystem filter for the read-write layer with 12 | // the given id. 13 | func UnprepareLayer(ctx context.Context, path string) (err error) { 14 | title := "hcsshim::UnprepareLayer" 15 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 16 | defer span.End() 17 | defer func() { oc.SetSpanStatus(span, err) }() 18 | span.AddAttributes(trace.StringAttribute("path", path)) 19 | 20 | err = unprepareLayer(&stdDriverInfo, path) 21 | if err != nil { 22 | return hcserror.New(err, title+" - failed", "") 23 | } 24 | return nil 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/devices.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | import "github.com/Microsoft/go-winio/pkg/guid" 4 | 5 | //sys CMGetDeviceIDListSize(pulLen *uint32, pszFilter *byte, uFlags uint32) (hr error) = cfgmgr32.CM_Get_Device_ID_List_SizeA 6 | //sys CMGetDeviceIDList(pszFilter *byte, buffer *byte, bufferLen uint32, uFlags uint32) (hr error)= cfgmgr32.CM_Get_Device_ID_ListA 7 | //sys CMLocateDevNode(pdnDevInst *uint32, pDeviceID string, uFlags uint32) (hr error) = cfgmgr32.CM_Locate_DevNodeW 8 | //sys CMGetDevNodeProperty(dnDevInst uint32, propertyKey *DevPropKey, propertyType *uint32, propertyBuffer *uint16, propertyBufferSize *uint32, uFlags uint32) (hr error) = cfgmgr32.CM_Get_DevNode_PropertyW 9 | 10 | type DevPropKey struct { 11 | Fmtid guid.GUID 12 | Pid uint32 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/errors.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | import "syscall" 4 | 5 | //sys RtlNtStatusToDosError(status uint32) (winerr error) = ntdll.RtlNtStatusToDosError 6 | 7 | const ( 8 | STATUS_REPARSE_POINT_ENCOUNTERED = 0xC000050B 9 | ERROR_NO_MORE_ITEMS = 0x103 10 | ERROR_MORE_DATA syscall.Errno = 234 11 | ) 12 | 13 | func NTSuccess(status uint32) bool { 14 | return status == 0 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/iocp.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys GetQueuedCompletionStatus(cphandle windows.Handle, qty *uint32, key *uintptr, overlapped **windows.Overlapped, timeout uint32) (err error) 4 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // VOID RtlMoveMemory( 4 | // _Out_ VOID UNALIGNED *Destination, 5 | // _In_ const VOID UNALIGNED *Source, 6 | // _In_ SIZE_T Length 7 | // ); 8 | //sys RtlMoveMemory(destination *byte, source *byte, length uintptr) (err error) = kernel32.RtlMoveMemory 9 | 10 | //sys LocalAlloc(flags uint32, size int) (ptr uintptr) = kernel32.LocalAlloc 11 | //sys LocalFree(ptr uintptr) = kernel32.LocalFree 12 | 13 | // BOOL QueryWorkingSet( 14 | // HANDLE hProcess, 15 | // PVOID pv, 16 | // DWORD cb 17 | // ); 18 | //sys QueryWorkingSet(handle windows.Handle, pv uintptr, cb uint32) (err error) = psapi.QueryWorkingSet 19 | 20 | type PSAPI_WORKING_SET_INFORMATION struct { 21 | NumberOfEntries uintptr 22 | WorkingSetInfo [1]PSAPI_WORKING_SET_BLOCK 23 | } 24 | 25 | type PSAPI_WORKING_SET_BLOCK struct { 26 | Flags uintptr 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/net.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys SetJobCompartmentId(handle windows.Handle, compartmentId uint32) (win32Err error) = iphlpapi.SetJobCompartmentId 4 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/path.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // DWORD SearchPathW( 4 | // LPCWSTR lpPath, 5 | // LPCWSTR lpFileName, 6 | // LPCWSTR lpExtension, 7 | // DWORD nBufferLength, 8 | // LPWSTR lpBuffer, 9 | // LPWSTR *lpFilePart 10 | // ); 11 | //sys SearchPath(lpPath *uint16, lpFileName *uint16, lpExtension *uint16, nBufferLength uint32, lpBuffer *uint16, lpFilePath *uint16) (size uint32, err error) = kernel32.SearchPathW 12 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/process.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | const PROCESS_ALL_ACCESS uint32 = 2097151 4 | 5 | // DWORD GetProcessImageFileNameW( 6 | // HANDLE hProcess, 7 | // LPWSTR lpImageFileName, 8 | // DWORD nSize 9 | // ); 10 | //sys GetProcessImageFileName(hProcess windows.Handle, imageFileName *uint16, nSize uint32) (size uint32, err error) = kernel32.GetProcessImageFileNameW 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/processor.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // Get count from all processor groups. 4 | // https://docs.microsoft.com/en-us/windows/win32/procthread/processor-groups 5 | const ALL_PROCESSOR_GROUPS = 0xFFFF 6 | 7 | //sys GetActiveProcessorCount(groupNumber uint16) (amount uint32) = kernel32.GetActiveProcessorCount 8 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/thread.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // HANDLE CreateRemoteThread( 4 | // HANDLE hProcess, 5 | // LPSECURITY_ATTRIBUTES lpThreadAttributes, 6 | // SIZE_T dwStackSize, 7 | // LPTHREAD_START_ROUTINE lpStartAddress, 8 | // LPVOID lpParameter, 9 | // DWORD dwCreationFlags, 10 | // LPDWORD lpThreadId 11 | // ); 12 | //sys CreateRemoteThread(process windows.Handle, sa *windows.SecurityAttributes, stackSize uint32, startAddr uintptr, parameter uintptr, creationFlags uint32, threadID *uint32) (handle windows.Handle, err error) = kernel32.CreateRemoteThread 13 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/winapi.go: -------------------------------------------------------------------------------- 1 | // Package winapi contains various low-level bindings to Windows APIs. It can 2 | // be thought of as an extension to golang.org/x/sys/windows. 3 | package winapi 4 | 5 | //go:generate go run ..\..\mksyscall_windows.go -output zsyscall_windows.go system.go net.go path.go thread.go iocp.go jobobject.go logon.go memory.go process.go processor.go devices.go filesystem.go errors.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/NOTICE: -------------------------------------------------------------------------------- 1 | go-runhcs is a fork of go-runc 2 | 3 | The following is runc's legal notice. 4 | 5 | --- 6 | 7 | runc 8 | 9 | Copyright 2012-2015 Docker, Inc. 10 | 11 | This product includes software developed at Docker, Inc. (http://www.docker.com). 12 | 13 | The following is courtesy of our legal counsel: 14 | 15 | Use and transfer of Docker may be subject to certain restrictions by the 16 | United States and other governments. 17 | It is your responsibility to ensure that your use and/or transfer does not 18 | violate applicable laws. 19 | 20 | For more information, please see http://www.bis.doc.gov 21 | 22 | See also http://www.apache.org/dev/crypto.html and/or seek legal counsel. -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_delete.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // DeleteOpts is set of options that can be used with the Delete command. 8 | type DeleteOpts struct { 9 | // Force forcibly deletes the container if it is still running (uses SIGKILL). 10 | Force bool 11 | } 12 | 13 | func (opt *DeleteOpts) args() ([]string, error) { 14 | var out []string 15 | if opt.Force { 16 | out = append(out, "--force") 17 | } 18 | return out, nil 19 | } 20 | 21 | // Delete any resources held by the container often used with detached 22 | // containers. 23 | func (r *Runhcs) Delete(context context.Context, id string, opts *DeleteOpts) error { 24 | args := []string{"delete"} 25 | if opts != nil { 26 | oargs, err := opts.args() 27 | if err != nil { 28 | return err 29 | } 30 | args = append(args, oargs...) 31 | } 32 | return r.runOrError(r.command(context, append(args, id)...)) 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_kill.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // Kill sends the specified signal (default: SIGTERM) to the container's init 8 | // process. 9 | func (r *Runhcs) Kill(context context.Context, id, signal string) error { 10 | return r.runOrError(r.command(context, "kill", id, signal)) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_list.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | 7 | irunhcs "github.com/Microsoft/hcsshim/internal/runhcs" 8 | ) 9 | 10 | // ContainerState is the representation of the containers state at the moment of 11 | // query. 12 | type ContainerState = irunhcs.ContainerState 13 | 14 | // List containers started by runhcs. 15 | // 16 | // Note: This is specific to the Runhcs.Root namespace provided in the global 17 | // settings. 18 | func (r *Runhcs) List(context context.Context) ([]*ContainerState, error) { 19 | data, err := cmdOutput(r.command(context, "list", "--format=json"), false) 20 | if err != nil { 21 | return nil, err 22 | } 23 | var out []*ContainerState 24 | if err := json.Unmarshal(data, &out); err != nil { 25 | return nil, err 26 | } 27 | return out, nil 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_pause.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // Pause suspends all processes inside the container. 8 | func (r *Runhcs) Pause(context context.Context, id string) error { 9 | return r.runOrError(r.command(context, "pause", id)) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_ps.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "fmt" 7 | ) 8 | 9 | // Ps displays the processes running inside a container. 10 | func (r *Runhcs) Ps(context context.Context, id string) ([]int, error) { 11 | data, err := cmdOutput(r.command(context, "ps", "--format=json", id), true) 12 | if err != nil { 13 | return nil, fmt.Errorf("%s: %s", err, data) 14 | } 15 | var out []int 16 | if err := json.Unmarshal(data, &out); err != nil { 17 | return nil, err 18 | } 19 | return out, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_resume.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // Resume resumes all processes that have been previously paused. 8 | func (r *Runhcs) Resume(context context.Context, id string) error { 9 | return r.runOrError(r.command(context, "resume", id)) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_start.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | ) 6 | 7 | // Start will start an already created container. 8 | func (r *Runhcs) Start(context context.Context, id string) error { 9 | return r.runOrError(r.command(context, "start", id)) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/pkg/go-runhcs/runhcs_state.go: -------------------------------------------------------------------------------- 1 | package runhcs 2 | 3 | import ( 4 | "context" 5 | "encoding/json" 6 | "fmt" 7 | ) 8 | 9 | // State outputs the state of a container. 10 | func (r *Runhcs) State(context context.Context, id string) (*ContainerState, error) { 11 | data, err := cmdOutput(r.command(context, "state", id), true) 12 | if err != nil { 13 | return nil, fmt.Errorf("%s: %s", err, data) 14 | } 15 | var out ContainerState 16 | if err := json.Unmarshal(data, &out); err != nil { 17 | return nil, err 18 | } 19 | return &out, nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | matrix: 3 | include: 4 | - go: 1.4.3 5 | - go: 1.5.4 6 | - go: 1.6.3 7 | - go: 1.7 8 | - go: tip 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - go get golang.org/x/tools/cmd/cover 13 | - go get github.com/mattn/goveralls 14 | script: 15 | - echo "Test and track coverage" ; $HOME/gopath/bin/goveralls -package "." -service=travis-ci 16 | -repotoken $COVERALLS_TOKEN 17 | - echo "Build examples" ; cd examples && go build 18 | - echo "Check if gofmt'd" ; diff -u <(echo -n) <(gofmt -d -s .) 19 | env: 20 | global: 21 | secure: HroGEAUQpVq9zX1b1VIkraLiywhGbzvNnTZq2TMxgK7JHP8xqNplAeF1izrR2i4QLL9nsY+9WtYss4QuPvEtZcVHUobw6XnL6radF7jS1LgfYZ9Y7oF+zogZ2I5QUMRLGA7rcxQ05s7mKq3XZQfeqaNts4bms/eZRefWuaFZbkw= 22 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/json.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | // MarshalJSON implements the encoding/json.Marshaler interface. 8 | func (v Version) MarshalJSON() ([]byte, error) { 9 | return json.Marshal(v.String()) 10 | } 11 | 12 | // UnmarshalJSON implements the encoding/json.Unmarshaler interface. 13 | func (v *Version) UnmarshalJSON(data []byte) (err error) { 14 | var versionString string 15 | 16 | if err = json.Unmarshal(data, &versionString); err != nil { 17 | return 18 | } 19 | 20 | *v, err = Parse(versionString) 21 | 22 | return 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "blang", 3 | "bugs": { 4 | "URL": "https://github.com/blang/semver/issues", 5 | "url": "https://github.com/blang/semver/issues" 6 | }, 7 | "gx": { 8 | "dvcsimport": "github.com/blang/semver" 9 | }, 10 | "gxVersion": "0.10.0", 11 | "language": "go", 12 | "license": "MIT", 13 | "name": "semver", 14 | "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", 15 | "version": "3.5.1" 16 | } 17 | 18 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sort.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "sort" 5 | ) 6 | 7 | // Versions represents multiple versions. 8 | type Versions []Version 9 | 10 | // Len returns length of version collection 11 | func (s Versions) Len() int { 12 | return len(s) 13 | } 14 | 15 | // Swap swaps two versions inside the collection by its indices 16 | func (s Versions) Swap(i, j int) { 17 | s[i], s[j] = s[j], s[i] 18 | } 19 | 20 | // Less checks if version at index i is less than version at index j 21 | func (s Versions) Less(i, j int) bool { 22 | return s[i].LT(s[j]) 23 | } 24 | 25 | // Sort sorts a slice of versions 26 | func Sort(versions []Version) { 27 | sort.Sort(Versions(versions)) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/blang/semver/sql.go: -------------------------------------------------------------------------------- 1 | package semver 2 | 3 | import ( 4 | "database/sql/driver" 5 | "fmt" 6 | ) 7 | 8 | // Scan implements the database/sql.Scanner interface. 9 | func (v *Version) Scan(src interface{}) (err error) { 10 | var str string 11 | switch src := src.(type) { 12 | case string: 13 | str = src 14 | case []byte: 15 | str = string(src) 16 | default: 17 | return fmt.Errorf("Version.Scan: cannot convert %T to string.", src) 18 | } 19 | 20 | if t, err := Parse(str); err == nil { 21 | *v = t 22 | } 23 | 24 | return 25 | } 26 | 27 | // Value implements the database/sql/driver.Valuer interface. 28 | func (v Version) Value() (driver.Value, error) { 29 | return v.String(), nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/cgroups/stats/v1/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The containerd Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package v1 18 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/console/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - structcheck 4 | - varcheck 5 | - staticcheck 6 | - unconvert 7 | - gofmt 8 | - goimports 9 | - golint 10 | - ineffassign 11 | - vet 12 | - unused 13 | - misspell 14 | disable: 15 | - errcheck 16 | 17 | run: 18 | timeout: 3m 19 | skip-dirs: 20 | - vendor 21 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/console/tc_zos.go: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright The containerd Authors. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | */ 16 | 17 | package console 18 | 19 | import ( 20 | "golang.org/x/sys/unix" 21 | ) 22 | 23 | const ( 24 | cmdTcGet = unix.TCGETS 25 | cmdTcSet = unix.TCSETS 26 | ) 27 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/go-runc/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.x 4 | - 1.14.x 5 | - 1.15.x 6 | 7 | install: 8 | - go get -t ./... 9 | - go get -u github.com/vbatts/git-validation 10 | - go get -u github.com/kunalkushwaha/ltag 11 | 12 | before_script: 13 | - pushd ..; git clone https://github.com/containerd/project; popd 14 | 15 | script: 16 | - DCO_VERBOSITY=-q ../project/script/validate/dco 17 | - ../project/script/validate/fileheader ../project/ 18 | - go test -v -race -covermode=atomic -coverprofile=coverage.txt ./... 19 | 20 | after_success: 21 | - bash <(curl -s https://codecov.io/bash) 22 | -------------------------------------------------------------------------------- /vendor/github.com/containernetworking/cni/pkg/invoke/os_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 CNI authors 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 | 15 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 16 | 17 | package invoke 18 | 19 | // Valid file extensions for plugin executables. 20 | var ExecutableFileExtensions = []string{""} 21 | -------------------------------------------------------------------------------- /vendor/github.com/containernetworking/cni/pkg/invoke/os_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 CNI authors 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 | 15 | package invoke 16 | 17 | // Valid file extensions for plugin executables. 18 | var ExecutableFileExtensions = []string{".exe", ""} 19 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 1m 3 | tests: true 4 | 5 | linters: 6 | disable-all: true 7 | enable: 8 | - asciicheck 9 | - deadcode 10 | - errcheck 11 | - forcetypeassert 12 | - gocritic 13 | - gofmt 14 | - goimports 15 | - gosimple 16 | - govet 17 | - ineffassign 18 | - misspell 19 | - revive 20 | - staticcheck 21 | - structcheck 22 | - typecheck 23 | - unused 24 | - varcheck 25 | 26 | issues: 27 | exclude-use-default: false 28 | max-issues-per-linter: 0 29 | max-same-issues: 10 30 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | ## v1.0.0-rc1 4 | 5 | This is the first logged release. Major changes (including breaking changes) 6 | have occurred since earlier tags. 7 | -------------------------------------------------------------------------------- /vendor/github.com/go-logr/logr/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Logr is open to pull-requests, provided they fit within the intended scope of 4 | the project. Specifically, this library aims to be VERY small and minimalist, 5 | with no external dependencies. 6 | 7 | ## Compatibility 8 | 9 | This project intends to follow [semantic versioning](http://semver.org) and 10 | is very strict about compatibility. Any proposed changes MUST follow those 11 | rules. 12 | 13 | ## Performance 14 | 15 | As a logging library, logr must be as light-weight as possible. Any proposed 16 | code change must include results of running the [benchmark](./benchmark) 17 | before and after the change. 18 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | insert_final_newline = true 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | indent_style = tab 10 | indent_size = 8 11 | 12 | [*.{md,yml,yaml,json}] 13 | indent_style = space 14 | indent_size = 2 15 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | /.glide 3 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/Taskfile.yml: -------------------------------------------------------------------------------- 1 | # https://taskfile.dev 2 | 3 | version: '2' 4 | 5 | tasks: 6 | default: 7 | cmds: 8 | - task: test 9 | 10 | test: 11 | cmds: 12 | - go test -v . 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/crypto.go: -------------------------------------------------------------------------------- 1 | package sprig 2 | 3 | import ( 4 | "crypto/sha1" 5 | "crypto/sha256" 6 | "encoding/hex" 7 | "fmt" 8 | "hash/adler32" 9 | ) 10 | 11 | func sha256sum(input string) string { 12 | hash := sha256.Sum256([]byte(input)) 13 | return hex.EncodeToString(hash[:]) 14 | } 15 | 16 | func sha1sum(input string) string { 17 | hash := sha1.Sum([]byte(input)) 18 | return hex.EncodeToString(hash[:]) 19 | } 20 | 21 | func adler32sum(input string) string { 22 | hash := adler32.Checksum([]byte(input)) 23 | return fmt.Sprintf("%d", hash) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package sprig provides template functions for Go. 3 | 4 | This package contains a number of utility functions for working with data 5 | inside of Go `html/template` and `text/template` files. 6 | 7 | To add these functions, use the `template.Funcs()` method: 8 | 9 | t := templates.New("foo").Funcs(sprig.FuncMap()) 10 | 11 | Note that you should add the function map before you parse any template files. 12 | 13 | In several cases, Sprig reverses the order of arguments from the way they 14 | appear in the standard library. This is to make it easier to pipe 15 | arguments into functions. 16 | 17 | See http://masterminds.github.io/sprig/ for more detailed documentation on each of the available functions. 18 | */ 19 | package sprig 20 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/network.go: -------------------------------------------------------------------------------- 1 | package sprig 2 | 3 | import ( 4 | "math/rand" 5 | "net" 6 | ) 7 | 8 | func getHostByName(name string) string { 9 | addrs, _ := net.LookupHost(name) 10 | //TODO: add error handing when release v3 comes out 11 | return addrs[rand.Intn(len(addrs))] 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/go-task/slim-sprig/reflect.go: -------------------------------------------------------------------------------- 1 | package sprig 2 | 3 | import ( 4 | "fmt" 5 | "reflect" 6 | ) 7 | 8 | // typeIs returns true if the src is the type named in target. 9 | func typeIs(target string, src interface{}) bool { 10 | return target == typeOf(src) 11 | } 12 | 13 | func typeIsLike(target string, src interface{}) bool { 14 | t := typeOf(src) 15 | return target == t || "*"+target == t 16 | } 17 | 18 | func typeOf(src interface{}) string { 19 | return fmt.Sprintf("%T", src) 20 | } 21 | 22 | func kindIs(target string, src interface{}) bool { 23 | return target == kindOf(src) 24 | } 25 | 26 | func kindOf(src interface{}) string { 27 | return reflect.ValueOf(src).Kind().String() 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of GoGo authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS file, which 3 | # lists people. For example, employees are listed in CONTRIBUTORS, 4 | # but not in AUTHORS, because the employer holds the copyright. 5 | 6 | # Names should be added to this file as one of 7 | # Organization's name 8 | # Individual's name 9 | # Individual's name 10 | 11 | # Please keep the list sorted. 12 | 13 | Sendgrid, Inc 14 | Vastech SA (PTY) LTD 15 | Walter Schulze 16 | -------------------------------------------------------------------------------- /vendor/github.com/gogo/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Anton Povarov 2 | Brian Goff 3 | Clayton Coleman 4 | Denis Smirnov 5 | DongYun Kang 6 | Dwayne Schultz 7 | Georg Apitz 8 | Gustav Paul 9 | Johan Brandhorst 10 | John Shahid 11 | John Tuley 12 | Laurent 13 | Patrick Lee 14 | Peter Edge 15 | Roger Johansson 16 | Sam Nguyen 17 | Sergio Arbeo 18 | Stephen J Day 19 | Tamir Duberstein 20 | Todd Eisenberger 21 | Tormod Erevik Lea 22 | Vyacheslav Kim 23 | Walter Schulze 24 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.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 !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/google/pprof/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of pprof authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | # Names should be added to this file as: 5 | # Name or Organization 6 | # The email address is not required for organizations. 7 | Google Inc. -------------------------------------------------------------------------------- /vendor/github.com/google/pprof/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # People who have agreed to one of the CLAs and can contribute patches. 2 | # The AUTHORS file lists the copyright holders; this file 3 | # lists people. For example, Google employees are listed here 4 | # but not in AUTHORS, because Google holds the copyright. 5 | # 6 | # https://developers.google.com/open-source/cla/individual 7 | # https://developers.google.com/open-source/cla/corporate 8 | # 9 | # Names should be added to this file as: 10 | # Name 11 | Raul Silvera 12 | Tipp Moseley 13 | Hyoun Kyu Cho 14 | Martin Spier 15 | Taco de Wolff 16 | Andrew Hunter 17 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | 8 | branches: 9 | only: 10 | - master 11 | 12 | script: make test testrace 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/format.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // ErrorFormatFunc is a function callback that is called by Error to 9 | // turn the list of errors into a string. 10 | type ErrorFormatFunc func([]error) string 11 | 12 | // ListFormatFunc is a basic formatter that outputs the number of errors 13 | // that occurred along with a bullet point list of the errors. 14 | func ListFormatFunc(es []error) string { 15 | if len(es) == 1 { 16 | return fmt.Sprintf("1 error occurred:\n\t* %s\n\n", es[0]) 17 | } 18 | 19 | points := make([]string, len(es)) 20 | for i, err := range es { 21 | points[i] = fmt.Sprintf("* %s", err) 22 | } 23 | 24 | return fmt.Sprintf( 25 | "%d errors occurred:\n\t%s\n\n", 26 | len(es), strings.Join(points, "\n\t")) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/sort.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Len implements sort.Interface function for length 4 | func (err Error) Len() int { 5 | return len(err.Errors) 6 | } 7 | 8 | // Swap implements sort.Interface function for swapping elements 9 | func (err Error) Swap(i, j int) { 10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i] 11 | } 12 | 13 | // Less implements sort.Interface function for determining order 14 | func (err Error) Less(i, j int) bool { 15 | return err.Errors[i].Error() < err.Errors[j].Error() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | TODO.md 3 | tmp/**/* 4 | *.coverprofile 5 | .vscode 6 | .idea/ 7 | *.log -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Ginkgo 2 | 3 | Your contributions to Ginkgo are essential for its long-term maintenance and improvement. 4 | 5 | - Please **open an issue first** - describe what problem you are trying to solve and give the community a forum for input and feedback ahead of investing time in writing code! 6 | - Ensure adequate test coverage: 7 | - When adding to the Ginkgo library, add unit and/or integration tests (under the `integration` folder). 8 | - When adding to the Ginkgo CLI, note that there are very few unit tests. Please add an integration test. 9 | - Make sure all the tests succeed via `ginkgo -r -p` 10 | - Vet your changes via `go vet ./...` 11 | - Update the documentation. Ginkgo uses `godoc` comments and documentation in `docs/index.md`. You can run `bundle exec jekyll serve` in the `docs` directory to preview your changes. 12 | 13 | Thanks for supporting Ginkgo! -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/RELEASING.md: -------------------------------------------------------------------------------- 1 | A Ginkgo release is a tagged git sha and a GitHub release. To cut a release: 2 | 3 | 1. Ensure CHANGELOG.md is up to date. 4 | - Use 5 | ```bash 6 | LAST_VERSION=$(git tag --sort=version:refname | tail -n1) 7 | CHANGES=$(git log --pretty=format:'- %s [%h]' HEAD...$LAST_VERSION) 8 | echo -e "## NEXT\n\n$CHANGES\n\n### Features\n\n### Fixes\n\n### Maintenance\n\n$(cat CHANGELOG.md)" > CHANGELOG.md 9 | ``` 10 | to update the changelog 11 | - Categorize the changes into 12 | - Breaking Changes (requires a major version) 13 | - New Features (minor version) 14 | - Fixes (fix version) 15 | - Maintenance (which in general should not be mentioned in `CHANGELOG.md` as they have no user impact) 16 | 1. Update `VERSION` in `types/version.go` 17 | 1. Commit, push, and release: 18 | ``` 19 | git commit -m "vM.m.p" 20 | git push 21 | gh release create "vM.m.p" 22 | git fetch --tags origin master 23 | ``` -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/ginkgo/watch/delta.go: -------------------------------------------------------------------------------- 1 | package watch 2 | 3 | import "sort" 4 | 5 | type Delta struct { 6 | ModifiedPackages []string 7 | 8 | NewSuites []*Suite 9 | RemovedSuites []*Suite 10 | modifiedSuites []*Suite 11 | } 12 | 13 | type DescendingByDelta []*Suite 14 | 15 | func (a DescendingByDelta) Len() int { return len(a) } 16 | func (a DescendingByDelta) Swap(i, j int) { a[i], a[j] = a[j], a[i] } 17 | func (a DescendingByDelta) Less(i, j int) bool { return a[i].Delta() > a[j].Delta() } 18 | 19 | func (d Delta) ModifiedSuites() []*Suite { 20 | sort.Sort(DescendingByDelta(d.modifiedSuites)) 21 | return d.modifiedSuites 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/ginkgo_cli_dependencies.go: -------------------------------------------------------------------------------- 1 | //go:build ginkgoclidependencies 2 | // +build ginkgoclidependencies 3 | 4 | package ginkgo 5 | 6 | import ( 7 | _ "github.com/onsi/ginkgo/v2/ginkgo" 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/counter.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | func MakeIncrementingIndexCounter() func() (int, error) { 4 | idx := -1 5 | return func() (int, error) { 6 | idx += 1 7 | return idx, nil 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/global/init.go: -------------------------------------------------------------------------------- 1 | package global 2 | 3 | import ( 4 | "github.com/onsi/ginkgo/v2/internal" 5 | ) 6 | 7 | var Suite *internal.Suite 8 | var Failer *internal.Failer 9 | 10 | func init() { 11 | InitializeGlobals() 12 | } 13 | 14 | func InitializeGlobals() { 15 | Failer = internal.NewFailer() 16 | Suite = internal.NewSuite() 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/interrupt_handler/sigquit_swallower_unix.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || dragonfly || darwin || linux || solaris 2 | // +build freebsd openbsd netbsd dragonfly darwin linux solaris 3 | 4 | package interrupt_handler 5 | 6 | import ( 7 | "os" 8 | "os/signal" 9 | "syscall" 10 | ) 11 | 12 | func SwallowSigQuit() { 13 | c := make(chan os.Signal, 1024) 14 | signal.Notify(c, syscall.SIGQUIT) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/interrupt_handler/sigquit_swallower_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package interrupt_handler 5 | 6 | func SwallowSigQuit() { 7 | //noop 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/output_interceptor_win.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package internal 4 | 5 | func NewOutputInterceptor() OutputInterceptor { 6 | return NewOSGlobalReassigningOutputInterceptor() 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/progress_report_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build freebsd || openbsd || netbsd || darwin || dragonfly 2 | // +build freebsd openbsd netbsd darwin dragonfly 3 | 4 | package internal 5 | 6 | import ( 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | var PROGRESS_SIGNALS = []os.Signal{syscall.SIGINFO, syscall.SIGUSR1} 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/progress_report_unix.go: -------------------------------------------------------------------------------- 1 | //go:build linux || solaris 2 | // +build linux solaris 3 | 4 | package internal 5 | 6 | import ( 7 | "os" 8 | "syscall" 9 | ) 10 | 11 | var PROGRESS_SIGNALS = []os.Signal{syscall.SIGUSR1} 12 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/internal/progress_report_win.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | // +build windows 3 | 4 | package internal 5 | 6 | import "os" 7 | 8 | var PROGRESS_SIGNALS = []os.Signal{} 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/ginkgo/v2/types/version.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | const VERSION = "2.9.1" 4 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.test 3 | . 4 | .idea 5 | gomega.iml 6 | TODO.md 7 | .vscode -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/RELEASING.md: -------------------------------------------------------------------------------- 1 | A Gomega release is a tagged sha and a GitHub release. To cut a release: 2 | 3 | 1. Ensure CHANGELOG.md is up to date. 4 | - Use 5 | ```bash 6 | LAST_VERSION=$(git tag --sort=version:refname | tail -n1) 7 | CHANGES=$(git log --pretty=format:'- %s [%h]' HEAD...$LAST_VERSION) 8 | echo -e "## NEXT\n\n$CHANGES\n\n### Features\n\n### Fixes\n\n### Maintenance\n\n$(cat CHANGELOG.md)" > CHANGELOG.md 9 | ``` 10 | to update the changelog 11 | - Categorize the changes into 12 | - Breaking Changes (requires a major version) 13 | - New Features (minor version) 14 | - Fixes (fix version) 15 | - Maintenance (which in general should not be mentioned in `CHANGELOG.md` as they have no user impact) 16 | 1. Update GOMEGA_VERSION in `gomega_dsl.go` 17 | 1. Commit, push, and release: 18 | ``` 19 | git commit -m "vM.m.p" 20 | git push 21 | gh release create "vM.m.p" 22 | git fetch --tags origin master 23 | ``` -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/internal/vetoptdesc.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/onsi/gomega/types" 7 | ) 8 | 9 | // vetOptionalDescription vets the optional description args: if it finds any 10 | // Gomega matcher at the beginning it panics. This allows for rendering Gomega 11 | // matchers as part of an optional Description, as long as they're not in the 12 | // first slot. 13 | func vetOptionalDescription(assertion string, optionalDescription ...interface{}) { 14 | if len(optionalDescription) == 0 { 15 | return 16 | } 17 | if _, isGomegaMatcher := optionalDescription[0].(types.GomegaMatcher); isGomegaMatcher { 18 | panic(fmt.Sprintf("%s has a GomegaMatcher as the first element of optionalDescription.\n\t"+ 19 | "Do you mean to use And/Or/SatisfyAll/SatisfyAny to combine multiple matchers?", 20 | assertion)) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/attributes_slice.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "encoding/xml" 5 | "strings" 6 | ) 7 | 8 | type attributesSlice []xml.Attr 9 | 10 | func (attrs attributesSlice) Len() int { return len(attrs) } 11 | func (attrs attributesSlice) Less(i, j int) bool { 12 | return strings.Compare(attrs[i].Name.Local, attrs[j].Name.Local) == -1 13 | } 14 | func (attrs attributesSlice) Swap(i, j int) { attrs[i], attrs[j] = attrs[j], attrs[i] } 15 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_empty_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import ( 6 | "fmt" 7 | 8 | "github.com/onsi/gomega/format" 9 | ) 10 | 11 | type BeEmptyMatcher struct { 12 | } 13 | 14 | func (matcher *BeEmptyMatcher) Match(actual interface{}) (success bool, err error) { 15 | length, ok := lengthOf(actual) 16 | if !ok { 17 | return false, fmt.Errorf("BeEmpty matcher expects a string/array/map/channel/slice. Got:\n%s", format.Object(actual, 1)) 18 | } 19 | 20 | return length == 0, nil 21 | } 22 | 23 | func (matcher *BeEmptyMatcher) FailureMessage(actual interface{}) (message string) { 24 | return format.Message(actual, "to be empty") 25 | } 26 | 27 | func (matcher *BeEmptyMatcher) NegatedFailureMessage(actual interface{}) (message string) { 28 | return format.Message(actual, "not to be empty") 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_false_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import ( 6 | "fmt" 7 | 8 | "github.com/onsi/gomega/format" 9 | ) 10 | 11 | type BeFalseMatcher struct { 12 | } 13 | 14 | func (matcher *BeFalseMatcher) Match(actual interface{}) (success bool, err error) { 15 | if !isBool(actual) { 16 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 17 | } 18 | 19 | return actual == false, nil 20 | } 21 | 22 | func (matcher *BeFalseMatcher) FailureMessage(actual interface{}) (message string) { 23 | return format.Message(actual, "to be false") 24 | } 25 | 26 | func (matcher *BeFalseMatcher) NegatedFailureMessage(actual interface{}) (message string) { 27 | return format.Message(actual, "not to be false") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_nil_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import "github.com/onsi/gomega/format" 6 | 7 | type BeNilMatcher struct { 8 | } 9 | 10 | func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) { 11 | return isNil(actual), nil 12 | } 13 | 14 | func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) { 15 | return format.Message(actual, "to be nil") 16 | } 17 | 18 | func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) { 19 | return format.Message(actual, "not to be nil") 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_true_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import ( 6 | "fmt" 7 | 8 | "github.com/onsi/gomega/format" 9 | ) 10 | 11 | type BeTrueMatcher struct { 12 | } 13 | 14 | func (matcher *BeTrueMatcher) Match(actual interface{}) (success bool, err error) { 15 | if !isBool(actual) { 16 | return false, fmt.Errorf("Expected a boolean. Got:\n%s", format.Object(actual, 1)) 17 | } 18 | 19 | return actual.(bool), nil 20 | } 21 | 22 | func (matcher *BeTrueMatcher) FailureMessage(actual interface{}) (message string) { 23 | return format.Message(actual, "to be true") 24 | } 25 | 26 | func (matcher *BeTrueMatcher) NegatedFailureMessage(actual interface{}) (message string) { 27 | return format.Message(actual, "not to be true") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/be_zero_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "reflect" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type BeZeroMatcher struct { 10 | } 11 | 12 | func (matcher *BeZeroMatcher) Match(actual interface{}) (success bool, err error) { 13 | if actual == nil { 14 | return true, nil 15 | } 16 | zeroValue := reflect.Zero(reflect.TypeOf(actual)).Interface() 17 | 18 | return reflect.DeepEqual(zeroValue, actual), nil 19 | 20 | } 21 | 22 | func (matcher *BeZeroMatcher) FailureMessage(actual interface{}) (message string) { 23 | return format.Message(actual, "to be zero-valued") 24 | } 25 | 26 | func (matcher *BeZeroMatcher) NegatedFailureMessage(actual interface{}) (message string) { 27 | return format.Message(actual, "not to be zero-valued") 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/have_cap_matcher.go: -------------------------------------------------------------------------------- 1 | // untested sections: 2 2 | 3 | package matchers 4 | 5 | import ( 6 | "fmt" 7 | 8 | "github.com/onsi/gomega/format" 9 | ) 10 | 11 | type HaveCapMatcher struct { 12 | Count int 13 | } 14 | 15 | func (matcher *HaveCapMatcher) Match(actual interface{}) (success bool, err error) { 16 | length, ok := capOf(actual) 17 | if !ok { 18 | return false, fmt.Errorf("HaveCap matcher expects a array/channel/slice. Got:\n%s", format.Object(actual, 1)) 19 | } 20 | 21 | return length == matcher.Count, nil 22 | } 23 | 24 | func (matcher *HaveCapMatcher) FailureMessage(actual interface{}) (message string) { 25 | return fmt.Sprintf("Expected\n%s\nto have capacity %d", format.Object(actual, 1), matcher.Count) 26 | } 27 | 28 | func (matcher *HaveCapMatcher) NegatedFailureMessage(actual interface{}) (message string) { 29 | return fmt.Sprintf("Expected\n%s\nnot to have capacity %d", format.Object(actual, 1), matcher.Count) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/have_len_matcher.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/onsi/gomega/format" 7 | ) 8 | 9 | type HaveLenMatcher struct { 10 | Count int 11 | } 12 | 13 | func (matcher *HaveLenMatcher) Match(actual interface{}) (success bool, err error) { 14 | length, ok := lengthOf(actual) 15 | if !ok { 16 | return false, fmt.Errorf("HaveLen matcher expects a string/array/map/channel/slice. Got:\n%s", format.Object(actual, 1)) 17 | } 18 | 19 | return length == matcher.Count, nil 20 | } 21 | 22 | func (matcher *HaveLenMatcher) FailureMessage(actual interface{}) (message string) { 23 | return fmt.Sprintf("Expected\n%s\nto have length %d", format.Object(actual, 1), matcher.Count) 24 | } 25 | 26 | func (matcher *HaveLenMatcher) NegatedFailureMessage(actual interface{}) (message string) { 27 | return fmt.Sprintf("Expected\n%s\nnot to have length %d", format.Object(actual, 1), matcher.Count) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/not.go: -------------------------------------------------------------------------------- 1 | package matchers 2 | 3 | import ( 4 | "github.com/onsi/gomega/types" 5 | ) 6 | 7 | type NotMatcher struct { 8 | Matcher types.GomegaMatcher 9 | } 10 | 11 | func (m *NotMatcher) Match(actual interface{}) (bool, error) { 12 | success, err := m.Matcher.Match(actual) 13 | if err != nil { 14 | return false, err 15 | } 16 | return !success, nil 17 | } 18 | 19 | func (m *NotMatcher) FailureMessage(actual interface{}) (message string) { 20 | return m.Matcher.NegatedFailureMessage(actual) // works beautifully 21 | } 22 | 23 | func (m *NotMatcher) NegatedFailureMessage(actual interface{}) (message string) { 24 | return m.Matcher.FailureMessage(actual) // works beautifully 25 | } 26 | 27 | func (m *NotMatcher) MatchMayChangeInTheFuture(actual interface{}) bool { 28 | return types.MatchMayChangeInTheFuture(m.Matcher, actual) // just return m.Matcher's value 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/node/node.go: -------------------------------------------------------------------------------- 1 | package node 2 | 3 | type Node struct { 4 | ID int 5 | Value interface{} 6 | } 7 | 8 | type NodeOrderedSet []Node 9 | -------------------------------------------------------------------------------- /vendor/github.com/onsi/gomega/matchers/support/goraph/util/util.go: -------------------------------------------------------------------------------- 1 | package util 2 | 3 | import "math" 4 | 5 | func Odd(n int) bool { 6 | return math.Mod(float64(n), 2.0) == 1.0 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-spec/specs-go/version.go: -------------------------------------------------------------------------------- 1 | package specs 2 | 3 | import "fmt" 4 | 5 | const ( 6 | // VersionMajor is for an API incompatible changes 7 | VersionMajor = 1 8 | // VersionMinor is for functionality in a backwards-compatible manner 9 | VersionMinor = 0 10 | // VersionPatch is for backwards-compatible bug fixes 11 | VersionPatch = 2 12 | 13 | // VersionDev indicates development branch. Releases will be empty string. 14 | VersionDev = "-dev" 15 | ) 16 | 17 | // Version is the specification version that the package types support. 18 | var Version = fmt.Sprintf("%d.%d.%d%s", VersionMajor, VersionMinor, VersionPatch, VersionDev) 19 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/filepath/ancestor.go: -------------------------------------------------------------------------------- 1 | package filepath 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // IsAncestor returns true when pathB is an strict ancestor of pathA, 9 | // and false where the paths are equal or pathB is outside of pathA. 10 | // Paths that are not absolute will be made absolute with Abs. 11 | func IsAncestor(os, pathA, pathB, cwd string) (_ bool, err error) { 12 | if pathA == pathB { 13 | return false, nil 14 | } 15 | 16 | pathA, err = Abs(os, pathA, cwd) 17 | if err != nil { 18 | return false, err 19 | } 20 | pathB, err = Abs(os, pathB, cwd) 21 | if err != nil { 22 | return false, err 23 | } 24 | sep := Separator(os) 25 | if !strings.HasSuffix(pathA, string(sep)) { 26 | pathA = fmt.Sprintf("%s%c", pathA, sep) 27 | } 28 | if pathA == pathB { 29 | return false, nil 30 | } 31 | return strings.HasPrefix(pathB, pathA), nil 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/filepath/doc.go: -------------------------------------------------------------------------------- 1 | // Package filepath implements Go's filepath package with explicit 2 | // operating systems (and for some functions and explicit working 3 | // directory). This allows tools built for one OS to operate on paths 4 | // targeting another OS. For example, a Linux build can determine 5 | // whether a path is absolute on Linux or on Windows. 6 | package filepath 7 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/filepath/join.go: -------------------------------------------------------------------------------- 1 | package filepath 2 | 3 | import "strings" 4 | 5 | // Join is an explicit-OS version of path/filepath's Join. 6 | func Join(os string, elem ...string) string { 7 | sep := Separator(os) 8 | return Clean(os, strings.Join(elem, string(sep))) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/filepath/separator.go: -------------------------------------------------------------------------------- 1 | package filepath 2 | 3 | // Separator is an explicit-OS version of path/filepath's Separator. 4 | func Separator(os string) rune { 5 | if os == "windows" { 6 | return '\\' 7 | } 8 | return '/' 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/generate/seccomp/consts.go: -------------------------------------------------------------------------------- 1 | package seccomp 2 | 3 | const ( 4 | seccompOverwrite = "overwrite" 5 | seccompAppend = "append" 6 | nothing = "nothing" 7 | kill = "kill" 8 | trap = "trap" 9 | trace = "trace" 10 | allow = "allow" 11 | errno = "errno" 12 | ) 13 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/generate/seccomp/seccomp_default_linux.go: -------------------------------------------------------------------------------- 1 | // +build linux 2 | 3 | package seccomp 4 | 5 | import "syscall" 6 | 7 | // System values passed through on linux 8 | const ( 9 | CloneNewIPC = syscall.CLONE_NEWIPC 10 | CloneNewNet = syscall.CLONE_NEWNET 11 | CloneNewNS = syscall.CLONE_NEWNS 12 | CloneNewPID = syscall.CLONE_NEWPID 13 | CloneNewUser = syscall.CLONE_NEWUSER 14 | CloneNewUTS = syscall.CLONE_NEWUTS 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/generate/seccomp/seccomp_default_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package seccomp 4 | 5 | // These are copied from linux/amd64 syscall values, as a reference for other 6 | // platforms to have access to 7 | const ( 8 | CloneNewIPC = 0x8000000 9 | CloneNewNet = 0x40000000 10 | CloneNewNS = 0x20000 11 | CloneNewPID = 0x20000000 12 | CloneNewUser = 0x10000000 13 | CloneNewUTS = 0x4000000 14 | CloneNewCgroup = 0x02000000 15 | ) 16 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/specerror/runtime-linux.go: -------------------------------------------------------------------------------- 1 | package specerror 2 | 3 | import ( 4 | "fmt" 5 | 6 | rfc2119 "github.com/opencontainers/runtime-tools/error" 7 | ) 8 | 9 | // define error codes 10 | const ( 11 | // DefaultRuntimeLinuxSymlinks represents "While creating the container (step 2 in the lifecycle), runtimes MUST create default symlinks if the source file exists after processing `mounts`." 12 | DefaultRuntimeLinuxSymlinks Code = 0xf001 + iota 13 | ) 14 | 15 | var ( 16 | devSymbolicLinksRef = func(version string) (reference string, err error) { 17 | return fmt.Sprintf(referenceTemplate, version, "runtime-linux.md#dev-symbolic-links"), nil 18 | } 19 | ) 20 | 21 | func init() { 22 | register(DefaultRuntimeLinuxSymlinks, rfc2119.Must, devSymbolicLinksRef) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runtime-tools/validate/validate_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package validate 4 | 5 | import ( 6 | "github.com/syndtr/gocapability/capability" 7 | ) 8 | 9 | // LastCap return last cap of system 10 | func LastCap() capability.Cap { 11 | return capability.Cap(-1) 12 | } 13 | 14 | // CheckLinux is a noop on this platform 15 | func (v *Validator) CheckLinux() (errs error) { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/selinux/go-selinux/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package selinux provides a high-level interface for interacting with selinux. 3 | 4 | Usage: 5 | 6 | import "github.com/opencontainers/selinux/go-selinux" 7 | 8 | // Ensure that selinux is enforcing mode. 9 | if selinux.EnforceMode() != selinux.Enforcing { 10 | selinux.SetEnforceMode(selinux.Enforcing) 11 | } 12 | 13 | */ 14 | package selinux 15 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/selinux/go-selinux/rchcon.go: -------------------------------------------------------------------------------- 1 | // +build linux,go1.16 2 | 3 | package selinux 4 | 5 | import ( 6 | "errors" 7 | "io/fs" 8 | "os" 9 | 10 | "github.com/opencontainers/selinux/pkg/pwalkdir" 11 | ) 12 | 13 | func rchcon(fpath, label string) error { 14 | return pwalkdir.Walk(fpath, func(p string, _ fs.DirEntry, _ error) error { 15 | e := setFileLabel(p, label) 16 | // Walk a file tree can race with removal, so ignore ENOENT. 17 | if errors.Is(e, os.ErrNotExist) { 18 | return nil 19 | } 20 | return e 21 | }) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/selinux/go-selinux/rchcon_go115.go: -------------------------------------------------------------------------------- 1 | // +build linux,!go1.16 2 | 3 | package selinux 4 | 5 | import ( 6 | "errors" 7 | "os" 8 | 9 | "github.com/opencontainers/selinux/pkg/pwalk" 10 | ) 11 | 12 | func rchcon(fpath, label string) error { 13 | return pwalk.Walk(fpath, func(p string, _ os.FileInfo, _ error) error { 14 | e := setFileLabel(p, label) 15 | // Walk a file tree can race with removal, so ignore ENOENT. 16 | if errors.Is(e, os.ErrNotExist) { 17 | return nil 18 | } 19 | return e 20 | }) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | 4 | .idea/ 5 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/sirupsen/logrus 3 | git: 4 | depth: 1 5 | env: 6 | - GO111MODULE=on 7 | go: 1.15.x 8 | os: linux 9 | install: 10 | - ./travis/install.sh 11 | script: 12 | - cd ci 13 | - go run mage.go -v -w ../ crossBuild 14 | - go run mage.go -v -w ../ lint 15 | - go run mage.go -v -w ../ test 16 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package logrus is a structured logger for Go, completely API compatible with the standard library logger. 3 | 4 | 5 | The simplest way to use Logrus is simply the package-level exported logger: 6 | 7 | package main 8 | 9 | import ( 10 | log "github.com/sirupsen/logrus" 11 | ) 12 | 13 | func main() { 14 | log.WithFields(log.Fields{ 15 | "animal": "walrus", 16 | "number": 1, 17 | "size": 10, 18 | }).Info("A walrus appears") 19 | } 20 | 21 | Output: 22 | time="2015-09-07T08:48:33Z" level=info msg="A walrus appears" animal=walrus number=1 size=10 23 | 24 | For a full guide visit https://github.com/sirupsen/logrus 25 | */ 26 | package logrus 27 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TIOCGETA 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_js.go: -------------------------------------------------------------------------------- 1 | // +build js 2 | 3 | package logrus 4 | 5 | func isTerminal(fd int) bool { 6 | return false 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !js 3 | 4 | package logrus 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | const ioctlReadTermios = unix.TCGETS 9 | 10 | func isTerminal(fd int) bool { 11 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 12 | return err == nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_windows.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,windows 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/windows" 10 | ) 11 | 12 | func checkIfTerminal(w io.Writer) bool { 13 | switch v := w.(type) { 14 | case *os.File: 15 | handle := windows.Handle(v.Fd()) 16 | var mode uint32 17 | if err := windows.GetConsoleMode(handle, &mode); err != nil { 18 | return false 19 | } 20 | mode |= windows.ENABLE_VIRTUAL_TERMINAL_PROCESSING 21 | if err := windows.SetConsoleMode(handle, mode); err != nil { 22 | return false 23 | } 24 | return true 25 | } 26 | return false 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/syndtr/gocapability/capability/capability_noop.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2013, Suryandaru Triandana 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 !linux 8 | 9 | package capability 10 | 11 | import "errors" 12 | 13 | func newPid(pid int) (Capabilities, error) { 14 | return nil, errors.New("not supported") 15 | } 16 | 17 | func newFile(path string) (Capabilities, error) { 18 | return nil, errors.New("not supported") 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/xeipuuv/gojsonreference/README.md: -------------------------------------------------------------------------------- 1 | # gojsonreference 2 | An implementation of JSON Reference - Go language 3 | 4 | ## Dependencies 5 | https://github.com/xeipuuv/gojsonpointer 6 | 7 | ## References 8 | http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07 9 | 10 | http://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03 11 | -------------------------------------------------------------------------------- /vendor/github.com/xeipuuv/gojsonschema/.gitignore: -------------------------------------------------------------------------------- 1 | *.sw[nop] 2 | *.iml 3 | .vscode/ 4 | -------------------------------------------------------------------------------- /vendor/github.com/xeipuuv/gojsonschema/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.5" 4 | - "1.6" 5 | - "1.7" 6 | - "1.8" 7 | - "1.9" 8 | - "1.10" 9 | before_install: 10 | - go get github.com/xeipuuv/gojsonreference 11 | - go get github.com/xeipuuv/gojsonpointer 12 | - go get github.com/stretchr/testify/assert 13 | -------------------------------------------------------------------------------- /vendor/github.com/xeipuuv/gojsonschema/glide.yaml: -------------------------------------------------------------------------------- 1 | package: github.com/xeipuuv/gojsonschema 2 | license: Apache 2.0 3 | import: 4 | - package: github.com/xeipuuv/gojsonschema 5 | 6 | - package: github.com/xeipuuv/gojsonpointer 7 | 8 | - package: github.com/xeipuuv/gojsonreference 9 | 10 | testImport: 11 | - package: github.com/stretchr/testify 12 | subpackages: 13 | - assert 14 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea/ 2 | 3 | # go.opencensus.io/exporter/aws 4 | /exporter/aws/ 5 | 6 | # Exclude vendor, use dep ensure after checkout: 7 | /vendor/github.com/ 8 | /vendor/golang.org/ 9 | /vendor/google.golang.org/ 10 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | 3 | platform: x64 4 | 5 | clone_folder: c:\gopath\src\go.opencensus.io 6 | 7 | environment: 8 | GOPATH: 'c:\gopath' 9 | GO111MODULE: 'on' 10 | CGO_ENABLED: '0' # See: https://github.com/appveyor/ci/issues/2613 11 | 12 | stack: go 1.11 13 | 14 | before_test: 15 | - go version 16 | - go env 17 | 18 | build: false 19 | deploy: false 20 | 21 | test_script: 22 | - cd %APPVEYOR_BUILD_FOLDER% 23 | - go build -v .\... 24 | - go test -v .\... # No -race because cgo is disabled 25 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/opencensus.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, OpenCensus Authors 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 | 15 | // Package opencensus contains Go support for OpenCensus. 16 | package opencensus // import "go.opencensus.io" 17 | 18 | // Version is the current release version of OpenCensus in use. 19 | func Version() string { 20 | return "0.23.0" 21 | } 22 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 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 | 15 | // Package internal provides trace internals. 16 | package internal 17 | 18 | // IDGenerator allows custom generators for TraceId and SpanId. 19 | type IDGenerator interface { 20 | NewTraceID() [16]byte 21 | NewSpanID() [8]byte 22 | } 23 | -------------------------------------------------------------------------------- /vendor/go.opencensus.io/trace/trace_nongo11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018, OpenCensus Authors 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 | 15 | // +build !go1.11 16 | 17 | package trace 18 | 19 | import ( 20 | "context" 21 | ) 22 | 23 | func startExecutionTracerTask(ctx context.Context, name string) (context.Context, func()) { 24 | return ctx, func() {} 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/go19.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 go1.9 6 | 7 | package context 8 | 9 | import "context" // standard library's context, as of Go 1.7 10 | 11 | // A Context carries a deadline, a cancelation signal, and other values across 12 | // API boundaries. 13 | // 14 | // Context's methods may be called by multiple goroutines simultaneously. 15 | type Context = context.Context 16 | 17 | // A CancelFunc tells an operation to abandon its work. 18 | // A CancelFunc does not wait for the work to stop. 19 | // After the first call, subsequent calls to a CancelFunc do nothing. 20 | type CancelFunc = context.CancelFunc 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/go120.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | return context.WithCancelCause(parent) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/errgroup/pre_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.20 6 | 7 | package errgroup 8 | 9 | import "context" 10 | 11 | func withCancelCause(parent context.Context) (context.Context, func(error)) { 12 | ctx, cancel := context.WithCancel(parent) 13 | return ctx, func(error) { cancel() } 14 | } 15 | -------------------------------------------------------------------------------- /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_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/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/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 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /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_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_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_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 ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(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 ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(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/text/encoding/japanese/all.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 | package japanese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{EUCJP, ISO2022JP, ShiftJIS} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/simplifiedchinese/all.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 | package simplifiedchinese 6 | 7 | import ( 8 | "golang.org/x/text/encoding" 9 | ) 10 | 11 | // All is a list of all defined encodings in this package. 12 | var All = []encoding.Encoding{GB18030, GBK, HZGB2312} 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/coverage.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 | package language 6 | 7 | // BaseLanguages returns the list of all supported base languages. It generates 8 | // the list by traversing the internal structures. 9 | func BaseLanguages() []Language { 10 | base := make([]Language, 0, NumLanguages) 11 | for i := 0; i < langNoIndexOffset; i++ { 12 | // We included "und" already for the value 0. 13 | if i != nonCanonicalUnd { 14 | base = append(base, Language(i)) 15 | } 16 | } 17 | i := langNoIndexOffset 18 | for _, v := range langNoIndex { 19 | for k := 0; k < 8; k++ { 20 | if v&1 == 1 { 21 | base = append(base, Language(i)) 22 | } 23 | v >>= 1 24 | i++ 25 | } 26 | } 27 | return base 28 | } 29 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | --------------------------------------------------------------------------------