├── .github ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build.yaml │ └── e2e.yaml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Gopkg.lock ├── Gopkg.toml ├── LICENSE ├── Makefile ├── NOTICE ├── README.md ├── TESTING.md ├── capabilities ├── capabilities.go └── capabilities_test.go ├── cni ├── api.go └── plugin.go ├── go.mod ├── go.sum ├── logger ├── logger.go └── logger_test.go ├── network ├── ebtables │ ├── ebtables.go │ └── ebtables_test.go ├── eni │ ├── api.go │ ├── branch.go │ ├── eni.go │ ├── eni_linux.go │ ├── eni_test.go │ ├── geneve.go │ └── trunk.go ├── imds │ ├── imds_linux.go │ └── imds_windows.go ├── ipcfg │ └── ip.go ├── iptables │ ├── iptables.go │ └── iptables_test.go ├── netns │ ├── netns.go │ └── netns_linux.go └── vpc │ ├── address.go │ ├── port.go │ ├── port_test.go │ ├── protocol.go │ ├── protocol_test.go │ ├── subnet.go │ ├── subnet_test.go │ └── vpc.go ├── plugins ├── aws-appmesh │ ├── aws-appmesh.conf │ ├── config │ │ ├── netconfig.go │ │ └── netconfig_test.go │ ├── e2eTests │ │ ├── e2e_test.go │ │ └── testdata │ │ │ ├── invalid_without_app_ports.json │ │ │ ├── invalid_without_proxy_egress_port.json │ │ │ ├── invalid_without_proxy_ingress_port.json │ │ │ ├── valid_ingress_egress.json │ │ │ ├── valid_with_multiports.json │ │ │ └── valid_without_ingress.json │ ├── main.go │ └── plugin │ │ ├── commands.go │ │ └── plugin.go ├── ecs-serviceconnect │ ├── config │ │ ├── netconfig.go │ │ └── netconfig_test.go │ ├── e2eTests │ │ └── e2e_test.go │ ├── main.go │ ├── plugin │ │ ├── commands.go │ │ ├── egress.go │ │ ├── ingress.go │ │ └── plugin.go │ └── testdata │ │ ├── invalid_egress_ipv4_cidr_1.json │ │ ├── invalid_egress_ipv4_cidr_2.json │ │ ├── invalid_egress_ipv6_cidr_1.json │ │ ├── invalid_egress_ipv6_cidr_2.json │ │ ├── invalid_egress_listener_port.json │ │ ├── invalid_egress_redirect_ip_1.json │ │ ├── invalid_egress_redirect_ip_2.json │ │ ├── invalid_egress_redirect_ip_3.json │ │ ├── invalid_empty_egress.json │ │ ├── invalid_empty_egress_vip.json │ │ ├── invalid_ingress_intercept_port.json │ │ ├── invalid_ingress_listener_port.json │ │ ├── invalid_missing_egress_listener_port.json │ │ ├── invalid_missing_egress_vip.json │ │ ├── invalid_missing_ingress_egress.json │ │ ├── invalid_missing_ingress_listener_port.json │ │ ├── invalid_missing_ip.json │ │ ├── invalid_missing_redirect_mode.json │ │ ├── invalid_redirect_mode.json │ │ ├── invalid_v6_missing_egress_vip.json │ │ ├── valid_empty_ingress.json │ │ ├── valid_ingress_with_port_intercept_1.json │ │ ├── valid_ingress_with_port_intercept_2.json │ │ ├── valid_ingress_without_port_intercept.json │ │ ├── valid_tproxy_redirect_ip.json │ │ ├── valid_tproxy_redirect_port.json │ │ ├── valid_without_egress.json │ │ └── valid_without_ingress.json ├── vpc-branch-eni │ ├── config │ │ ├── netconfig.go │ │ └── netconfig_test.go │ ├── e2eTests │ │ └── e2e_test.go │ ├── main.go │ ├── plugin │ │ ├── commands.go │ │ └── plugin.go │ └── vpc-branch-eni.conf ├── vpc-bridge │ ├── README.md │ ├── config │ │ ├── k8s │ │ │ ├── connector.go │ │ │ └── pipe.go │ │ ├── k8s_connector.go │ │ ├── kubernetes.go │ │ └── netconfig.go │ ├── main.go │ ├── network │ │ ├── bridge_linux.go │ │ ├── bridge_windows.go │ │ └── network.go │ ├── plugin │ │ ├── commands.go │ │ └── plugin.go │ └── vpc-bridge.conf ├── vpc-eni │ ├── config │ │ └── netconfig.go │ ├── e2eTests │ │ └── e2e_test.go │ ├── main.go │ ├── network │ │ ├── network.go │ │ ├── network_linux.go │ │ └── network_windows.go │ ├── plugin │ │ ├── commands.go │ │ └── plugin.go │ └── vpc-eni.conf └── vpc-tunnel │ ├── config │ ├── netconfig.go │ └── netconfig_test.go │ ├── e2eTests │ └── e2e_test.go │ ├── main.go │ ├── plugin │ ├── commands.go │ └── plugin.go │ └── vpc-tunnel.conf ├── tools └── netnsexec │ └── main.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 │ │ │ │ ├── guid │ │ │ │ │ └── guid.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 │ │ │ ├── .golangci.yml │ │ │ ├── CODEOWNERS │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── 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 │ │ │ │ │ ├── model_container_definition_device.go │ │ │ │ │ ├── model_device_category.go │ │ │ │ │ ├── model_device_extension.go │ │ │ │ │ ├── model_device_instance.go │ │ │ │ │ ├── model_device_namespace.go │ │ │ │ │ ├── model_interface_class.go │ │ │ │ │ ├── model_namespace.go │ │ │ │ │ ├── model_object_directory.go │ │ │ │ │ ├── model_object_namespace.go │ │ │ │ │ ├── model_object_symlink.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_p_mem_mapping.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 │ │ │ ├── jobobject │ │ │ │ ├── iocp.go │ │ │ │ ├── jobobject.go │ │ │ │ └── limits.go │ │ │ ├── log │ │ │ │ └── g.go │ │ │ ├── logfields │ │ │ │ └── fields.go │ │ │ ├── longpath │ │ │ │ └── longpath.go │ │ │ ├── mergemaps │ │ │ │ └── merge.go │ │ │ ├── oc │ │ │ │ ├── exporter.go │ │ │ │ └── span.go │ │ │ ├── queue │ │ │ │ └── mq.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 │ │ │ │ ├── console.go │ │ │ │ ├── devices.go │ │ │ │ ├── errors.go │ │ │ │ ├── filesystem.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 │ │ │ ├── process.go │ │ │ └── zsyscall_windows.go │ ├── cihub │ │ └── seelog │ │ │ ├── LICENSE.txt │ │ │ ├── README.markdown │ │ │ ├── behavior_adaptivelogger.go │ │ │ ├── behavior_asynclogger.go │ │ │ ├── behavior_asynclooplogger.go │ │ │ ├── behavior_asynctimerlogger.go │ │ │ ├── behavior_synclogger.go │ │ │ ├── cfg_config.go │ │ │ ├── cfg_errors.go │ │ │ ├── cfg_logconfig.go │ │ │ ├── cfg_parser.go │ │ │ ├── common_closer.go │ │ │ ├── common_constraints.go │ │ │ ├── common_context.go │ │ │ ├── common_exception.go │ │ │ ├── common_flusher.go │ │ │ ├── common_loglevel.go │ │ │ ├── dispatch_custom.go │ │ │ ├── dispatch_dispatcher.go │ │ │ ├── dispatch_filterdispatcher.go │ │ │ ├── dispatch_splitdispatcher.go │ │ │ ├── doc.go │ │ │ ├── format.go │ │ │ ├── internals_baseerror.go │ │ │ ├── internals_fsutils.go │ │ │ ├── internals_xmlnode.go │ │ │ ├── log.go │ │ │ ├── logger.go │ │ │ ├── writers_bufferedwriter.go │ │ │ ├── writers_connwriter.go │ │ │ ├── writers_consolewriter.go │ │ │ ├── writers_filewriter.go │ │ │ ├── writers_formattedwriter.go │ │ │ ├── writers_rollingfilewriter.go │ │ │ └── writers_smtpwriter.go │ ├── containerd │ │ └── cgroups │ │ │ ├── LICENSE │ │ │ └── stats │ │ │ └── v1 │ │ │ ├── doc.go │ │ │ ├── metrics.pb.go │ │ │ ├── metrics.pb.txt │ │ │ └── metrics.proto │ ├── 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 │ ├── coreos │ │ └── go-iptables │ │ │ ├── LICENSE │ │ │ ├── NOTICE │ │ │ └── iptables │ │ │ ├── iptables.go │ │ │ └── lock.go │ ├── davecgh │ │ └── go-spew │ │ │ ├── LICENSE │ │ │ └── spew │ │ │ ├── bypass.go │ │ │ ├── bypasssafe.go │ │ │ ├── common.go │ │ │ ├── config.go │ │ │ ├── doc.go │ │ │ ├── dump.go │ │ │ ├── format.go │ │ │ └── spew.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 │ ├── pkg │ │ └── errors │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── appveyor.yml │ │ │ ├── errors.go │ │ │ ├── go113.go │ │ │ └── stack.go │ ├── pmezard │ │ └── go-difflib │ │ │ ├── LICENSE │ │ │ └── difflib │ │ │ └── difflib.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 │ ├── stretchr │ │ └── testify │ │ │ ├── LICENSE │ │ │ ├── assert │ │ │ ├── assertion_compare.go │ │ │ ├── assertion_compare_can_convert.go │ │ │ ├── assertion_compare_legacy.go │ │ │ ├── assertion_format.go │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── assertion_order.go │ │ │ ├── assertions.go │ │ │ ├── doc.go │ │ │ ├── errors.go │ │ │ ├── forward_assertions.go │ │ │ └── http_assertions.go │ │ │ └── require │ │ │ ├── doc.go │ │ │ ├── forward_requirements.go │ │ │ ├── require.go │ │ │ ├── require.go.tmpl │ │ │ ├── require_forward.go │ │ │ ├── require_forward.go.tmpl │ │ │ └── requirements.go │ └── vishvananda │ │ ├── netlink │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── addr.go │ │ ├── addr_linux.go │ │ ├── bpf_linux.go │ │ ├── bridge_linux.go │ │ ├── class.go │ │ ├── class_linux.go │ │ ├── conntrack_linux.go │ │ ├── conntrack_unspecified.go │ │ ├── devlink_linux.go │ │ ├── filter.go │ │ ├── filter_linux.go │ │ ├── fou.go │ │ ├── fou_linux.go │ │ ├── fou_unspecified.go │ │ ├── genetlink_linux.go │ │ ├── genetlink_unspecified.go │ │ ├── gtp_linux.go │ │ ├── handle_linux.go │ │ ├── handle_unspecified.go │ │ ├── inet_diag.go │ │ ├── ioctl_linux.go │ │ ├── ipset_linux.go │ │ ├── link.go │ │ ├── link_linux.go │ │ ├── link_tuntap_linux.go │ │ ├── neigh.go │ │ ├── neigh_linux.go │ │ ├── netlink.go │ │ ├── netlink_linux.go │ │ ├── netlink_unspecified.go │ │ ├── netns_linux.go │ │ ├── netns_unspecified.go │ │ ├── nl │ │ │ ├── addr_linux.go │ │ │ ├── bridge_linux.go │ │ │ ├── conntrack_linux.go │ │ │ ├── devlink_linux.go │ │ │ ├── genetlink_linux.go │ │ │ ├── ipset_linux.go │ │ │ ├── link_linux.go │ │ │ ├── mpls_linux.go │ │ │ ├── nl_linux.go │ │ │ ├── nl_unspecified.go │ │ │ ├── parse_attr_linux.go │ │ │ ├── rdma_link_linux.go │ │ │ ├── route_linux.go │ │ │ ├── seg6_linux.go │ │ │ ├── seg6local_linux.go │ │ │ ├── syscall.go │ │ │ ├── tc_linux.go │ │ │ ├── xfrm_linux.go │ │ │ ├── xfrm_monitor_linux.go │ │ │ ├── xfrm_policy_linux.go │ │ │ └── xfrm_state_linux.go │ │ ├── order.go │ │ ├── protinfo.go │ │ ├── protinfo_linux.go │ │ ├── qdisc.go │ │ ├── qdisc_linux.go │ │ ├── rdma_link_linux.go │ │ ├── route.go │ │ ├── route_linux.go │ │ ├── route_unspecified.go │ │ ├── rule.go │ │ ├── rule_linux.go │ │ ├── socket.go │ │ ├── socket_linux.go │ │ ├── tcp.go │ │ ├── tcp_linux.go │ │ ├── xfrm.go │ │ ├── xfrm_monitor_linux.go │ │ ├── xfrm_policy.go │ │ ├── xfrm_policy_linux.go │ │ ├── xfrm_state.go │ │ └── xfrm_state_linux.go │ │ └── netns │ │ ├── LICENSE │ │ ├── README.md │ │ ├── netns.go │ │ ├── netns_linux.go │ │ └── netns_unspecified.go ├── go.opencensus.io │ ├── .gitignore │ ├── .travis.yml │ ├── 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_go11.go │ │ ├── trace_nongo11.go │ │ └── tracestate │ │ └── tracestate.go ├── golang.org │ └── x │ │ └── sys │ │ ├── LICENSE │ │ ├── PATENTS │ │ ├── internal │ │ └── unsafeheader │ │ │ └── unsafeheader.go │ │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_ppc64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── bluetooth_linux.go │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── epoll_zos.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── fstatfs_zos.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_signed.go │ │ ├── ioctl_unsigned.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_hurd.go │ │ ├── syscall_hurd_386.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_libc.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_openbsd_ppc64.go │ │ ├── syscall_openbsd_riscv64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_openbsd_ppc64.go │ │ ├── zerrors_openbsd_riscv64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_386.s │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_amd64.s │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm.s │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_arm64.s │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_openbsd_mips64.s │ │ ├── zsyscall_openbsd_ppc64.go │ │ ├── zsyscall_openbsd_ppc64.s │ │ ├── zsyscall_openbsd_riscv64.go │ │ ├── zsyscall_openbsd_riscv64.s │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysctl_openbsd_ppc64.go │ │ ├── zsysctl_openbsd_riscv64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_openbsd_ppc64.go │ │ ├── zsysnum_openbsd_riscv64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_openbsd_ppc64.go │ │ ├── ztypes_openbsd_riscv64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── empty.s │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── registry │ │ ├── key.go │ │ ├── mksyscall.go │ │ ├── syscall.go │ │ ├── value.go │ │ └── zsyscall_windows.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go ├── gopkg.in │ └── 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 └── version ├── version.go └── version_test.go /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | *Issue #, if available:* 2 | 3 | *Description of changes:* 4 | 5 | 6 | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. 7 | -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- 1 | name: Build 2 | 3 | on: 4 | push: 5 | pull_request: 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - name: checkout code 12 | uses: actions/checkout@v3 13 | - name: setup go 14 | uses: actions/setup-go@v3 15 | with: 16 | go-version: '1.19.x' 17 | - name: build and unit test 18 | run: make build 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vscode/ 3 | bin/ 4 | build/ 5 | temp/ 6 | *.swp 7 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | ## Code of Conduct 2 | This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). 3 | For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact 4 | opensource-codeofconduct@amazon.com with any additional questions or comments. 5 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Amazon VPC CNI Plugins 2 | Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Amazon VPC CNI Plugins 2 | 3 | VPC CNI plugins for Amazon ECS and Amazon EKS. 4 | 5 | ## Security disclosures 6 | 7 | If you think you’ve found a potential security issue, please do not post it in the Issues. Instead, please follow the instructions [here](https://aws.amazon.com/security/vulnerability-reporting/) or [email AWS security directly](mailto:aws-security@amazon.com). 8 | 9 | ## License 10 | 11 | This library is licensed under the Apache 2.0 License. 12 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/aws/amazon-vpc-cni-plugins 2 | 3 | go 1.19 4 | 5 | require ( 6 | github.com/Microsoft/go-winio v0.4.17 7 | github.com/Microsoft/hcsshim v0.9.4 8 | github.com/cihub/seelog v0.0.0-20151216151435-d2c6e5aa9fbf 9 | github.com/containernetworking/cni v1.1.2 10 | github.com/coreos/go-iptables v0.6.0 11 | github.com/stretchr/testify v1.8.2 12 | github.com/vishvananda/netlink v1.1.1-0.20210316144550-c21bda41e995 13 | golang.org/x/sys v0.7.0 14 | ) 15 | 16 | require ( 17 | github.com/containerd/cgroups v1.0.1 // indirect 18 | github.com/davecgh/go-spew v1.1.1 // indirect 19 | github.com/gogo/protobuf v1.3.2 // indirect 20 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect 21 | github.com/pkg/errors v0.9.1 // indirect 22 | github.com/pmezard/go-difflib v1.0.0 // indirect 23 | github.com/sirupsen/logrus v1.8.1 // indirect 24 | github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae // indirect 25 | go.opencensus.io v0.22.3 // indirect 26 | gopkg.in/yaml.v3 v3.0.1 // indirect 27 | ) 28 | -------------------------------------------------------------------------------- /plugins/aws-appmesh/aws-appmesh.conf: -------------------------------------------------------------------------------- 1 | { 2 | "type":"aws-appmesh", 3 | "cniVersion":"0.3.0", 4 | "ignoredUID":"1337", 5 | "ignoredGID":"133", 6 | "proxyEgressPort":"8080", 7 | "proxyIngressPort":"8000", 8 | "appPorts":["5000","5001"], 9 | "egressIgnoredPorts":["80","81"], 10 | "egressIgnoredIPs":["192.168.100.0/22","163.107.163.107","2001:0db8:85a3:0000:0000:8a2e:0370:7334"] 11 | } -------------------------------------------------------------------------------- /plugins/aws-appmesh/e2eTests/testdata/invalid_without_app_ports.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "aws-appmesh", 3 | "cniVersion": "1.0.0", 4 | "name":"aws-appmesh-cni-plugin", 5 | "ignoredUID": "1337", 6 | "ignoredGID": "133", 7 | "proxyEgressPort": "8080", 8 | "proxyIngressPort": "8000", 9 | "egressIgnoredPorts": [ 10 | "80", 11 | "81" 12 | ], 13 | "egressIgnoredIPs": [ 14 | "192.168.100.0/22", 15 | "163.107.163.107", 16 | "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 17 | ], 18 | "enableIPv6": true 19 | } -------------------------------------------------------------------------------- /plugins/aws-appmesh/e2eTests/testdata/invalid_without_proxy_egress_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "aws-appmesh", 3 | "cniVersion": "1.0.0", 4 | "name":"aws-appmesh-cni-plugin", 5 | "ignoredUID": "1337", 6 | "ignoredGID": "133", 7 | "proxyIngressPort": "8000", 8 | "appPorts": [ 9 | "5000", 10 | "5001" 11 | ], 12 | "egressIgnoredPorts": [ 13 | "80", 14 | "81" 15 | ], 16 | "egressIgnoredIPs": [ 17 | "192.168.100.0/22", 18 | "163.107.163.107", 19 | "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 20 | ], 21 | "enableIPv6": true 22 | } -------------------------------------------------------------------------------- /plugins/aws-appmesh/e2eTests/testdata/invalid_without_proxy_ingress_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "aws-appmesh", 3 | "cniVersion": "1.0.0", 4 | "name":"aws-appmesh-cni-plugin", 5 | "ignoredUID": "1337", 6 | "ignoredGID": "133", 7 | "proxyEgressPort": "8080", 8 | "appPorts": [ 9 | "5000", 10 | "5001" 11 | ], 12 | "egressIgnoredPorts": [ 13 | "80", 14 | "81" 15 | ], 16 | "egressIgnoredIPs": [ 17 | "192.168.100.0/22", 18 | "163.107.163.107", 19 | "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 20 | ], 21 | "enableIPv6": true 22 | } -------------------------------------------------------------------------------- /plugins/aws-appmesh/e2eTests/testdata/valid_ingress_egress.json: -------------------------------------------------------------------------------- 1 | { 2 | "prevResult": { 3 | "cniVersion": "1.0.0", 4 | "IPs": [{"Address":"10.1.2.3/16"}] 5 | }, 6 | "type": "aws-appmesh", 7 | "cniVersion": "1.0.0", 8 | "name":"aws-appmesh-test", 9 | "ignoredUID": "1337", 10 | "ignoredGID": "133", 11 | "proxyEgressPort": "8080", 12 | "proxyIngressPort": "8000", 13 | "appPorts": [ 14 | "5000", 15 | "5001" 16 | ], 17 | "egressIgnoredPorts": [ 18 | "80", 19 | "81" 20 | ], 21 | "egressIgnoredIPs": [ 22 | "192.168.100.0/22", 23 | "163.107.163.107", 24 | "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 25 | ], 26 | "enableIPv6": true 27 | } -------------------------------------------------------------------------------- /plugins/aws-appmesh/e2eTests/testdata/valid_without_ingress.json: -------------------------------------------------------------------------------- 1 | { 2 | "prevResult": { 3 | "cniVersion": "1.0.0", 4 | "IPs": [{"Version":"4","Address":"10.1.2.3/16"}] 5 | }, 6 | "type": "aws-appmesh", 7 | "cniVersion": "1.0.0", 8 | "name":"aws-appmesh-test", 9 | "ignoredUID": "1337", 10 | "ignoredGID": "133", 11 | "proxyEgressPort": "8080", 12 | "egressIgnoredPorts": [ 13 | "80", 14 | "81" 15 | ], 16 | "egressIgnoredIPs": [ 17 | "192.168.100.0/22", 18 | "163.107.163.107", 19 | "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 20 | ], 21 | "enableIPv6": true 22 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_ipv4_cidr_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "abc" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_ipv4_cidr_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "2002::1234:abcd:ffff:c0a8:101/64" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_ipv6_cidr_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16", 22 | "ipv6Cidr": "2002::1234:abcd:ffff:c0a8:101" 23 | }, 24 | "redirectMode": "nat" 25 | }, 26 | "enableIPV4": true, 27 | "enableIPv6": true 28 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_ipv6_cidr_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16", 22 | "ipv6Cidr": "127.255.0.0" 23 | }, 24 | "redirectMode": "nat" 25 | }, 26 | "enableIPV4": true, 27 | "enableIPv6": true 28 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_listener_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": -1, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_redirect_ip_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "redirectIP": { 8 | "ipv4": "10.1.1" 9 | }, 10 | "vip": { 11 | "ipv4Cidr": "127.255.0.0/16" 12 | }, 13 | "redirectMode": "tproxy" 14 | }, 15 | "enableIPV4": true 16 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_redirect_ip_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "redirectIP": { 8 | "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 9 | }, 10 | "vip": { 11 | "ipv4Cidr": "127.255.0.0/16" 12 | }, 13 | "redirectMode": "tproxy" 14 | }, 15 | "enableIPV4": true 16 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_egress_redirect_ip_3.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "redirectIP": { 8 | "ipv4": "10.1.1.2" 9 | }, 10 | "vip": { 11 | "ipv4Cidr": "127.255.0.0/16" 12 | }, 13 | "redirectMode": "nat" 14 | }, 15 | "enableIPV4": true 16 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_empty_egress.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | }, 19 | "enableIPV4": true 20 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_empty_egress_vip.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | }, 22 | "redirectMode": "nat" 23 | }, 24 | "enableIPV4": true 25 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_ingress_intercept_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": -1, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_ingress_listener_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 80000 10 | } 11 | ], 12 | "egressConfig": { 13 | "listenerName": "outbound_listener", 14 | "listenerPort": 30002, 15 | "vip": { 16 | "ipv4Cidr": "127.255.0.0/16" 17 | }, 18 | "redirectMode": "nat" 19 | }, 20 | "enableIPV4": true 21 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_egress_listener_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 8000 10 | } 11 | ], 12 | "egressConfig": { 13 | "listenerName": "outbound_listener", 14 | "vip": { 15 | "ipv4Cidr": "127.255.0.0/16" 16 | }, 17 | "redirectMode": "nat" 18 | }, 19 | "enableIPV4": true 20 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_egress_vip.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "redirectMode": "nat" 21 | }, 22 | "enableIPV4": true 23 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_ingress_egress.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0" 5 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_ingress_listener_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc" 9 | } 10 | ], 11 | "egressConfig": { 12 | "listenerName": "outbound_listener", 13 | "listenerPort": 30002, 14 | "vip": { 15 | "ipv4Cidr": "127.255.0.0/16" 16 | }, 17 | "redirectMode": "nat" 18 | }, 19 | "enableIPV4": true 20 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_ip.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerPort": 8080, 9 | "listenerName": "inbound_abc" 10 | } 11 | ], 12 | "egressConfig": { 13 | "listenerName": "outbound_listener", 14 | "listenerPort": 30002, 15 | "vip": { 16 | }, 17 | "redirectMode": "nat" 18 | } 19 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_missing_redirect_mode.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "listenerPort": 8080, 8 | "vip": { 9 | "ipv4Cidr": "127.255.0.0/16" 10 | } 11 | }, 12 | "enableIPV4": true 13 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_redirect_mode.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "listenerPort": 8080, 8 | "vip": { 9 | "ipv4Cidr": "127.255.0.0/16" 10 | }, 11 | "redirectMode": "invalid" 12 | }, 13 | "enableIPV4": true 14 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/invalid_v6_missing_egress_vip.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true, 26 | "enableIPv6": true 27 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_empty_ingress.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | ], 7 | "egressConfig": { 8 | "listenerName": "outbound_listener", 9 | "listenerPort": 30002, 10 | "vip": { 11 | "ipv4Cidr": "127.255.0.0/16" 12 | }, 13 | "redirectMode": "nat" 14 | }, 15 | "enableIPV4": true, 16 | "enableIPv6": false 17 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_ingress_with_port_intercept_1.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "interceptPort": 8090, 13 | "listenerName": "inbound_bcd", 14 | "listenerPort": 30001 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16" 22 | }, 23 | "redirectMode": "nat" 24 | }, 25 | "enableIPV4": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_ingress_with_port_intercept_2.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "interceptPort": 8080, 8 | "listenerName": "inbound_abc", 9 | "listenerPort": 30000 10 | }, 11 | { 12 | "listenerName": "inbound_bcd", 13 | "listenerPort": 30001, 14 | "interceptPort": 0 15 | } 16 | ], 17 | "egressConfig": { 18 | "listenerName": "outbound_listener", 19 | "listenerPort": 30002, 20 | "vip": { 21 | "ipv4Cidr": "127.255.0.0/16", 22 | "ipv6Cidr": "2002::1234:abcd:ffff:c0a8:101/64" 23 | }, 24 | "redirectMode": "nat" 25 | }, 26 | "enableIPV4": true, 27 | "enableIPv6": true 28 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_ingress_without_port_intercept.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "listenerName": "inbound_abc", 8 | "listenerPort": 30000 9 | }, 10 | { 11 | "listenerName": "inbound_bcd", 12 | "listenerPort": 30001 13 | } 14 | ], 15 | "egressConfig": { 16 | "listenerName": "outbound_listener", 17 | "listenerPort": 30002, 18 | "vip": { 19 | "ipv4Cidr": "127.255.0.0/16", 20 | "ipv6Cidr": "2002::1234:abcd:ffff:c0a8:101/64" 21 | }, 22 | "redirectMode": "nat" 23 | }, 24 | "enableIPV4": true, 25 | "enableIPv6": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_tproxy_redirect_ip.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "redirectIP": { 7 | "ipv4": "10.1.1.1", 8 | "ipv6": "2001:0db8:85a3:0000:0000:8a2e:0370:7334" 9 | }, 10 | "vip": { 11 | "ipv4Cidr": "127.255.0.0/16", 12 | "ipv6Cidr": "2002::1234:abcd:ffff:c0a8:101/64" 13 | }, 14 | "redirectMode": "tproxy" 15 | }, 16 | "enableIPV4": true, 17 | "enableIPv6": true 18 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_tproxy_redirect_port.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "listenerName": "inbound_abc", 8 | "listenerPort": 30000 9 | }, 10 | { 11 | "listenerName": "inbound_bcd", 12 | "listenerPort": 30001 13 | } 14 | ], 15 | "egressConfig": { 16 | "listenerName": "outbound_listener", 17 | "listenerPort": 30002, 18 | "vip": { 19 | "ipv4Cidr": "127.255.0.0/16", 20 | "ipv6Cidr": "2600:f0f0::/96" 21 | }, 22 | "redirectMode": "tproxy" 23 | }, 24 | "enableIPV4": true, 25 | "enableIPv6": true 26 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_without_egress.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "ingressConfig": [ 6 | { 7 | "listenerName": "inbound_abc", 8 | "listenerPort": 30000 9 | }, 10 | { 11 | "listenerName": "inbound_bcd", 12 | "listenerPort": 30001 13 | } 14 | ], 15 | "enableIPV4": true 16 | } -------------------------------------------------------------------------------- /plugins/ecs-serviceconnect/testdata/valid_without_ingress.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "ecs-serviceconnect", 3 | "name": "serviceconnect-cni-test-config", 4 | "cniVersion": "1.0.0", 5 | "egressConfig": { 6 | "listenerName": "outbound_listener", 7 | "listenerPort": 30002, 8 | "vip": { 9 | "ipv4Cidr": "127.255.0.0/16" 10 | }, 11 | "redirectMode": "nat" 12 | }, 13 | "enableIPV4": true 14 | } -------------------------------------------------------------------------------- /plugins/vpc-branch-eni/vpc-branch-eni.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.3.1", 3 | "name": "example", 4 | "type": "vpc-branch-eni", 5 | "trunkName": "eth0", 6 | "branchVlanID": "102", 7 | "branchMACAddress": "12:34:56:78:9a:bc" 8 | } 9 | -------------------------------------------------------------------------------- /plugins/vpc-bridge/README.md: -------------------------------------------------------------------------------- 1 | ## Amazon vpc-bridge CNI plugin 2 | vpc-bridge CNI plugin for EKS Windows. 3 | 4 | ## Pre-requisites for running vpc-bridge CNI plugin for EKS Windows 5 | 1. `vpc-bridge` CNI plugin depends on `C:\Program Files\Amazon\EKS\bin\aws-vpc-cni-k8s-connector.exe` for EKS Windows. 6 | -------------------------------------------------------------------------------- /plugins/vpc-bridge/vpc-bridge.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.3.1", 3 | "name": "vpc", 4 | "type": "vpc-bridge", 5 | "eniName": "eth1", 6 | "eniMACAddress": "12:34:56:78:9a:bc", 7 | "eniIPAddresses": ["192.168.1.42/24"], 8 | "vpcCIDRs": ["192.168.0.0/16"], 9 | "bridgeNetNSPath": "", 10 | "ipAddresses": ["192.168.1.43/24"], 11 | "gatewayIPAddress": "192.168.1.1" 12 | } 13 | -------------------------------------------------------------------------------- /plugins/vpc-eni/vpc-eni.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.3.1", 3 | "name": "vpc", 4 | "type": "vpc-eni", 5 | "eniName": "eth1", 6 | "eniMACAddress": "12:34:56:78:9a:bc", 7 | "eniIPAddresses": ["192.168.1.42/24"], 8 | "gatewayIPAddresses": ["192.168.1.1"], 9 | "opStateDown": "false", 10 | "useExistingNetwork": "false", 11 | "blockInstanceMetadata": "false" 12 | } 13 | -------------------------------------------------------------------------------- /plugins/vpc-tunnel/vpc-tunnel.conf: -------------------------------------------------------------------------------- 1 | { 2 | "cniVersion": "0.3.1", 3 | "name": "example", 4 | "type": "vpc-tunnel", 5 | "destinationIPAddress": "10.0.2.129", 6 | "destinationPort": "6081", 7 | "vni": "13327564", 8 | "primary": "true" 9 | } 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/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) (err error) [failretval!=0] = advapi32.GetSecurityInfo 6 | //sys setSecurityInfo(handle syscall.Handle, objectType uint32, si uint32, psidOwner uintptr, psidGroup uintptr, pDacl uintptr, pSacl uintptr) (err error) [failretval!=0] = advapi32.SetSecurityInfo 7 | //sys setEntriesInAcl(count uintptr, pListOfEEs uintptr, oldAcl uintptr, newAcl *uintptr) (err error) [failretval!=0] = 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 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | 7 | # Ignore vscode setting files 8 | .vscode/ 9 | 10 | # Test binary, build with `go test -c` 11 | *.test 12 | 13 | # Output of the go coverage tool, specifically when used with LiteIDE 14 | *.out 15 | 16 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 17 | .glide/ 18 | 19 | # Ignore gcs bin directory 20 | service/bin/ 21 | service/pkg/ 22 | 23 | *.img 24 | *.vhd 25 | *.tar.gz 26 | 27 | # Make stuff 28 | .rootfs-done 29 | bin/* 30 | rootfs/* 31 | *.o 32 | /build/ 33 | 34 | deps/* 35 | out/* 36 | 37 | .idea/ 38 | .vscode/ -------------------------------------------------------------------------------- /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/computestorage/mount.go: -------------------------------------------------------------------------------- 1 | package computestorage 2 | 3 | import ( 4 | "context" 5 | 6 | "github.com/Microsoft/hcsshim/internal/interop" 7 | "github.com/Microsoft/hcsshim/internal/oc" 8 | "github.com/pkg/errors" 9 | "go.opencensus.io/trace" 10 | "golang.org/x/sys/windows" 11 | ) 12 | 13 | // GetLayerVhdMountPath returns the volume path for a virtual disk of a writable container layer. 14 | func GetLayerVhdMountPath(ctx context.Context, vhdHandle windows.Handle) (path string, err error) { 15 | title := "hcsshim.GetLayerVhdMountPath" 16 | ctx, span := trace.StartSpan(ctx, title) //nolint:ineffassign,staticcheck 17 | defer span.End() 18 | defer func() { oc.SetSpanStatus(span, err) }() 19 | 20 | var mountPath *uint16 21 | err = hcsGetLayerVhdMountPath(vhdHandle, &mountPath) 22 | if err != nil { 23 | return "", errors.Wrap(err, "failed to get vhd mount path") 24 | } 25 | path = interop.ConvertAndFreeCoTaskMemString(mountPath) 26 | return path, nil 27 | } 28 | -------------------------------------------------------------------------------- /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_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 ContainerCredentialGuardState struct { 13 | 14 | // Authentication cookie for calls to a Container Credential Guard instance. 15 | Cookie string `json:"Cookie,omitempty"` 16 | 17 | // Name of the RPC endpoint of the Container Credential Guard instance. 18 | RpcEndpoint string `json:"RpcEndpoint,omitempty"` 19 | 20 | // Transport used for the configured Container Credential Guard instance. 21 | Transport string `json:"Transport,omitempty"` 22 | 23 | // Credential spec used for the configured Container Credential Guard instance. 24 | CredentialSpec string `json:"CredentialSpec,omitempty"` 25 | } 26 | -------------------------------------------------------------------------------- /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 uint64 `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/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 DeviceType string 13 | 14 | const ( 15 | ClassGUID DeviceType = "ClassGuid" 16 | DeviceInstanceID DeviceType = "DeviceInstance" 17 | GPUMirror DeviceType = "GpuMirror" 18 | ) 19 | 20 | type Device struct { 21 | // The type of device to assign to the container. 22 | Type DeviceType `json:"Type,omitempty"` 23 | // The interface class guid of the device interfaces to assign to the container. Only used when Type is ClassGuid. 24 | InterfaceClassGuid string `json:"InterfaceClassGuid,omitempty"` 25 | // The location path of the device to assign to the container. Only used when Type is DeviceInstanceID. 26 | LocationPath string `json:"LocationPath,omitempty"` 27 | } 28 | -------------------------------------------------------------------------------- /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/model_container_definition_device.go: -------------------------------------------------------------------------------- 1 | /* 2 | * HCS API 3 | * 4 | * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) 5 | * 6 | * API version: 2.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ContainerDefinitionDevice struct { 13 | DeviceExtension []DeviceExtension `json:"device_extension,omitempty"` 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_device_category.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 DeviceCategory struct { 13 | Name string `json:"name,omitempty"` 14 | InterfaceClass []InterfaceClass `json:"interface_class,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_device_extension.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 DeviceExtension struct { 13 | DeviceCategory *DeviceCategory `json:"device_category,omitempty"` 14 | Namespace *DeviceExtensionNamespace `json:"namespace,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_device_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 DeviceInstance struct { 13 | Id string `json:"id,omitempty"` 14 | LocationPath string `json:"location_path,omitempty"` 15 | PortName string `json:"port_name,omitempty"` 16 | InterfaceClass []InterfaceClass `json:"interface_class,omitempty"` 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_device_namespace.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 DeviceNamespace struct { 13 | RequiresDriverstore bool `json:"requires_driverstore,omitempty"` 14 | DeviceCategory []DeviceCategory `json:"device_category,omitempty"` 15 | DeviceInstance []DeviceInstance `json:"device_instance,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_interface_class.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 InterfaceClass struct { 13 | Type_ string `json:"type,omitempty"` 14 | Identifier string `json:"identifier,omitempty"` 15 | Recurse bool `json:"recurse,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_namespace.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 DeviceExtensionNamespace struct { 13 | Ob *ObjectNamespace `json:"ob,omitempty"` 14 | Device *DeviceNamespace `json:"device,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_object_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.4 7 | * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 8 | */ 9 | 10 | package hcsschema 11 | 12 | type ObjectDirectory struct { 13 | Name string `json:"name,omitempty"` 14 | Clonesd string `json:"clonesd,omitempty"` 15 | Shadow string `json:"shadow,omitempty"` 16 | Symlink []ObjectSymlink `json:"symlink,omitempty"` 17 | Objdir []ObjectDirectory `json:"objdir,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_object_namespace.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 ObjectNamespace struct { 13 | Shadow string `json:"shadow,omitempty"` 14 | Symlink []ObjectSymlink `json:"symlink,omitempty"` 15 | Objdir []ObjectDirectory `json:"objdir,omitempty"` 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/hcs/schema2/model_object_symlink.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 ObjectSymlink struct { 13 | Name string `json:"name,omitempty"` 14 | Path string `json:"path,omitempty"` 15 | Scope string `json:"scope,omitempty"` 16 | Pathtoclone string `json:"pathtoclone,omitempty"` 17 | AccessMask int32 `json:"access_mask,omitempty"` 18 | } 19 | -------------------------------------------------------------------------------- /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.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 Storage struct { 13 | 14 | // List of layers that describe the parent hierarchy for a container's storage. These layers combined together, presented as a disposable and/or committable working storage, are used by the container to record all changes done to the parent layers. 15 | Layers []Layer `json:"Layers,omitempty"` 16 | 17 | // Path that points to the scratch space of a container, where parent layers are combined together to present a new disposable and/or committable layer with the changes done during its runtime. 18 | Path string `json:"Path,omitempty"` 19 | 20 | QoS *StorageQoS `json:"QoS,omitempty"` 21 | } 22 | -------------------------------------------------------------------------------- /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_p_mem_mapping.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 VirtualPMemMapping struct { 13 | HostPath string `json:"HostPath,omitempty"` 14 | ImageFormat string `json:"ImageFormat,omitempty"` 15 | } 16 | -------------------------------------------------------------------------------- /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, "") 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, "") 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, "") 24 | } 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/wclayer/layerexists.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 | // LayerExists will return true if a layer with the given id exists and is known 12 | // to the system. 13 | func LayerExists(ctx context.Context, path string) (_ bool, err error) { 14 | title := "hcsshim::LayerExists" 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 | // Call the procedure itself. 21 | var exists uint32 22 | err = layerExists(&stdDriverInfo, path, &exists) 23 | if err != nil { 24 | return false, hcserror.New(err, title, "") 25 | } 26 | span.AddAttributes(trace.BoolAttribute("layer-exists", exists != 0)) 27 | return exists != 0, nil 28 | } 29 | -------------------------------------------------------------------------------- /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, "") 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/logon.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | // BOOL LogonUserA( 4 | // LPCWSTR lpszUsername, 5 | // LPCWSTR lpszDomain, 6 | // LPCWSTR lpszPassword, 7 | // DWORD dwLogonType, 8 | // DWORD dwLogonProvider, 9 | // PHANDLE phToken 10 | // ); 11 | // 12 | //sys LogonUser(username *uint16, domain *uint16, password *uint16, logonType uint32, logonProvider uint32, token *windows.Token) (err error) = advapi32.LogonUserW 13 | 14 | // Logon types 15 | const ( 16 | LOGON32_LOGON_INTERACTIVE uint32 = 2 17 | LOGON32_LOGON_NETWORK uint32 = 3 18 | LOGON32_LOGON_BATCH uint32 = 4 19 | LOGON32_LOGON_SERVICE uint32 = 5 20 | LOGON32_LOGON_UNLOCK uint32 = 7 21 | LOGON32_LOGON_NETWORK_CLEARTEXT uint32 = 8 22 | LOGON32_LOGON_NEW_CREDENTIALS uint32 = 9 23 | ) 24 | 25 | // Logon providers 26 | const ( 27 | LOGON32_PROVIDER_DEFAULT uint32 = 0 28 | LOGON32_PROVIDER_WINNT40 uint32 = 2 29 | LOGON32_PROVIDER_WINNT50 uint32 = 3 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/hcsshim/internal/winapi/memory.go: -------------------------------------------------------------------------------- 1 | package winapi 2 | 3 | //sys LocalAlloc(flags uint32, size int) (ptr uintptr) = kernel32.LocalAlloc 4 | //sys LocalFree(ptr uintptr) = kernel32.LocalFree 5 | -------------------------------------------------------------------------------- /vendor/github.com/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/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 user.go console.go system.go net.go path.go thread.go jobobject.go logon.go memory.go process.go processor.go devices.go filesystem.go errors.go 6 | -------------------------------------------------------------------------------- /vendor/github.com/cihub/seelog/internals_baseerror.go: -------------------------------------------------------------------------------- 1 | package seelog 2 | 3 | // Base struct for custom errors. 4 | type baseError struct { 5 | message string 6 | } 7 | 8 | func (be baseError) Error() string { 9 | return be.message 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/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/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/containernetworking/cni/pkg/version/conf.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 version 16 | 17 | import ( 18 | "github.com/containernetworking/cni/pkg/types/create" 19 | ) 20 | 21 | // ConfigDecoder can decode the CNI version available in network config data 22 | type ConfigDecoder struct{} 23 | 24 | func (*ConfigDecoder) Decode(jsonBytes []byte) (string, error) { 25 | return create.DecodeVersion(jsonBytes) 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/coreos/go-iptables/NOTICE: -------------------------------------------------------------------------------- 1 | CoreOS Project 2 | Copyright 2018 CoreOS, Inc 3 | 4 | This product includes software developed at CoreOS, Inc. 5 | (http://www.coreos.com/). 6 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/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/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/stretchr/testify/assert/assertion_compare_can_convert.go: -------------------------------------------------------------------------------- 1 | //go:build go1.17 2 | // +build go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_legacy.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Wrapper around reflect.Value.CanConvert, for compatibility 13 | // reasons. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return value.CanConvert(to) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.17 2 | // +build !go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_can_convert.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Older versions of Go does not have the reflect.Value.CanConvert 13 | // method. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/doc.go: -------------------------------------------------------------------------------- 1 | // Package require implements the same assertions as the `assert` package but 2 | // stops test execution when a test fails. 3 | // 4 | // Example Usage 5 | // 6 | // The following is a complete example using require in a standard test function: 7 | // import ( 8 | // "testing" 9 | // "github.com/stretchr/testify/require" 10 | // ) 11 | // 12 | // func TestSomething(t *testing.T) { 13 | // 14 | // var a string = "Hello" 15 | // var b string = "Hello" 16 | // 17 | // require.Equal(t, a, b, "The two words should be the same.") 18 | // 19 | // } 20 | // 21 | // Assertions 22 | // 23 | // The `require` package have same global functions as in the `assert` package, 24 | // but instead of returning a boolean result they call `t.FailNow()`. 25 | // 26 | // Every assertion function also takes an optional string message as the final argument, 27 | // allowing custom error messages to be appended to the message the assertion method outputs. 28 | package require 29 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.12.x" 4 | - "1.13.x" 5 | - "1.14.x" 6 | before_script: 7 | # make sure we keep path in tact when we sudo 8 | - sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers 9 | # modprobe ip_gre or else the first gre device can't be deleted 10 | - sudo modprobe ip_gre 11 | # modprobe nf_conntrack for the conntrack testing 12 | - sudo modprobe nf_conntrack 13 | - sudo modprobe nf_conntrack_netlink 14 | - sudo modprobe nf_conntrack_ipv4 15 | - sudo modprobe nf_conntrack_ipv6 16 | - sudo modprobe sch_hfsc 17 | - sudo modprobe sch_sfq 18 | install: 19 | - go get -v -t ./... 20 | go_import_path: github.com/vishvananda/netlink 21 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 1.0.0 (2018-03-15) 4 | 5 | Initial release tagging -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/Makefile: -------------------------------------------------------------------------------- 1 | DIRS := \ 2 | . \ 3 | nl 4 | 5 | DEPS = \ 6 | github.com/vishvananda/netns \ 7 | golang.org/x/sys/unix 8 | 9 | uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))) 10 | testdirs = $(call uniq,$(foreach d,$(1),$(dir $(wildcard $(d)/*_test.go)))) 11 | goroot = $(addprefix ../../../,$(1)) 12 | unroot = $(subst ../../../,,$(1)) 13 | fmt = $(addprefix fmt-,$(1)) 14 | 15 | all: test 16 | 17 | $(call goroot,$(DEPS)): 18 | go get $(call unroot,$@) 19 | 20 | .PHONY: $(call testdirs,$(DIRS)) 21 | $(call testdirs,$(DIRS)): 22 | go test -test.exec sudo -test.parallel 4 -timeout 60s -test.v github.com/vishvananda/netlink/$@ 23 | 24 | $(call fmt,$(call testdirs,$(DIRS))): 25 | ! gofmt -l $(subst fmt-,,$@)/*.go | grep -q . 26 | 27 | .PHONY: fmt 28 | fmt: $(call fmt,$(call testdirs,$(DIRS))) 29 | 30 | test: fmt $(call goroot,$(DEPS)) $(call testdirs,$(DIRS)) 31 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/fou.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | // ErrAttrHeaderTruncated is returned when a netlink attribute's header is 9 | // truncated. 10 | ErrAttrHeaderTruncated = errors.New("attribute header truncated") 11 | // ErrAttrBodyTruncated is returned when a netlink attribute's body is 12 | // truncated. 13 | ErrAttrBodyTruncated = errors.New("attribute body truncated") 14 | ) 15 | 16 | type Fou struct { 17 | Family int 18 | Port int 19 | Protocol int 20 | EncapType int 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/fou_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package netlink 4 | 5 | func FouAdd(f Fou) error { 6 | return ErrNotImplemented 7 | } 8 | 9 | func FouDel(f Fou) error { 10 | return ErrNotImplemented 11 | } 12 | 13 | func FouList(fam int) ([]Fou, error) { 14 | return nil, ErrNotImplemented 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/genetlink_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package netlink 4 | 5 | type GenlOp struct{} 6 | 7 | type GenlMulticastGroup struct{} 8 | 9 | type GenlFamily struct{} 10 | 11 | func (h *Handle) GenlFamilyList() ([]*GenlFamily, error) { 12 | return nil, ErrNotImplemented 13 | } 14 | 15 | func GenlFamilyList() ([]*GenlFamily, error) { 16 | return nil, ErrNotImplemented 17 | } 18 | 19 | func (h *Handle) GenlFamilyGet(name string) (*GenlFamily, error) { 20 | return nil, ErrNotImplemented 21 | } 22 | 23 | func GenlFamilyGet(name string) (*GenlFamily, error) { 24 | return nil, ErrNotImplemented 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/inet_diag.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | // INET_DIAG constatns 4 | const ( 5 | INET_DIAG_NONE = iota 6 | INET_DIAG_MEMINFO 7 | INET_DIAG_INFO 8 | INET_DIAG_VEGASINFO 9 | INET_DIAG_CONG 10 | INET_DIAG_TOS 11 | INET_DIAG_TCLASS 12 | INET_DIAG_SKMEMINFO 13 | INET_DIAG_SHUTDOWN 14 | INET_DIAG_DCTCPINFO 15 | INET_DIAG_PROTOCOL 16 | INET_DIAG_SKV6ONLY 17 | INET_DIAG_LOCALS 18 | INET_DIAG_PEERS 19 | INET_DIAG_PAD 20 | INET_DIAG_MARK 21 | INET_DIAG_BBRINFO 22 | INET_DIAG_CLASS_ID 23 | INET_DIAG_MD5SIG 24 | INET_DIAG_MAX 25 | ) 26 | 27 | type InetDiagTCPInfoResp struct { 28 | InetDiagMsg *Socket 29 | TCPInfo *TCPInfo 30 | TCPBBRInfo *TCPBBRInfo 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/link_tuntap_linux.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | // ideally golang.org/x/sys/unix would define IfReq but it only has 4 | // IFNAMSIZ, hence this minimalistic implementation 5 | const ( 6 | SizeOfIfReq = 40 7 | IFNAMSIZ = 16 8 | ) 9 | 10 | type ifReq struct { 11 | Name [IFNAMSIZ]byte 12 | Flags uint16 13 | pad [SizeOfIfReq - IFNAMSIZ - 2]byte 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/neigh.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | import ( 4 | "fmt" 5 | "net" 6 | ) 7 | 8 | // Neigh represents a link layer neighbor from netlink. 9 | type Neigh struct { 10 | LinkIndex int 11 | Family int 12 | State int 13 | Type int 14 | Flags int 15 | IP net.IP 16 | HardwareAddr net.HardwareAddr 17 | LLIPAddr net.IP //Used in the case of NHRP 18 | Vlan int 19 | VNI int 20 | MasterIndex int 21 | } 22 | 23 | // String returns $ip/$hwaddr $label 24 | func (neigh *Neigh) String() string { 25 | return fmt.Sprintf("%s %s", neigh.IP, neigh.HardwareAddr) 26 | } 27 | 28 | // NeighUpdate is sent when a neighbor changes - type is RTM_NEWNEIGH or RTM_DELNEIGH. 29 | type NeighUpdate struct { 30 | Type uint16 31 | Neigh 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/netlink_linux.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | import "github.com/vishvananda/netlink/nl" 4 | 5 | // Family type definitions 6 | const ( 7 | FAMILY_ALL = nl.FAMILY_ALL 8 | FAMILY_V4 = nl.FAMILY_V4 9 | FAMILY_V6 = nl.FAMILY_V6 10 | FAMILY_MPLS = nl.FAMILY_MPLS 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/netns_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package netlink 4 | 5 | func GetNetNsIdByPid(pid int) (int, error) { 6 | return 0, ErrNotImplemented 7 | } 8 | 9 | func SetNetNsIdByPid(pid, nsid int) error { 10 | return ErrNotImplemented 11 | } 12 | 13 | func GetNetNsIdByFd(fd int) (int, error) { 14 | return 0, ErrNotImplemented 15 | } 16 | 17 | func SetNetNsIdByFd(fd, nsid int) error { 18 | return ErrNotImplemented 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/nl/mpls_linux.go: -------------------------------------------------------------------------------- 1 | package nl 2 | 3 | import "encoding/binary" 4 | 5 | const ( 6 | MPLS_LS_LABEL_SHIFT = 12 7 | MPLS_LS_S_SHIFT = 8 8 | ) 9 | 10 | func EncodeMPLSStack(labels ...int) []byte { 11 | b := make([]byte, 4*len(labels)) 12 | for idx, label := range labels { 13 | l := label << MPLS_LS_LABEL_SHIFT 14 | if idx == len(labels)-1 { 15 | l |= 1 << MPLS_LS_S_SHIFT 16 | } 17 | binary.BigEndian.PutUint32(b[idx*4:], uint32(l)) 18 | } 19 | return b 20 | } 21 | 22 | func DecodeMPLSStack(buf []byte) []int { 23 | if len(buf)%4 != 0 { 24 | return nil 25 | } 26 | stack := make([]int, 0, len(buf)/4) 27 | for len(buf) > 0 { 28 | l := binary.BigEndian.Uint32(buf[:4]) 29 | buf = buf[4:] 30 | stack = append(stack, int(l)>>MPLS_LS_LABEL_SHIFT) 31 | if (l>>MPLS_LS_S_SHIFT)&1 > 0 { 32 | break 33 | } 34 | } 35 | return stack 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/nl/nl_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package nl 4 | 5 | import "encoding/binary" 6 | 7 | var SupportedNlFamilies = []int{} 8 | 9 | func NativeEndian() binary.ByteOrder { 10 | return nil 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/nl/rdma_link_linux.go: -------------------------------------------------------------------------------- 1 | package nl 2 | 3 | const ( 4 | RDMA_NL_GET_CLIENT_SHIFT = 10 5 | ) 6 | 7 | const ( 8 | RDMA_NL_NLDEV = 5 9 | ) 10 | 11 | const ( 12 | RDMA_NLDEV_CMD_GET = 1 13 | RDMA_NLDEV_CMD_SET = 2 14 | RDMA_NLDEV_CMD_SYS_GET = 6 15 | RDMA_NLDEV_CMD_SYS_SET = 7 16 | ) 17 | 18 | const ( 19 | RDMA_NLDEV_ATTR_DEV_INDEX = 1 20 | RDMA_NLDEV_ATTR_DEV_NAME = 2 21 | RDMA_NLDEV_ATTR_PORT_INDEX = 3 22 | RDMA_NLDEV_ATTR_CAP_FLAGS = 4 23 | RDMA_NLDEV_ATTR_FW_VERSION = 5 24 | RDMA_NLDEV_ATTR_NODE_GUID = 6 25 | RDMA_NLDEV_ATTR_SYS_IMAGE_GUID = 7 26 | RDMA_NLDEV_ATTR_SUBNET_PREFIX = 8 27 | RDMA_NLDEV_ATTR_LID = 9 28 | RDMA_NLDEV_ATTR_SM_LID = 10 29 | RDMA_NLDEV_ATTR_LMC = 11 30 | RDMA_NLDEV_ATTR_PORT_STATE = 12 31 | RDMA_NLDEV_ATTR_PORT_PHYS_STATE = 13 32 | RDMA_NLDEV_ATTR_DEV_NODE_TYPE = 14 33 | RDMA_NLDEV_SYS_ATTR_NETNS_MODE = 66 34 | RDMA_NLDEV_NET_NS_FD = 68 35 | ) 36 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/nl/xfrm_monitor_linux.go: -------------------------------------------------------------------------------- 1 | package nl 2 | 3 | import ( 4 | "unsafe" 5 | ) 6 | 7 | const ( 8 | SizeofXfrmUserExpire = 0xe8 9 | ) 10 | 11 | // struct xfrm_user_expire { 12 | // struct xfrm_usersa_info state; 13 | // __u8 hard; 14 | // }; 15 | 16 | type XfrmUserExpire struct { 17 | XfrmUsersaInfo XfrmUsersaInfo 18 | Hard uint8 19 | Pad [7]byte 20 | } 21 | 22 | func (msg *XfrmUserExpire) Len() int { 23 | return SizeofXfrmUserExpire 24 | } 25 | 26 | func DeserializeXfrmUserExpire(b []byte) *XfrmUserExpire { 27 | return (*XfrmUserExpire)(unsafe.Pointer(&b[0:SizeofXfrmUserExpire][0])) 28 | } 29 | 30 | func (msg *XfrmUserExpire) Serialize() []byte { 31 | return (*(*[SizeofXfrmUserExpire]byte)(unsafe.Pointer(msg)))[:] 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/order.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | import ( 4 | "encoding/binary" 5 | 6 | "github.com/vishvananda/netlink/nl" 7 | ) 8 | 9 | var ( 10 | native = nl.NativeEndian() 11 | networkOrder = binary.BigEndian 12 | ) 13 | 14 | func htonl(val uint32) []byte { 15 | bytes := make([]byte, 4) 16 | binary.BigEndian.PutUint32(bytes, val) 17 | return bytes 18 | } 19 | 20 | func htons(val uint16) []byte { 21 | bytes := make([]byte, 2) 22 | binary.BigEndian.PutUint16(bytes, val) 23 | return bytes 24 | } 25 | 26 | func ntohl(buf []byte) uint32 { 27 | return binary.BigEndian.Uint32(buf) 28 | } 29 | 30 | func ntohs(buf []byte) uint16 { 31 | return binary.BigEndian.Uint16(buf) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/route_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package netlink 4 | 5 | import "strconv" 6 | 7 | func (r *Route) ListFlags() []string { 8 | return []string{} 9 | } 10 | 11 | func (n *NexthopInfo) ListFlags() []string { 12 | return []string{} 13 | } 14 | 15 | func (s Scope) String() string { 16 | return "unknown" 17 | } 18 | 19 | func (p RouteProtocol) String() string { 20 | return strconv.Itoa(int(p)) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netlink/socket.go: -------------------------------------------------------------------------------- 1 | package netlink 2 | 3 | import "net" 4 | 5 | // SocketID identifies a single socket. 6 | type SocketID struct { 7 | SourcePort uint16 8 | DestinationPort uint16 9 | Source net.IP 10 | Destination net.IP 11 | Interface uint32 12 | Cookie [2]uint32 13 | } 14 | 15 | // Socket represents a netlink socket. 16 | type Socket struct { 17 | Family uint8 18 | State uint8 19 | Timer uint8 20 | Retrans uint8 21 | ID SocketID 22 | Expires uint32 23 | RQueue uint32 24 | WQueue uint32 25 | UID uint32 26 | INode uint32 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/vishvananda/netns/netns_unspecified.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package netns 4 | 5 | import ( 6 | "errors" 7 | ) 8 | 9 | var ( 10 | ErrNotImplemented = errors.New("not implemented") 11 | ) 12 | 13 | func Set(ns NsHandle) (err error) { 14 | return ErrNotImplemented 15 | } 16 | 17 | func New() (ns NsHandle, err error) { 18 | return -1, ErrNotImplemented 19 | } 20 | 21 | func Get() (NsHandle, error) { 22 | return -1, ErrNotImplemented 23 | } 24 | 25 | func GetFromPath(path string) (NsHandle, error) { 26 | return -1, ErrNotImplemented 27 | } 28 | 29 | func GetFromName(name string) (NsHandle, error) { 30 | return -1, ErrNotImplemented 31 | } 32 | 33 | func GetFromPid(pid int) (NsHandle, error) { 34 | return -1, ErrNotImplemented 35 | } 36 | 37 | func GetFromThread(pid, tid int) (NsHandle, error) { 38 | return -1, ErrNotImplemented 39 | } 40 | 41 | func GetFromDocker(id string) (NsHandle, error) { 42 | return -1, ErrNotImplemented 43 | } 44 | -------------------------------------------------------------------------------- /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/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go_import_path: go.opencensus.io 4 | 5 | go: 6 | - 1.11.x 7 | 8 | env: 9 | global: 10 | GO111MODULE=on 11 | 12 | before_script: 13 | - make install-tools 14 | 15 | script: 16 | - make travis-ci 17 | - go run internal/check/version.go # TODO move this to makefile 18 | -------------------------------------------------------------------------------- /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/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for 386 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc 6 | // +build darwin dragonfly freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for AMD64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // 12 | // System call support for ppc64, BSD 13 | // 14 | 15 | // Just jump to package syscall's implementation for all these functions. 16 | // The runtime may know about them. 17 | 18 | TEXT ·Syscall(SB),NOSPLIT,$0-56 19 | JMP syscall·Syscall(SB) 20 | 21 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 22 | JMP syscall·Syscall6(SB) 23 | 24 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 25 | JMP syscall·Syscall9(SB) 26 | 27 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 28 | JMP syscall·RawSyscall(SB) 29 | 30 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 31 | JMP syscall·RawSyscall6(SB) 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for RISCV64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc 6 | // +build aix,ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc64 6 | // +build aix,ppc64 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev & 0x3fffffff00000000) >> 32) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32((dev & 0x00000000ffffffff) >> 0) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | var DEVNO64 uint64 27 | DEVNO64 = 0x8000000000000000 28 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build zos && s390x 6 | // +build zos,s390x 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by z/OS. 10 | // 11 | // The information below is extracted and adapted from macros. 12 | 13 | package unix 14 | 15 | // Major returns the major component of a z/OS device number. 16 | func Major(dev uint64) uint32 { 17 | return uint32((dev >> 16) & 0x0000FFFF) 18 | } 19 | 20 | // Minor returns the minor component of a z/OS device number. 21 | func Minor(dev uint64) uint32 { 22 | return uint32(dev & 0x0000FFFF) 23 | } 24 | 25 | // Mkdev returns a z/OS device number generated from the given major and minor 26 | // components. 27 | func Mkdev(major, minor uint32) uint64 { 28 | return (uint64(major) << 16) | uint64(minor) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | // Unix environment variables. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getenv(key string) (value string, found bool) { 15 | return syscall.Getenv(key) 16 | } 17 | 18 | func Setenv(key, value string) error { 19 | return syscall.Setenv(key, value) 20 | } 21 | 22 | func Clearenv() { 23 | syscall.Clearenv() 24 | } 25 | 26 | func Environ() []string { 27 | return syscall.Environ() 28 | } 29 | 30 | func Unsetenv(key string) error { 31 | return syscall.Unsetenv(key) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fdset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | // Set adds fd to the set fds. 11 | func (fds *FdSet) Set(fd int) { 12 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 13 | } 14 | 15 | // Clear removes fd from the set fds. 16 | func (fds *FdSet) Clear(fd int) { 17 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 18 | } 19 | 20 | // IsSet returns whether fd is in the set fds. 21 | func (fds *FdSet) IsSet(fd int) bool { 22 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 23 | } 24 | 25 | // Zero clears the set fds. 26 | func (fds *FdSet) Zero() { 27 | for i := range fds.Bits { 28 | fds.Bits[i] = 0 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 13 | return ptrace1(request, pid, addr, data) 14 | } 15 | 16 | func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) error { 17 | return ptrace1Ptr(request, pid, addr, data) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 13 | return ENOTSUP 14 | } 15 | 16 | func ptracePtr(request int, pid int, addr uintptr, data unsafe.Pointer) (err error) { 17 | return ENOTSUP 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build hurd 6 | // +build hurd 7 | 8 | package unix 9 | 10 | /* 11 | #include 12 | int ioctl(int, unsigned long int, uintptr_t); 13 | */ 14 | import "C" 15 | 16 | func ioctl(fd int, req uint, arg uintptr) (err error) { 17 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 18 | if r0 == -1 && er != nil { 19 | err = er 20 | } 21 | return 22 | } 23 | 24 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { 25 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg))) 26 | if r0 == -1 && er != nil { 27 | err = er 28 | } 29 | return 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && hurd 6 | // +build 386,hurd 7 | 8 | package unix 9 | 10 | const ( 11 | TIOCGETA = 0x62251713 12 | ) 13 | 14 | type Winsize struct { 15 | Row uint16 16 | Col uint16 17 | Xpixel uint16 18 | Ypixel uint16 19 | } 20 | 21 | type Termios struct { 22 | Iflag uint32 23 | Oflag uint32 24 | Cflag uint32 25 | Lflag uint32 26 | Cc [20]uint8 27 | Ispeed int32 28 | Ospeed int32 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && netbsd 6 | // +build 386,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: int32(nsec)} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint32(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint32(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && netbsd 6 | // +build amd64,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint64(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint64(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && netbsd 6 | // +build arm,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: int32(nsec)} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint32(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint32(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm64 && netbsd 6 | // +build arm64,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint64(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint64(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | // +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris 7 | // +build gc 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (ppc64le || ppc64) && gc 6 | // +build linux 7 | // +build ppc64le ppc64 8 | // +build gc 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 15 | return syscall.Syscall(trap, a1, a2, a3) 16 | } 17 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 18 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 19 | } 20 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 21 | return syscall.RawSyscall(trap, a1, a2, a3) 22 | } 23 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 24 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | const ( 11 | EVENTLOG_SUCCESS = 0 12 | EVENTLOG_ERROR_TYPE = 1 13 | EVENTLOG_WARNING_TYPE = 2 14 | EVENTLOG_INFORMATION_TYPE = 4 15 | EVENTLOG_AUDIT_SUCCESS = 8 16 | EVENTLOG_AUDIT_FAILURE = 16 17 | ) 18 | 19 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 20 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 21 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | // +build windows,race 7 | 8 | package windows 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | // +build windows,!race 7 | 8 | package windows 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/registry/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package registry 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall.go 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | --------------------------------------------------------------------------------